Statistics
| Branch: | Tag: | Revision:

one / src / nebula / SConstruct @ ae53d437

History | View | Annotate | Download (2.05 KB)

1
# SConstruct for src/nebula
2

    
3
# -------------------------------------------------------------------------- #
4
# Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org)             #
5
#                                                                            #
6
# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
7
# not use this file except in compliance with the License. You may obtain    #
8
# a copy of the License at                                                   #
9
#                                                                            #
10
# http://www.apache.org/licenses/LICENSE-2.0                                 #
11
#                                                                            #
12
# Unless required by applicable law or agreed to in writing, software        #
13
# distributed under the License is distributed on an "AS IS" BASIS,          #
14
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
15
# See the License for the specific language governing permissions and        #
16
# limitations under the License.                                             #
17
#--------------------------------------------------------------------------- #
18

    
19
import os
20
Import('env')
21

    
22
lib_name='nebula_core'
23

    
24
# Sources to generate the library
25
source_files=[
26
    'Nebula.cc',
27
    'NebulaTemplate.cc',
28
]
29

    
30
# Build library
31
env.StaticLibrary(lib_name, source_files)
32

    
33
# Build daemon
34
env.Prepend(LIBS=[
35
    'nebula_core',
36
    'nebula_vmm',
37
    'nebula_lcm',
38
    'nebula_im',
39
    'nebula_hm',
40
    'nebula_rm',
41
    'nebula_dm',
42
    'nebula_tm',
43
    'nebula_um',
44
    'nebula_group',
45
    'nebula_authm',
46
    'nebula_mad',
47
    'nebula_template',
48
    'nebula_image',
49
    'nebula_pool',
50
    'nebula_cluster',
51
    'nebula_host',
52
    'nebula_vnm',
53
    'nebula_vm',
54
    'nebula_vmtemplate',
55
    'nebula_common',
56
    'nebula_sql',
57
    'nebula_log',
58
    'nebula_xml',
59
    'crypto'
60
])
61

    
62
if not env.GetOption('clean'):
63
    env.ParseConfig(("LDFLAGS='%s' ../../share/scons/get_xmlrpc_config"+
64
        " server") % (os.environ['LDFLAGS'],))
65

    
66
env.Program('oned.cc')