-
Notifications
You must be signed in to change notification settings - Fork 3
/
SConscript
executable file
·55 lines (45 loc) · 1.03 KB
/
SConscript
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
# -*- Python -*-
Import('*')
from CXL_init import *
libName = "CXLBaseTools"
env = CXL_env.Clone()
env.Append( CPPPATH = [
".",
"./src/",
env['CXL_commonproj_dir'],
env['CXL_common_dir']
])
sources = \
[
"src/gtIAllocationFailureObserver.cpp",
"src/gtASCIIString.cpp",
"src/gtASCIIStringTokenizer.cpp",
"src/gtAssert.cpp",
"src/gtIAssertionFailureHandler.cpp",
"src/gtErrorString.cpp",
"src/gtList.cpp",
"src/gtMap.cpp",
"src/gtRedBlackTree.cpp",
"src/gtSingeltonsDelete.cpp",
"src/gtString.cpp",
"src/gtStringTokenizer.cpp",
"src/gtVector.cpp"
]
# Creating object files
objFiles = env.SharedObject(sources)
# create static Library
statFiles = env.StaticLibrary(
target = libName,
source = objFiles)
install = statFiles
# Creating shared libraries
if (env['CXL_build_type'] != 'static'):
soFiles = env.SharedLibrary(
target = libName,
source = objFiles)
install += soFiles
# Installing libraries
libInstall = env.Install(
dir = env['CXL_lib_dir'],
source = (install))
Return('libInstall')