add build infrastructure

This commit is contained in:
Josh Holtrop 2015-05-26 22:40:27 -04:00
parent 2de807d5db
commit 921880a33b
2 changed files with 15 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/.rsconscache
/app

13
Rakefile.rb Normal file
View File

@ -0,0 +1,13 @@
require "rscons"
task :default do
Rscons::Environment.new do |env|
env.build_root = "build"
env["CXXFLAGS"] += %w[-isystem oglplus/include]
env["CPPDEFINES"] += %w[
OGLPLUS_NO_SITE_CONFIG
]
sources = Dir["*.cc"]
env.Program("app", sources)
end
end