add initial build system
This commit is contained in:
parent
f8af892c0d
commit
9e0a8420e6
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/.rsconscache
|
||||
/build
|
21
Rakefile
Normal file
21
Rakefile
Normal file
@ -0,0 +1,21 @@
|
||||
require "rscons"
|
||||
|
||||
task :lib do
|
||||
Rscons::Environment.new do |env|
|
||||
env["build_root"] = "build/lib"
|
||||
env.build_root = env["build_root"]
|
||||
sources = Dir["src/**/*.cpp"]
|
||||
env["CPPPATH"] << "include"
|
||||
env["CPPPATH"] << "test/gl3w"
|
||||
env["CPPDEFINES"] << %[GLCXX_GL_INCLUDE="gl3w.h"]
|
||||
env["CXXFLAGS"] += %w[-Wall -std=gnu++11]
|
||||
env.Library("${build_root}/lib.a", sources)
|
||||
end
|
||||
end
|
||||
|
||||
task :test do
|
||||
end
|
||||
|
||||
task :clean do
|
||||
Rscons.clean
|
||||
end
|
3630
test/gl3w/GL3/gl3.h
Normal file
3630
test/gl3w/GL3/gl3.h
Normal file
File diff suppressed because it is too large
Load Diff
1251
test/gl3w/gl3w.c
Normal file
1251
test/gl3w/gl3w.c
Normal file
File diff suppressed because it is too large
Load Diff
1146
test/gl3w/gl3w.h
Normal file
1146
test/gl3w/gl3w.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user