-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConstruct.in
41 lines (31 loc) · 1.41 KB
/
SConstruct.in
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
import os
from OmiscidInit import *
from OmiscidScons import *
env = Environment(DISPLAY = 'deimos:0.0', UseInsure = 'no', OSis = 'Unknown' )
OmiscidLinuxMacOSInit(env,COMMAND_LINE_TARGETS,ARGUMENTS,['xml2'])
conf = Configure(env)
OmiscidCheckLibs(conf,['xml2','dns_sd','pthread']);
env = conf.Finish()
if env['UseInsure'] == 'yes' :
OmiscidMessage('compiling using insure')
env.Replace(CXX = 'insure')
binToInstall = []
libToInstall = []
# common environment settings
env.AppendUnique(CXXFLAGS = ['-g','-Werror','-Wall','-pedantic','-std=c++98'])
env.Append(CPPPATH=['System', 'Com', 'ServiceControl', 'Json', 'Messaging'])
env.Prepend(LIBPATH=['.'])
if env['OSis'] == 'Linux' :
env.AppendUnique(LINKFLAGS = ['-Wl,-soname,libOmiscid.so.%OMISCID_SONAME_SUFFIX%'])
target_omiscid = env.SharedLibrary(
target='Omiscid.%OMISCID_VERSION%',
source=OmiscidSources
)
libToInstall += target_omiscid
hToInstall = []
hToInstall += OmiscidHeaders
binToInstall += OmiscidDotInFileTarget(env, 'Com/OmiscidCom-config', OmiscidMapping(env))
binToInstall += OmiscidDotInFileTarget(env, 'System/OmiscidSystem-config', OmiscidMapping(env))
binToInstall += OmiscidDotInFileTarget(env, 'ServiceControl/OmiscidControl-config', OmiscidMapping(env))
binToInstall += OmiscidDotInFileTarget(env, 'Omiscid-config', OmiscidMapping(env))
OmiscidInstallTarget(env,binToInstall,libToInstall,hToInstall=hToInstall)