You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
996 B
Ruby
36 lines
996 B
Ruby
require_relative 'linux'
|
|
|
|
step :do_build, after: :final_opts do
|
|
if opt.is_cross
|
|
env.HOST_AR = 'ar'
|
|
env.HOST_AS = 'gcc'
|
|
env.HOST_CC = 'gcc'
|
|
env.HOST_CXX = 'g++'
|
|
env.HOST_ARFLAGS = []
|
|
env.HOST_ASFLAGS = []
|
|
env.HOST_CFLAGS = []
|
|
env.HOST_CXXFLAGS = []
|
|
env.HOST_LINKFLAGS = []
|
|
env.HOST_WINRCFLAGS = []
|
|
end
|
|
|
|
if !opt.compile_flags.empty?
|
|
env.CFLAGS.unshift *opt.compile_flags
|
|
env.CXXFLAGS.unshift *opt.compile_flags
|
|
# env.set! 'CFLAGS', opt.compile_flags + env.CFLAGS
|
|
# env.set! 'CXXFLAGS', opt.compile_flags + env.CXXFLAGS
|
|
opt.compile_flags.clear.freeze
|
|
end
|
|
|
|
run opt.run_dir, env.CC, '--version'
|
|
einfo 'Starting build'
|
|
Linux.clonens_wait do
|
|
base = [
|
|
File.join(opt.base_dir, 'waf'), '-t', rel_from(opt.base_dir, opt.run_dir),
|
|
'-o', 'build', '--color=yes', '--no-lock-in-top', '--no-lock-in-run'
|
|
]
|
|
run opt.run_dir, *base, 'configure', *opt.config_opts
|
|
run opt.run_dir, *base, *opt.build_opts
|
|
end
|
|
end
|