Store configure task parameters in configuration cache data - close #151
This commit is contained in:
1 parent
7e5c6e6b12
commit
5b6353395d
10 files changed
+102
-8
No files matched your search
@@ -0,0 +1,6 @@
|
||||
configure do
|
||||
check_c_compiler "clang"
|
||||
end
|
||||
env do |env|
|
||||
env.Program("simple.exe", "simple.c")
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
configure params: [
|
||||
param("with-xyz", "xyz", true, "Set xyz"),
|
||||
param("flag", nil, false, "Set flag"),
|
||||
] do
|
||||
check_c_compiler
|
||||
end
|
||||
|
||||
default do
|
||||
puts "xyz: #{Task["configure"]["with-xyz"]}"
|
||||
puts "flag: #{Task["configure"]["flag"].inspect}"
|
||||
end
|
||||
@@ -11,12 +11,12 @@ env do |env|
|
||||
end
|
||||
|
||||
task "install", depends: "build" do
|
||||
env.InstallDirectory("${prefix}/bin")
|
||||
env.Install("${prefix}/bin", "^/program.exe")
|
||||
env.InstallDirectory("${prefix}/share")
|
||||
env.Install("${prefix}/share/proj/install.rb", "install.rb")
|
||||
env.Install("${prefix}/mult", ["install.rb", "copy.rb"])
|
||||
env.Install("${prefix}/src", "src")
|
||||
env.InstallDirectory("${configure:prefix}/bin")
|
||||
env.Install("${configure:prefix}/bin", "^/program.exe")
|
||||
env.InstallDirectory("${configure:prefix}/share")
|
||||
env.Install("${configure:prefix}/share/proj/install.rb", "install.rb")
|
||||
env.Install("${configure:prefix}/mult", ["install.rb", "copy.rb"])
|
||||
env.Install("${configure:prefix}/src", "src")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user