Statistics
| Branch: | Tag: | Revision:

one / src / nebula / SConstruct @ 1772a358

History | View | Annotate | Download (2.29 KB)

1
# SConstruct for src/nebula
2

    
3
# -------------------------------------------------------------------------- #
4
# Copyright 2002-2016, OpenNebula Project, OpenNebula Systems                #
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
    'SystemDB.cc',
27
    'Nebula.cc',
28
    'NebulaTemplate.cc'
29
]
30

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

    
34
# Build daemon
35
env.Prepend(LIBS=[
36
    'nebula_core',
37
    'nebula_vmm',
38
    'nebula_lcm',
39
    'nebula_im',
40
    'nebula_rm',
41
    'nebula_dm',
42
    'nebula_tm',
43
    'nebula_um',
44
    'nebula_datastore',
45
    'nebula_group',
46
    'nebula_authm',
47
    'nebula_acl',
48
    'nebula_mad',
49
    'nebula_template',
50
    'nebula_image',
51
    'nebula_pool',
52
    'nebula_host',
53
    'nebula_cluster',
54
    'nebula_vnm',
55
    'nebula_vm',
56
    'nebula_vmtemplate',
57
    'nebula_document',
58
    'nebula_zone',
59
    'nebula_hm',
60
    'nebula_common',
61
    'nebula_sql',
62
    'nebula_log',
63
    'nebula_client',
64
    'nebula_xml',
65
    'nebula_secgroup',
66
    'nebula_vdc',
67
    'nebula_vrouter',
68
    'nebula_marketplace',
69
    'nebula_ipamm',
70
    'crypto',
71
    'xml2'
72
])
73

    
74
if not env.GetOption('clean'):
75
    env.ParseConfig(("LDFLAGS='%s' ../../share/scons/get_xmlrpc_config"+
76
        " server") % (os.environ['LDFLAGS'],))
77

    
78
env.Program('oned.cc')