switch from waf to rscons
This commit is contained in:
1 parent
a0b2f660a2
commit
ddb905351a
7 files changed
+66
-254
No files matched your search
+39
@@ -0,0 +1,39 @@
|
||||
project_name "jes"
|
||||
|
||||
configure do
|
||||
check_c_compiler
|
||||
check_cxx_compiler
|
||||
check_d_compiler
|
||||
check_c_header "getopt.h"
|
||||
check_c_header "X11/Xlib.h"
|
||||
check_cfg package: "freetype2"
|
||||
check_lib "GL"
|
||||
check_lib "dl"
|
||||
check_lib "X11"
|
||||
end
|
||||
|
||||
build do
|
||||
Environment.new do |env|
|
||||
env["CPPDEFINES"] += %w[
|
||||
APPNAME="jes"
|
||||
VERSION="0.0.1"
|
||||
GLCXX_GL_INCLUDE="gl3w.h"
|
||||
PLATFORM_LINUX
|
||||
JTK_X
|
||||
]
|
||||
env["CPPPATH"] += glob("src/**", "libs/glcxx/include")
|
||||
env["CCFLAGS"] += %w[
|
||||
-Wall
|
||||
-O2
|
||||
-Wno-switch
|
||||
]
|
||||
env["CXXFLAGS"] += %w[
|
||||
-std=gnu++14
|
||||
]
|
||||
sources = glob("src/**/*.{c,cc,cxx}", "libs/glcxx/src/glcxx/*")
|
||||
env.Program("jes", sources)
|
||||
env.InstallDirectory("${prefix}/bin")
|
||||
env.Install("${prefix}/bin", "jes")
|
||||
env.Install("${prefix}/share", "share")
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user