scripts: waifulib: add special_install_path for platform-specific executable formats that create post link stage (was nro_install_path)
This commit is contained in:
parent
c7e8ea2ffa
commit
a0eec8b85d
3 changed files with 8 additions and 3 deletions
|
@ -212,7 +212,7 @@ def build(bld):
|
|||
use = libs,
|
||||
defines = defines,
|
||||
install_path = install_path,
|
||||
nro_install_path = bld.env.BINDIR,
|
||||
special_install_path = bld.env.BINDIR,
|
||||
nacp = 'platform/nswitch/xash3d-fwgs.nacp',
|
||||
icon = 'platform/nswitch/icon.jpg',
|
||||
sce_sys = 'platform/psvita/sce_sys',
|
||||
|
|
|
@ -58,7 +58,7 @@ def apply_nro(self):
|
|||
tsk = self.nro_task = self.create_task('elf2nro', nodes)
|
||||
self.nro_task.set_outputs(nodes[0].change_ext('.nro'))
|
||||
|
||||
inst_to = getattr(self, 'nro_install_path', None)
|
||||
inst_to = getattr(self, 'special_install_path', None)
|
||||
if inst_to:
|
||||
self.add_install_files(install_to=inst_to,
|
||||
install_from=tsk.outputs[:], chmod=Utils.O755, task=tsk)
|
||||
|
|
|
@ -113,5 +113,10 @@ def apply_vpk(self):
|
|||
self.env.SCESYS = [str(scesysdir)]
|
||||
self.env.VPKFILE = str(vpkfile)
|
||||
|
||||
self.vpk_task = self.create_task('mkvpk', in_nodes)
|
||||
tsk = self.vpk_task = self.create_task('mkvpk', in_nodes)
|
||||
self.vpk_task.set_outputs(out_nodes)
|
||||
|
||||
inst_to = getattr(self, 'special_install_path', None)
|
||||
if inst_to:
|
||||
self.add_install_files(install_to=inst_to,
|
||||
install_from=tsk.outputs[:], chmod=Utils.O755, task=tsk)
|
||||
|
|
Loading…
Add table
Reference in a new issue