-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSConscript
34 lines (25 loc) · 1.42 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
# -*- python -*-
# $Id: SConscript,v 1.27 2016/03/30 20:25:33 jrb Exp $
# Authors: Joanne Bogart <jrb@slac.stanford.edu>
# Version: xmlBase-05-07-01
Import('baseEnv')
Import('listFiles')
progEnv = baseEnv.Clone()
libEnv = baseEnv.Clone()
libEnv.Tool('addLinkDeps', package='xmlBase', toBuild='shared')
xmlBaseLib = libEnv.SharedLibrary('xmlBase', [ 'src/Dom.cxx', 'src/IFile.cxx', 'src/XmlErrorHandler.cxx', 'src/XmlParser.cxx', 'src/EResolver.cxx', 'src/docMan/DocMan.cxx'])
progEnv.Tool('xmlBaseLib')
entity_test = progEnv.Program('entity_test',[ 'src/test/entity_test.cxx'])
test_xmlBaseBin = progEnv.Program('test_xmlBase',[ 'src/main.cxx'])
test_memBin = progEnv.Program('test_mem',[ 'src/test/test_mem.cxx'])
test_IFileBin = progEnv.Program('test_IFile',[ 'src/test/test_IFile.cxx'])
test_writeBin = progEnv.Program('test_write',[ 'src/test/test_write.cxx'])
test_parseBin = progEnv.Program('test_parse',[ 'src/test/test_parse.cxx'])
progEnv.Tool('registerTargets', package = 'xmlBase',
libraryCxts = [[xmlBaseLib, libEnv]],
testAppCxts = [[entity_test, progEnv], [test_xmlBaseBin,progEnv],
[test_memBin, progEnv], [test_IFileBin,progEnv],
[test_writeBin, progEnv],
[test_parseBin, progEnv]],
includes = listFiles(['xmlBase/*.h', 'xmlBase/docMan/*.h']),
xml = listFiles(['xml/*'], recursive = True))