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.
24 lines
824 B
Ruby
24 lines
824 B
Ruby
vita_cond = -> { opt.os == 'vita' }
|
|
|
|
step :vita_opts, always_after: :default_values, before: :os_opts, cond: vita_cond do
|
|
opt.extra_path.append opt.vita_path
|
|
opt.triplet_oses = %w(vita-eabi)
|
|
opt.triplet_vendors = ['']
|
|
opt.shlib_pattern = 'lib%s.so' # todo
|
|
opt.executable_pattern = '%s' # todo
|
|
|
|
opt.config_opts.append '--all-bundled'
|
|
end
|
|
|
|
step :vita_create, always_after: :default_values, after: :do_build,
|
|
before: :build, cond: vita_cond do
|
|
opt.executables.each do |e|
|
|
next unless File.exist? File.join(opt.run_dir, "build/#{e}")
|
|
|
|
yml = rel_from File.join(opt.base_dir, 'src/vita_plugin/plugin.yml'),
|
|
opt.run_dir
|
|
run opt.run_dir, %W(vita-elf-create -e #{yml} build/#{e} build/#{e}.velf)
|
|
run opt.run_dir, %W(vita-make-fself -c build/#{e}.velf build/#{e}.suprx)
|
|
end
|
|
end
|