<set var="BUNDLE_PLIST" overwrite="0">
$(TOP_SRCDIR)src/osx/carbon/Info.plist.in
</set>
- <set var="BUNDLE_ICONS" overwrite="0">
+ <set var="BUNDLE_ICON" overwrite="0">
$(TOP_SRCDIR)src/osx/carbon/wxmac.icns
</set>
+ <set var="BUNDLE_RESOURCES" overwrite="0"></set>
<define-tag name="wx-mac-app-bundle" rules="exe">
<!-- required data: -->
<depends>$(id)</depends>
<depends-on-file>$(BUNDLE_PLIST)</depends-on-file>
- <depends-on-file>$(BUNDLE_ICONS)</depends-on-file>
+ <depends-on-file>$(BUNDLE_ICON)</depends-on-file>
+ <depends-on-file>$(BUNDLE_RESOURCES)</depends-on-file>
<command>
<!-- create the directories: -->
<!-- make a hardlink to the binary: -->
ln -f $(ref("__targetdir",id))$(ref("__targetname",id)) $(BUNDLE)/MacOS/$(id)
- <!-- ditto wxWidgets resources and icons: -->
- cp -f $(BUNDLE_ICONS) $(BUNDLE)/Resources
- </command>
+ <!-- copy the application icon: -->
+ cp -f $(BUNDLE_ICON) $(BUNDLE)/Resources/wxmac.icns
+ </command>
+ <if cond="BUNDLE_RESOURCES!=''">
+ <command>
+ <!-- copy all other bundle resources: -->
+ cp -f $(BUNDLE_RESOURCES) $(BUNDLE)/Resources
+ </command>
+ </if>
+
</modify-target>
<!-- add pseudo target id_bundle: -->
<key>CFBundleExecutable</key>
<string>EXECUTABLE</string>
<key>CFBundleIconFile</key>
- <string>doc.icns</string>
+ <string>wxmac.icns</string>
<key>CFBundleName</key>
<string>EXECUTABLE</string>
<key>CFBundlePackageType</key>
<makefile>
<set var="BUNDLE_PLIST">$(SRCDIR)/Info.plist.in</set>
- <set var="BUNDLE_ICONS">$(SRCDIR)/chart.icns $(SRCDIR)/doc.icns $(SRCDIR)/notepad.icns</set>
+ <set var="BUNDLE_ICON">$(SRCDIR)/doc.icns</set>
+ <set var="BUNDLE_RESOURCES">$(SRCDIR)/chart.icns $(SRCDIR)/notepad.icns</set>
<include file="../../build/bakefiles/common_samples.bkl"/>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>docview.rc</win32-res>
- <mac-res>chart.r doc.r docview.r mondrian.r</mac-res>
</exe>
</makefile>