add build system

This commit is contained in:
Josh Holtrop 2014-06-04 20:53:07 -04:00
parent 693ba6c702
commit a49536d8d8
5 changed files with 39 additions and 0 deletions

2
.gitignore vendored Normal file
View File

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

4
Makefile Normal file
View File

@ -0,0 +1,4 @@
default:
%:
rake $@

21
Rakefile.rb Normal file
View File

@ -0,0 +1,21 @@
require "bundler"
Bundler.setup(:default)
require "rake/clean"
require "rscons"
NAME = "jes"
task :library do
Rscons::Environment.new do |env|
env.build_root = "build"
env["CPPPATH"] << "src/lib/include"
env.Library("^/lib#{NAME}.a", Dir["src/lib/**/*.{cc,c}"])
end
end
task :default => [:library]
task :clean do
Rscons.clean
end

View File

@ -0,0 +1,11 @@
#ifndef JES_TEXT_H
#define JES_TEXT_H
namespace jes
{
class Text
{
};
}
#endif

1
src/lib/src/Text.cc Normal file
View File

@ -0,0 +1 @@
#include "jes/Text.h"