-
Notifications
You must be signed in to change notification settings - Fork 1
/
Phoenixfile.phnx
39 lines (35 loc) · 1.33 KB
/
Phoenixfile.phnx
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
############
### Project Setup
############
$$Phoenix.checkVersion(minimum: "0.0.1");
Project("Phoenix", language: "C++");
#TODO# $$Phoenix.setPolicy("OutOfTreeBuild", required);
######
## "phoenix" binary
######
$phoenix = CreateTarget("phoenix", language: "C++");
$phoenix.setStandardsMode("C++11", strict);
#$phoenix.addDefinitions(DATA_DIR: '"/usr/bin/data"');#TODO# $$dataDir);
$phoenix.addSourceDirectory("src", recursive);
$phoenix.addIncludeDirectories(["src"]);
#TODO# $phoenix.install(to: $$binDir, dependencies: 'autodetect');
######
## tests
######
$utiltest = CreateTarget("utiltest", language: "C++");
$utiltest.setStandardsMode("C++11", strict);
$utiltest.addSourceDirectory("src/util");
$utiltest.addSources(["tests/Tester.cpp", "tests/UtilTest.cpp"]);
$utiltest.addIncludeDirectories(["src"]);
$scripttest = CreateTarget("scripttest", language: "C++");
$scripttest.setStandardsMode("C++11", strict);
$scripttest.addSourceDirectory("src/util");
$scripttest.addSourceDirectory("src/script");
$scripttest.addSources(["tests/Tester.cpp", "tests/ScriptTest.cpp"]);
$scripttest.addIncludeDirectories(["src"]);
######
## language support files
######
#TODO# $datafiles = CreateTarget(language: "static-files");
#TODO# $datafiles.addSourceDirectory("data", extensions: ["phnx"], recursive);
#TODO# $datafiles.install(to: "$$dataDir/phoenix/");