-
Notifications
You must be signed in to change notification settings - Fork 1
/
SConstruct
33 lines (24 loc) · 948 Bytes
/
SConstruct
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
# -*- python -*-
# Author: Charles Wang <[email protected]>
# License: GPLv2
import os.path
from CocoEnvironment import CocoEnvironment
topsrc = os.getcwd()
cpppath = [topsrc] + map(lambda subdir: os.path.join(topsrc, subdir),
['core', 'algorithm', 'schemes'])
env = CocoEnvironment(CPPPATH = cpppath, config_h = 'acconfig.h')
Export('env')
libobjs = []
cocosrc_libobjs = []
Export('libobjs', 'cocosrc_libobjs')
Export('env')
SConscript(os.path.join('core', 'SConscript'))
SConscript(os.path.join('algorithm', 'SConscript'))
SConscript(os.path.join('schemes', 'SConscript'))
lib = env.Library('coco', libobjs)
cocosrc_lib = env.Library('cocosrc', cocosrc_libobjs)
Export('lib', 'cocosrc_lib')
cocoexe = env.Program('Coco', ['Coco.c', cocosrc_lib, lib])
Export('cocoexe')
SConscript(os.path.join('applications', 'SConscript'))
SConscript(os.path.join('tests', 'SConscript'))