add build system
This commit is contained in:
parent
693ba6c702
commit
a49536d8d8
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/build
|
||||||
|
/.rsconscache
|
21
Rakefile.rb
Normal file
21
Rakefile.rb
Normal 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
|
11
src/lib/include/jes/Text.h
Normal file
11
src/lib/include/jes/Text.h
Normal 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
1
src/lib/src/Text.cc
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "jes/Text.h"
|
Loading…
x
Reference in New Issue
Block a user