<makefile>
<!--
- Support for application bundles, for wxWindows samples.
+ Support for application bundles, for wxWidgets samples.
-->
<!--
</set>
<set var="BUNDLE_PLIST">
- $(TOP_SRCDIR)src/mac/Info.plist.in
+ $(TOP_SRCDIR)src/mac/carbon/Info.plist.in
</set>
<set var="BUNDLE_RESOURCE">
$(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).rsrc
</set>
<set var="BUNDLE_ICONS">
- $(TOP_SRCDIR)src/mac/wxmac.icns
+ $(TOP_SRCDIR)src/mac/carbon/wxmac.icns
</set>
<define-tag name="wx-mac-app-bundle" rules="exe">
<!-- bundle directory: -->
<set var="BUNDLE">$(id).app/Contents</set>
<set var="BUNDLE_TGT">$(BUNDLE)/PkgInfo</set>
+ <set var="BUNDLE_TGT_REF">
+ <if cond="TOOLKIT=='MAC'">$(BUNDLE)/PkgInfo</if>
+ <if cond="TOOLKIT=='COCOA'">$(BUNDLE)/PkgInfo</if>
+ </set>
<add-target target="$(BUNDLE_TGT)" type="action"/>
<modify-target target="$(BUNDLE_TGT)">
<!-- make a hardlink to the binary: -->
ln -f $(ref("__targetdir",id))$(ref("__targetname",id)) $(BUNDLE)/MacOS/$(id)
- <!-- ditto wxWindows resources and icons: -->
- ln -f $(BUNDLE_RESOURCE) $(BUNDLE)/Resources/$(id).rsrc
- ln -f $(BUNDLE_ICONS) $(BUNDLE)/Resources/wxmac.icns
+ <!-- ditto wxWidgets resources and icons: -->
+ cp -f $(BUNDLE_RESOURCE) $(BUNDLE)/Resources/$(id).rsrc
+ cp -f $(BUNDLE_ICONS) $(BUNDLE)/Resources/wxmac.icns
</command>
</modify-target>
cond="PLATFORM_MACOSX=='1'"/>
<modify-target target="$(id)_bundle">
<dependency-of>all</dependency-of>
- <depends>$(BUNDLE_TGT)</depends>
+ <depends>$(BUNDLE_TGT_REF)</depends>
</modify-target>
<!-- "make clean" should delete the bundle: -->