-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConstruct.insure
64 lines (48 loc) · 1.79 KB
/
SConstruct.insure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import os
from OmiscidInit import *
from OmiscidScons import *
# for insure, we need to get the PATH environment
env = Environment(ENV = {'PATH' : os.environ['PATH']}, CXX = 'insure' )
OmiscidLinuxMacOSInit(env,COMMAND_LINE_TARGETS,ARGUMENTS,['xml2'])
conf = Configure(env)
OmiscidCheckLibs(conf,['xml2','dns_sd','pthread']);
env = conf.Finish()
# common environment settings
env.AppendUnique(CXXFLAGS = ['-g','-Werror','-Wall','-pedantic','-std=c++98'])
binToInstall = []
libToInstall = []
# env_system = env.Copy()
env.Append(CPPPATH='System')
target_system = env.SharedLibrary(
target='OmiscidSystem',
source=SystemSources
)
libToInstall += target_system
# env_com = env.Copy()
env.Append(CPPPATH=['System', 'Com'])
env.Prepend(LIBPATH=['.'])
# env_com.Append(LIBS = ['OmiscidSystem'])
target_com = env.SharedLibrary(
target='OmiscidCom',
source=ComSources
)
libToInstall += target_com
# env_control = env.Copy()
env.Append(CPPPATH=['System', 'Com', 'ServiceControl'])
env.Prepend(LIBPATH=['.'])
# env_control.Append(LIBS = ['OmiscidCom', 'OmiscidSystem'])
target_control = env.SharedLibrary(
target='OmiscidControl',
source=ServiceControlSources
)
libToInstall += target_control
env.Depends(target_com, target_system)
env.Depends(target_control, target_com)
hToInstall = []
# hToInstall += SystemHeaders
# hToInstall += ComHeaders
hToInstall += ServiceControlHeaders
binToInstall += OmiscidDotInFileTarget(env, 'Com/OmiscidCom-config', OmiscidMapping())
binToInstall += OmiscidDotInFileTarget(env, 'System/OmiscidSystem-config', OmiscidMapping())
binToInstall += OmiscidDotInFileTarget(env, 'ServiceControl/OmiscidControl-config', OmiscidMapping())
OmiscidInstallTarget(env,binToInstall,libToInstall,hToInstall=hToInstall)