Stefan Csomor
2008-08-04 20:36:18 UTC
Hi,
I have two problems I'd like to solve with bakefile for wxMac:
in trunk for the docview sample I've added the .icns for the document types,
now I have added a copy-files section like this to docview.bkl
<using module="datafiles"/>
<copy-files id="resources" cond="PLATFORM_MACOSX=='1'">
<dependency-of>all</dependency-of>
<srcdir>$(SRCDIR)</srcdir>
<dstdir>$(BUILDDIR)/docview.app/Resources</dstdir>
<files>chart.icns doc.icns notepad.icns</files>
</copy-files>
this seems to work, but I'm not sure if it's the 'right way'
then docview needs a different info.plist, but I can't seem to find a proper
way to formulate the section in mac_bundles.bkl so that in case such a file
exists in the source dir, it will be used, I've tried several variants of
<set var="BUNDLE_PLIST">
<if cond="$(os.path.isfile(envvar('srcdir')+'/Info.plist.in'))">
$(SRCDIR)/Info.plist.in
</if>
<if cond="$(os.path.isfile(envvar('srcdir')+'/Info.plist.in') ==
False)">
$(TOP_SRCDIR)src/osx/carbon/Info.plist.in
</if>
</set>
but I'm apparently too stupid to see the obvious ....
Thanks for any pointers
Stefan
I have two problems I'd like to solve with bakefile for wxMac:
in trunk for the docview sample I've added the .icns for the document types,
now I have added a copy-files section like this to docview.bkl
<using module="datafiles"/>
<copy-files id="resources" cond="PLATFORM_MACOSX=='1'">
<dependency-of>all</dependency-of>
<srcdir>$(SRCDIR)</srcdir>
<dstdir>$(BUILDDIR)/docview.app/Resources</dstdir>
<files>chart.icns doc.icns notepad.icns</files>
</copy-files>
this seems to work, but I'm not sure if it's the 'right way'
then docview needs a different info.plist, but I can't seem to find a proper
way to formulate the section in mac_bundles.bkl so that in case such a file
exists in the source dir, it will be used, I've tried several variants of
<set var="BUNDLE_PLIST">
<if cond="$(os.path.isfile(envvar('srcdir')+'/Info.plist.in'))">
$(SRCDIR)/Info.plist.in
</if>
<if cond="$(os.path.isfile(envvar('srcdir')+'/Info.plist.in') ==
False)">
$(TOP_SRCDIR)src/osx/carbon/Info.plist.in
</if>
</set>
but I'm apparently too stupid to see the obvious ....
Thanks for any pointers
Stefan