-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.it
107 lines (100 loc) · 3.15 KB
/
build.it
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/**
@author: Ingwie Phoenix <ingwie2000@gmail.com>
@desc: This is the buildfile for Phoenix Engine.
Please keep in mind, that **ALL** files from $CWD/.IceTea are
automatically being included by the engine itself.
*/
function libName(name) {
return "lib${name}";
}
target("PECore", "lib") {
input: []
// Common - bindings and such.
+ pfs.glob("PhoenixEngine/common/","*.cpp")
// Renderer stuff.
+ pfs.glob("PhoenixEngine/content/","*.cpp")
// Browser, main process stuff
+ pfs.glob("PhoenixEngine/browser/","*.cpp")
// Application runtimes, IPC, etc.
+ pfs.glob("PhoenixEngine/app/","*.cpp"),
settings: {
CXX: {
warnings: [],
standard: "c++98",
includes: ["PhoenixEngine/"]
},
LINK: {
strip_all: true
}
},
needs: [
//"curl",
"canister",
"ttvfs"
] + IceTea.tag("angelscript")
+ IceTea.tag("as-ext")
+ IceTea.tag("php")
+ IceTea.tag("php-ext")
+ IceTea.tag("uv")
+ IceTea.tag("sqlite")
+ IceTea.tag("nodejs-lib")
+ IceTea.tag("brightray")
+ IceTea.tag("chromium_content"),
exports: {
// Global exports for all platforms.
CXX: {
includeDirs: ["PhoenixEngine/"]
},
LINK: {
libraries: ["PhoenixEngine"],
// Quickly generate the libraryname. PREFIX is the install prefix.
library_path: "$(PREFIX)/"..libName("PhoenixEngine")
},
INSTALL: {
headers: [
// Dir : Headers.
{"PhoenixEngine/common/": ["PhoenixEngine/common/*.h"]},
{"PhoenixEngine/app/": ["PhoenixEngine/app/*.h"]},
{"PhoenixEngine/content/": ["PhoenixEngine/content/*.h"]},
{"PhoenixEngine/browser/": ["PhoenixEngine/browser/*.h"]},
]
},
// Mac OS has: App, Framework, Bundle. Should this trigger in GNUStep too?
Framework: {
Plist: "PhoenixEngine/PE-Info.plist",
Resources: "PhoenixEngine/Resources",
// maybe IceTea should automatically figure this out...? Most probably should.
library_path: "@rpath/../Frameworks/Phoenix Engine.framework/Phoenix Engine"
}
},
init: function() {
print "Welcome to Phoenix Engine!"
},
configure: function() {
if(cli.check("--debug")) {
@settings.CXX.optimization = "none";
}
/*var conf = require("PhoenixEngine/info.os");
for(var k,v in conf) {
config.set(k, v);
}*/
// Looks if *.in exists and generates .in-less version.
//config.transform("PhoenixEngine/PE-Info.plist");
}
}
/*
target("Phoenix Engine", "osx-framework") {
input: ["PhoenixEngine/objc/*.m", "PhoenixEngine/objc/*.mm"],
needs: ["PECore"],
exports: {
INSTALL: {
headers: [
{"PhoenixEngine/objc/": ["PhoenixEngine/objc/*.h"]}
]
}
}
}
*/
target("PhoenixEngine", "shlib") {
needs: ["PECore"]
}