-
Notifications
You must be signed in to change notification settings - Fork 2
/
wscript
41 lines (29 loc) · 1.18 KB
/
wscript
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
#! /usr/bin/env python
from waflib.TaskGen import feature, after
from waflib.Task import Task
from waflib.Tools import c_preproc
def options(opt):
opt.load('compiler_c compiler_cxx python')
def configure(conf):
conf.load('compiler_c compiler_cxx python')
conf.env.append_value("CXXFLAGS", ["-std=c++0x", "-ggdb"])
conf.env.append_value("RPATH", [conf.env.LIBDIR])
conf.check_cfg(path="root-config", package="", uselib_store="CERN_ROOT_SYSTEM",
args='--libs --cflags', mandatory=False)
conf.define("A4STORE_STANDALONE", 1)
conf.to_log("Final environment:")
conf.to_log(conf.env)
def build(bld):
bld(features="cxx cxxshlib",
source=bld.path.ant_glob("src/**.cpp"),
includes="src/",
target="a4store")
bld(features="cxx cxxprogram",
source="src/apps/a4store_standalone_test.cpp",
includes="src/",
target="a4store_standalone_test",
use=["a4store", "CERN_ROOT_SYSTEM"])
headers = bld.path.ant_glob("src/a4/**.h")
cwd = bld.path.find_or_declare("src/a4").get_src()
bld.install_files('${PREFIX}/include/a4', headers, cwd=cwd,
relative_trick=True)