From 921880a33b4b03fcc0e89a3ebb8c97042b388e85 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 26 May 2015 22:40:27 -0400 Subject: [PATCH] add build infrastructure --- .gitignore | 2 ++ Rakefile.rb | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .gitignore create mode 100644 Rakefile.rb diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..edb6577 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.rsconscache +/app diff --git a/Rakefile.rb b/Rakefile.rb new file mode 100644 index 0000000..02dff3c --- /dev/null +++ b/Rakefile.rb @@ -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