link with libjes.a as a source so Rscons picks up library file modifications
This commit is contained in:
parent
cae4b077d9
commit
1effe27afb
10
Rakefile.rb
10
Rakefile.rb
@ -25,14 +25,13 @@ task :gui => :library do
|
||||
base_env.clone(clone: :all) do |env|
|
||||
env.parse_flags!("!sdl2-config --cflags --libs")
|
||||
env.parse_flags!("!freetype-config --cflags --libs")
|
||||
env["LIBPATH"] += ["lib"]
|
||||
env["LIBS"] += ["dl", "jes"]
|
||||
env["LIBS"] += ["dl"]
|
||||
if RUBY_PLATFORM =~ /mingw/
|
||||
env["LIBS"] += ["opengl32"]
|
||||
else
|
||||
env["LIBS"] += ["GL"]
|
||||
end
|
||||
env.Program("bin/jes", Dir["src/gui/**/*.{cc,c}"])
|
||||
env.Program("bin/jes", Dir["src/gui/**/*.{cc,c}", "lib/lib#{NAME}.a"])
|
||||
end
|
||||
end
|
||||
|
||||
@ -40,11 +39,10 @@ task :test => :library do
|
||||
base_env.clone(clone: :all) do |env|
|
||||
env["CPPPATH"] << "gtest-#{GTEST_VERSION}/include"
|
||||
env["CPPPATH"] << "gtest-#{GTEST_VERSION}"
|
||||
env["LIBS"] << NAME
|
||||
env["LIBPATH"] << "lib"
|
||||
sources = Dir["gtest-#{GTEST_VERSION}/src/gtest-all.cc",
|
||||
"gtest-#{GTEST_VERSION}/src/gtest_main.cc",
|
||||
"test/src/**/*.cc"]
|
||||
"test/src/**/*.cc",
|
||||
"lib/lib#{NAME}.a"]
|
||||
env.Program("build/tests", sources)
|
||||
if RUBY_PLATFORM =~ /linux/
|
||||
env["LIBS"] << "pthread"
|
||||
|
Loading…
x
Reference in New Issue
Block a user