-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSconstruct
More file actions
18 lines (15 loc) · 755 Bytes
/
Sconstruct
File metadata and controls
18 lines (15 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!python file type
import os
app_env = Environment(CPPPATH = ".", CFLAGS=["-g", "-Wall"], ENV = dict(PATH=os.environ["PATH"]))
app_env.ParseConfig("pkg-config --cflags --libs gtk+-3.0")
app_env.ParseConfig("pkg-config --cflags --libs pangocairo")
app_env.ParseConfig("pkg-config --cflags --libs glib-2.0")
AddOption("--win", dest="windows", action="store_true", default=False)
target = app_env["TARGET_OS"]
if target is not None and target.startswith("win"):
app_env.Append(LINKFLAGS="-Wl,--export-all-symbols")
if GetOption("windows"):
app_env.Append(LINKFLAGS="-mwindows")
else:
app_env.Append(LINKFLAGS="-Wl,--export-dynamic")
main = app_env.Program(target = "charmake", source = ["proj.c", "render.c", "strife.c", "skills.c"])