build: work around bug in waf's bundle installation

waf wrongly installs resources to BundleRoot/Resources instead of
BundleRoot/Contents/Resources. Will post a patch to them later. Either way,
this must worked around until the next waf patch release.
This commit is contained in:
Stefano Pigozzi 2013-11-25 08:19:18 +01:00
parent 8b6e05adff
commit 4aab1d23e6
1 changed files with 5 additions and 0 deletions

View File

@ -419,6 +419,11 @@ def build(ctx):
resources = [node.srcpath() for node in resources_nodes] resources = [node.srcpath() for node in resources_nodes]
cprog_kwargs['mac_resources'] = resources cprog_kwargs['mac_resources'] = resources
for resource in resources:
res_basename = os.path.basename(resource)
install_name = '/mpv.app/Contents/Resources/' + res_basename
ctx.install_as(ctx.env.BINDIR + install_name, resource)
ctx( ctx(
target = "mpv", target = "mpv",
source = ctx.filtered_sources(sources), source = ctx.filtered_sources(sources),