2007-11-26 15:59:22 +00:00
|
|
|
# This file contains port specific Makefile rules. It is automatically
|
|
|
|
# included by the default (main) Makefile.
|
2008-02-25 14:09:04 +00:00
|
|
|
#
|
2007-11-26 15:59:22 +00:00
|
|
|
|
|
|
|
#
|
2011-05-05 13:38:54 +00:00
|
|
|
# POSIX specific
|
2007-11-26 15:59:22 +00:00
|
|
|
#
|
2010-05-09 20:42:18 +00:00
|
|
|
install:
|
2012-11-13 19:52:52 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(bindir)"
|
|
|
|
$(INSTALL) -c -m 755 "./$(EXECUTABLE)" "$(DESTDIR)$(bindir)/$(EXECUTABLE)"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(mandir)/man6/"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/dists/scummvm.6" "$(DESTDIR)$(mandir)/man6/scummvm.6"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datarootdir)/pixmaps/"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/icons/scummvm.xpm" "$(DESTDIR)$(datarootdir)/pixmaps/scummvm.xpm"
|
2014-09-14 08:48:45 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datarootdir)/icons/hicolor/scalable/apps/"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/icons/scummvm.svg" "$(DESTDIR)$(datarootdir)/icons/hicolor/scalable/apps/scummvm.svg"
|
2012-11-13 19:52:52 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(docdir)"
|
|
|
|
$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) "$(DESTDIR)$(docdir)"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datadir)"
|
2016-09-05 22:39:34 +00:00
|
|
|
$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_NETWORKING) $(DIST_FILES_ENGINEDATA) "$(DESTDIR)$(datadir)/"
|
2016-07-29 19:40:50 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datarootdir)/applications"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/dists/scummvm.desktop" "$(DESTDIR)$(datarootdir)/applications/scummvm.desktop"
|
2016-07-29 20:04:25 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datarootdir)/appdata"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/dists/scummvm.appdata.xml" "$(DESTDIR)$(datarootdir)/appdata/scummvm.appdata.xml"
|
2012-11-13 19:52:52 +00:00
|
|
|
ifdef DYNAMIC_MODULES
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(libdir)/scummvm/"
|
|
|
|
$(INSTALL) -c -m 644 $(PLUGINS) "$(DESTDIR)$(libdir)/scummvm/"
|
|
|
|
endif
|
|
|
|
|
|
|
|
install-strip:
|
2010-05-09 20:42:18 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(bindir)"
|
|
|
|
$(INSTALL) -c -s -m 755 "./$(EXECUTABLE)" "$(DESTDIR)$(bindir)/$(EXECUTABLE)"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(mandir)/man6/"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/dists/scummvm.6" "$(DESTDIR)$(mandir)/man6/scummvm.6"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datarootdir)/pixmaps/"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/icons/scummvm.xpm" "$(DESTDIR)$(datarootdir)/pixmaps/scummvm.xpm"
|
2014-09-14 08:48:45 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datarootdir)/icons/hicolor/scalable/apps/"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/icons/scummvm.svg" "$(DESTDIR)$(datarootdir)/icons/hicolor/scalable/apps/scummvm.svg"
|
2010-05-09 20:42:18 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(docdir)"
|
|
|
|
$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) "$(DESTDIR)$(docdir)"
|
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datadir)"
|
2016-09-05 22:39:34 +00:00
|
|
|
$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_NETWORKING) $(DIST_FILES_ENGINEDATA) "$(DESTDIR)$(datadir)/"
|
2016-07-29 19:40:50 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datarootdir)/applications"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/dists/scummvm.desktop" "$(DESTDIR)$(datarootdir)/applications/scummvm.desktop"
|
2016-07-29 20:04:25 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(datarootdir)/appdata"
|
|
|
|
$(INSTALL) -c -m 644 "$(srcdir)/dists/scummvm.appdata.xml" "$(DESTDIR)$(datarootdir)/appdata/scummvm.appdata.xml"
|
2008-05-06 03:11:01 +00:00
|
|
|
ifdef DYNAMIC_MODULES
|
2010-05-09 20:42:18 +00:00
|
|
|
$(INSTALL) -d "$(DESTDIR)$(libdir)/scummvm/"
|
|
|
|
$(INSTALL) -c -s -m 644 $(PLUGINS) "$(DESTDIR)$(libdir)/scummvm/"
|
2008-05-02 14:30:06 +00:00
|
|
|
endif
|
2007-11-26 15:59:22 +00:00
|
|
|
|
|
|
|
uninstall:
|
2010-05-09 20:42:18 +00:00
|
|
|
rm -f "$(DESTDIR)$(bindir)/$(EXECUTABLE)"
|
|
|
|
rm -f "$(DESTDIR)$(mandir)/man6/scummvm.6"
|
|
|
|
rm -f "$(DESTDIR)$(datarootdir)/pixmaps/scummvm.xpm"
|
2014-09-14 08:48:45 +00:00
|
|
|
rm -f "$(DESTDIR)$(datarootdir)/icons/hicolor/scalable/apps/scummvm.svg"
|
2010-05-09 20:42:18 +00:00
|
|
|
rm -rf "$(DESTDIR)$(docdir)"
|
|
|
|
rm -rf "$(DESTDIR)$(datadir)"
|
2016-07-29 19:40:50 +00:00
|
|
|
rm -f "$(DESTDIR)$(datarootdir)/applications/scummvm.desktop"
|
2016-07-29 20:04:25 +00:00
|
|
|
rm -f "$(DESTDIR)$(datarootdir)/appdata/scummvm.appdata.xml"
|
2008-05-06 03:11:01 +00:00
|
|
|
ifdef DYNAMIC_MODULES
|
2010-05-09 20:42:18 +00:00
|
|
|
rm -rf "$(DESTDIR)$(libdir)/scummvm/"
|
2008-05-02 14:30:06 +00:00
|
|
|
endif
|
2007-11-26 15:59:22 +00:00
|
|
|
|
|
|
|
# Special target to create a application wrapper for Mac OS X
|
2016-03-20 21:27:47 +00:00
|
|
|
|
|
|
|
ifdef USE_DOCKTILEPLUGIN
|
|
|
|
|
|
|
|
# The NsDockTilePlugIn needs to be compiled in both 32 and 64 bits irrespective of how ScummVM itself is compiled.
|
|
|
|
# Therefore do not use $(CXXFLAGS) and $(LDFLAGS).
|
|
|
|
|
|
|
|
ScummVMDockTilePlugin32.o:
|
2016-03-25 20:26:01 +00:00
|
|
|
$(CXX) -mmacosx-version-min=10.6 -arch i386 -O2 -c $(srcdir)/backends/taskbar/macosx/dockplugin/dockplugin.m -o ScummVMDockTilePlugin32.o
|
2016-03-20 21:27:47 +00:00
|
|
|
|
|
|
|
ScummVMDockTilePlugin32: ScummVMDockTilePlugin32.o
|
|
|
|
$(CXX) -mmacosx-version-min=10.6 -arch i386 -bundle -framework Foundation -framework AppKit -fobjc-link-runtime ScummVMDockTilePlugin32.o -o ScummVMDockTilePlugin32
|
|
|
|
|
|
|
|
ScummVMDockTilePlugin64.o:
|
2016-03-25 20:26:01 +00:00
|
|
|
$(CXX) -mmacosx-version-min=10.6 -arch x86_64 -O2 -c $(srcdir)/backends/taskbar/macosx/dockplugin/dockplugin.m -o ScummVMDockTilePlugin64.o
|
2016-03-27 21:47:18 +00:00
|
|
|
|
2016-03-20 21:27:47 +00:00
|
|
|
ScummVMDockTilePlugin64: ScummVMDockTilePlugin64.o
|
|
|
|
$(CXX) -mmacosx-version-min=10.6 -arch x86_64 -bundle -framework Foundation -framework AppKit -fobjc-link-runtime ScummVMDockTilePlugin64.o -o ScummVMDockTilePlugin64
|
2016-03-27 21:47:18 +00:00
|
|
|
|
2016-03-20 21:27:47 +00:00
|
|
|
ScummVMDockTilePlugin: ScummVMDockTilePlugin32 ScummVMDockTilePlugin64
|
|
|
|
lipo -create ScummVMDockTilePlugin32 ScummVMDockTilePlugin64 -output ScummVMDockTilePlugin
|
|
|
|
|
2016-03-25 20:26:01 +00:00
|
|
|
scummvm.docktileplugin: ScummVMDockTilePlugin
|
2016-03-20 21:27:47 +00:00
|
|
|
mkdir -p scummvm.docktileplugin/Contents
|
|
|
|
cp $(srcdir)/dists/macosx/dockplugin/Info.plist scummvm.docktileplugin/Contents
|
|
|
|
mkdir -p scummvm.docktileplugin/Contents/MacOS
|
|
|
|
cp ScummVMDockTilePlugIn scummvm.docktileplugin/Contents/MacOS/
|
|
|
|
chmod 644 scummvm.docktileplugin/Contents/MacOS/ScummVMDockTilePlugIn
|
2016-03-27 21:47:18 +00:00
|
|
|
|
2016-03-20 21:27:47 +00:00
|
|
|
endif
|
|
|
|
|
2007-11-26 15:59:22 +00:00
|
|
|
bundle_name = ScummVM.app
|
2016-03-20 21:27:47 +00:00
|
|
|
|
|
|
|
ifdef USE_DOCKTILEPLUGIN
|
2016-03-25 20:26:01 +00:00
|
|
|
bundle: scummvm-static scummvm.docktileplugin
|
2016-03-20 21:27:47 +00:00
|
|
|
else
|
2009-08-07 18:16:58 +00:00
|
|
|
bundle: scummvm-static
|
2016-03-20 21:27:47 +00:00
|
|
|
endif
|
2007-11-26 15:59:22 +00:00
|
|
|
mkdir -p $(bundle_name)/Contents/MacOS
|
|
|
|
mkdir -p $(bundle_name)/Contents/Resources
|
|
|
|
echo "APPL????" > $(bundle_name)/Contents/PkgInfo
|
2016-01-06 12:36:59 +00:00
|
|
|
sed -e 's/$$(PRODUCT_BUNDLE_IDENTIFIER)/org.scummvm.scummvm/' $(srcdir)/dists/macosx/Info.plist >$(bundle_name)/Contents/Info.plist
|
2011-07-03 21:01:17 +00:00
|
|
|
ifdef USE_SPARKLE
|
|
|
|
mkdir -p $(bundle_name)/Contents/Frameworks
|
|
|
|
cp $(srcdir)/dists/macosx/dsa_pub.pem $(bundle_name)/Contents/Resources/
|
2016-03-27 12:04:42 +00:00
|
|
|
rm -rf $(bundle_name)/Contents/Frameworks/Sparkle.framework
|
|
|
|
cp -R $(SPARKLEPATH)/Sparkle.framework $(bundle_name)/Contents/Frameworks/
|
2011-07-03 21:01:17 +00:00
|
|
|
endif
|
2007-11-26 15:59:22 +00:00
|
|
|
cp $(srcdir)/icons/scummvm.icns $(bundle_name)/Contents/Resources/
|
2009-06-18 18:40:38 +00:00
|
|
|
cp $(DIST_FILES_DOCS) $(bundle_name)/
|
2008-01-06 14:08:53 +00:00
|
|
|
cp $(DIST_FILES_THEMES) $(bundle_name)/Contents/Resources/
|
2016-09-05 22:39:34 +00:00
|
|
|
ifdef DIST_FILES_NETWORKING
|
|
|
|
cp $(DIST_FILES_NETWORKING) $(bundle_name)/Contents/Resources/
|
|
|
|
endif
|
2010-05-26 13:27:11 +00:00
|
|
|
ifdef DIST_FILES_ENGINEDATA
|
2008-01-06 14:08:53 +00:00
|
|
|
cp $(DIST_FILES_ENGINEDATA) $(bundle_name)/Contents/Resources/
|
2010-05-26 13:27:11 +00:00
|
|
|
endif
|
2011-04-09 21:47:35 +00:00
|
|
|
$(srcdir)/devtools/credits.pl --rtf > $(bundle_name)/Contents/Resources/Credits.rtf
|
2007-12-27 23:41:15 +00:00
|
|
|
chmod 644 $(bundle_name)/Contents/Resources/*
|
|
|
|
cp scummvm-static $(bundle_name)/Contents/MacOS/scummvm
|
|
|
|
chmod 755 $(bundle_name)/Contents/MacOS/scummvm
|
2009-03-19 20:49:22 +00:00
|
|
|
$(STRIP) $(bundle_name)/Contents/MacOS/scummvm
|
2016-03-20 21:27:47 +00:00
|
|
|
ifdef USE_DOCKTILEPLUGIN
|
|
|
|
mkdir -p $(bundle_name)/Contents/PlugIns
|
|
|
|
cp -r scummvm.docktileplugin $(bundle_name)/Contents/PlugIns/
|
|
|
|
endif
|
2007-11-26 15:59:22 +00:00
|
|
|
|
2009-08-07 18:16:58 +00:00
|
|
|
iphonebundle: iphone
|
2015-12-04 17:20:09 +00:00
|
|
|
mkdir -p $(bundle_name)
|
|
|
|
cp $(srcdir)/dists/iphone/Info.plist $(bundle_name)/
|
|
|
|
cp $(DIST_FILES_DOCS) $(bundle_name)/
|
|
|
|
cp $(DIST_FILES_THEMES) $(bundle_name)/
|
2016-09-05 22:39:34 +00:00
|
|
|
ifdef DIST_FILES_NETWORKING
|
|
|
|
cp $(DIST_FILES_NETWORKING) $(bundle_name)/
|
|
|
|
endif
|
2015-12-04 17:20:09 +00:00
|
|
|
ifdef DIST_FILES_ENGINEDATA
|
|
|
|
cp $(DIST_FILES_ENGINEDATA) $(bundle_name)/
|
|
|
|
endif
|
|
|
|
$(STRIP) scummvm
|
|
|
|
ldid -S scummvm
|
|
|
|
chmod 755 scummvm
|
|
|
|
cp scummvm $(bundle_name)/ScummVM
|
|
|
|
cp $(srcdir)/dists/iphone/icon.png $(bundle_name)/
|
|
|
|
cp $(srcdir)/dists/iphone/icon-72.png $(bundle_name)/
|
|
|
|
cp $(srcdir)/dists/iphone/Default.png $(bundle_name)/
|
|
|
|
|
2016-01-10 18:26:33 +00:00
|
|
|
ios7bundle: iphone
|
2007-11-26 15:59:22 +00:00
|
|
|
mkdir -p $(bundle_name)
|
2015-12-02 16:10:37 +00:00
|
|
|
awk 'BEGIN {s=0}\
|
|
|
|
/<key>CFBundleIcons<\/key>/ {\
|
|
|
|
print $$0;\
|
|
|
|
print "\t<dict>";\
|
|
|
|
print "\t\t<key>CFBundlePrimaryIcon</key>";\
|
|
|
|
print "\t\t<dict>";\
|
|
|
|
print "\t\t\t<key>CFBundleIconFiles</key>";\
|
|
|
|
print "\t\t\t<array>";\
|
|
|
|
print "\t\t\t\t<string>AppIcon29x29</string>";\
|
|
|
|
print "\t\t\t\t<string>AppIcon40x40</string>";\
|
|
|
|
print "\t\t\t\t<string>AppIcon60x60</string>";\
|
|
|
|
print "\t\t\t</array>";\
|
|
|
|
print "\t\t</dict>";\
|
|
|
|
print "\t</dict>";\
|
|
|
|
s=2}\
|
|
|
|
/<key>CFBundleIcons~ipad<\/key>/ {\
|
|
|
|
print $$0;\
|
|
|
|
print "\t<dict>";\
|
|
|
|
print "\t\t<key>CFBundlePrimaryIcon</key>";\
|
|
|
|
print "\t\t<dict>";\
|
|
|
|
print "\t\t\t<key>CFBundleIconFiles</key>";\
|
|
|
|
print "\t\t\t<array>";\
|
|
|
|
print "\t\t\t\t<string>AppIcon29x29</string>";\
|
|
|
|
print "\t\t\t\t<string>AppIcon40x40</string>";\
|
|
|
|
print "\t\t\t\t<string>AppIcon60x60</string>";\
|
|
|
|
print "\t\t\t\t<string>AppIcon76x76</string>";\
|
2015-12-09 13:16:49 +00:00
|
|
|
print "\t\t\t\t<string>AppIcon83.5x83.5</string>";\
|
2015-12-02 16:10:37 +00:00
|
|
|
print "\t\t\t</array>";\
|
|
|
|
print "\t\t</dict>";\
|
|
|
|
print "\t</dict>";\
|
|
|
|
s=2}\
|
|
|
|
/<key>UILaunchImages<\/key>/ {\
|
|
|
|
print $$0;\
|
|
|
|
print "\t<array>";\
|
|
|
|
print "\t\t<dict>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>";\
|
2015-12-10 17:44:31 +00:00
|
|
|
print "\t\t\t<string>8.0</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageName</key>";\
|
|
|
|
print "\t\t\t<string>LaunchImage-800-Portrait-736h</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageOrientation</key>";\
|
|
|
|
print "\t\t\t<string>Portrait</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageSize</key>";\
|
|
|
|
print "\t\t\t<string>{414, 736}</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>";\
|
|
|
|
print "\t\t\t<string>8.0</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageName</key>";\
|
|
|
|
print "\t\t\t<string>LaunchImage-800-Landscape-736h</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageOrientation</key>";\
|
|
|
|
print "\t\t\t<string>Landscape</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageSize</key>";\
|
|
|
|
print "\t\t\t<string>{414, 736}</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>";\
|
|
|
|
print "\t\t\t<string>8.0</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageName</key>";\
|
|
|
|
print "\t\t\t<string>LaunchImage-800-667h</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageOrientation</key>";\
|
|
|
|
print "\t\t\t<string>Portrait</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageSize</key>";\
|
|
|
|
print "\t\t\t<string>{375, 667}</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>";\
|
2015-12-02 16:10:37 +00:00
|
|
|
print "\t\t\t<string>7.0</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageName</key>";\
|
|
|
|
print "\t\t\t<string>LaunchImage-700-568h</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageOrientation</key>";\
|
|
|
|
print "\t\t\t<string>Portrait</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageSize</key>";\
|
|
|
|
print "\t\t\t<string>{320, 568}</string>";\
|
|
|
|
print "\t\t</dict>";\
|
|
|
|
print "\t\t<dict>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>";\
|
|
|
|
print "\t\t\t<string>7.0</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageName</key>";\
|
|
|
|
print "\t\t\t<string>LaunchImage-700-Portrait</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageOrientation</key>";\
|
|
|
|
print "\t\t\t<string>Portrait</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageSize</key>";\
|
|
|
|
print "\t\t\t<string>{768, 1024}</string>";\
|
|
|
|
print "\t\t</dict>";\
|
|
|
|
print "\t\t<dict>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>";\
|
|
|
|
print "\t\t\t<string>7.0</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageName</key>";\
|
|
|
|
print "\t\t\t<string>LaunchImage-700-Landscape</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageOrientation</key>";\
|
|
|
|
print "\t\t\t<string>Landscape</string>";\
|
|
|
|
print "\t\t\t<key>UILaunchImageSize</key>";\
|
|
|
|
print "\t\t\t<string>{768, 1024}</string>";\
|
|
|
|
print "\t\t</dict>";\
|
|
|
|
print "\t</array>";\
|
|
|
|
s=2}\
|
|
|
|
s==0 {print $$0}\
|
2015-12-04 17:20:09 +00:00
|
|
|
s > 0 { s-- }' $(srcdir)/dists/ios7/Info.plist >$(bundle_name)/Info.plist
|
2015-12-06 11:29:06 +00:00
|
|
|
sed -i'' -e 's/$$(PRODUCT_BUNDLE_IDENTIFIER)/org.scummvm.scummvm/' $(bundle_name)/Info.plist
|
2009-06-18 18:40:38 +00:00
|
|
|
cp $(DIST_FILES_DOCS) $(bundle_name)/
|
2008-01-06 14:08:53 +00:00
|
|
|
cp $(DIST_FILES_THEMES) $(bundle_name)/
|
2016-09-05 22:39:34 +00:00
|
|
|
ifdef DIST_FILES_NETWORKING
|
|
|
|
cp $(DIST_FILES_NETWORKING) $(bundle_name)/
|
|
|
|
endif
|
2010-05-26 13:27:11 +00:00
|
|
|
ifdef DIST_FILES_ENGINEDATA
|
2008-01-06 14:08:53 +00:00
|
|
|
cp $(DIST_FILES_ENGINEDATA) $(bundle_name)/
|
2010-05-26 13:27:11 +00:00
|
|
|
endif
|
2010-05-11 01:17:17 +00:00
|
|
|
$(STRIP) scummvm
|
2009-11-22 15:58:34 +00:00
|
|
|
ldid -S scummvm
|
2010-05-11 01:17:17 +00:00
|
|
|
chmod 755 scummvm
|
2007-11-26 15:59:22 +00:00
|
|
|
cp scummvm $(bundle_name)/ScummVM
|
2015-12-04 17:20:09 +00:00
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-29@2x.png $(bundle_name)/AppIcon29x29@2x.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-29@2x.png $(bundle_name)/AppIcon29x29@2x~ipad.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-29@3x.png $(bundle_name)/AppIcon29x29@3x.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-29.png $(bundle_name)/AppIcon29x29~ipad.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-40@2x.png $(bundle_name)/AppIcon40x40@2x.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-40@2x.png $(bundle_name)/AppIcon40x40@2x~ipad.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-40@3x.png $(bundle_name)/AppIcon40x40@3x.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-40.png $(bundle_name)/AppIcon40x40~ipad.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-60@2x.png $(bundle_name)/AppIcon60x60@2x.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-60@3x.png $(bundle_name)/AppIcon60x60@3x.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-76@2x.png $(bundle_name)/AppIcon76x76@2x~ipad.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-76.png $(bundle_name)/AppIcon76x76~ipad.png
|
2015-12-09 13:16:49 +00:00
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-83.5@2x.png $(bundle_name)/AppIcon83.5x83.5@2x~ipad.png
|
2015-12-04 17:20:09 +00:00
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-640x1136-1.png $(bundle_name)/LaunchImage-700-568h@2x.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-2048x1536.png $(bundle_name)/LaunchImage-700-Landscape@2x~ipad.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-1024x768.png $(bundle_name)/LaunchImage-700-Landscape~ipad.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-1536x2048.png $(bundle_name)/LaunchImage-700-Portrait@2x~ipad.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-768x1024.png $(bundle_name)/LaunchImage-700-Portrait~ipad.png
|
2015-12-10 17:44:31 +00:00
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-1242x2208.png $(bundle_name)/LaunchImage-800-Portrait-736h@3x.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-2208x1242.png $(bundle_name)/LaunchImage-800-Landscape-736h@3x.png
|
|
|
|
cp $(srcdir)/dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-750x1334.png $(bundle_name)/LaunchImage-800-667h@2x.png
|
2007-11-26 15:59:22 +00:00
|
|
|
|
2007-12-02 11:05:29 +00:00
|
|
|
# Location of static libs for the iPhone
|
2009-03-19 20:49:22 +00:00
|
|
|
ifneq ($(BACKEND), iphone)
|
2015-12-07 15:08:30 +00:00
|
|
|
ifneq ($(BACKEND), ios7)
|
2007-12-02 11:11:28 +00:00
|
|
|
# Static libaries, used for the scummvm-static and iphone targets
|
2015-12-23 22:13:53 +00:00
|
|
|
OSX_STATIC_LIBS := `$(SDLCONFIG) --static-libs`
|
2016-09-03 22:30:32 +00:00
|
|
|
ifdef USE_SDL_NET
|
|
|
|
ifdef USE_SDL2
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libSDL2_net.a
|
|
|
|
else
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libSDL_net.a
|
|
|
|
endif
|
|
|
|
endif
|
2016-03-13 16:56:32 +00:00
|
|
|
# With sdl2-config we don't always get the OpenGL framework
|
2016-03-17 14:32:59 +00:00
|
|
|
OSX_STATIC_LIBS += -framework OpenGL
|
2014-02-16 03:18:07 +00:00
|
|
|
endif
|
2015-12-07 15:08:30 +00:00
|
|
|
endif
|
2014-02-16 03:18:07 +00:00
|
|
|
|
2016-09-03 22:30:32 +00:00
|
|
|
ifdef USE_LIBCURL
|
|
|
|
OSX_STATIC_LIBS += -lcurl
|
|
|
|
endif
|
|
|
|
|
2012-03-21 05:36:40 +00:00
|
|
|
ifdef USE_FREETYPE2
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libfreetype.a $(STATICLIBPATH)/lib/libbz2.a
|
|
|
|
endif
|
2007-11-26 15:59:22 +00:00
|
|
|
|
|
|
|
ifdef USE_VORBIS
|
|
|
|
OSX_STATIC_LIBS += \
|
2009-03-19 20:49:22 +00:00
|
|
|
$(STATICLIBPATH)/lib/libvorbisfile.a \
|
2017-10-01 18:26:11 +00:00
|
|
|
$(STATICLIBPATH)/lib/libvorbis.a
|
2007-11-26 15:59:22 +00:00
|
|
|
endif
|
|
|
|
|
2007-12-02 11:05:29 +00:00
|
|
|
ifdef USE_TREMOR
|
2009-03-19 20:49:22 +00:00
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libvorbisidec.a
|
2007-12-02 11:05:29 +00:00
|
|
|
endif
|
|
|
|
|
2007-11-26 15:59:22 +00:00
|
|
|
ifdef USE_FLAC
|
2009-03-19 20:49:22 +00:00
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libFLAC.a
|
2007-11-26 15:59:22 +00:00
|
|
|
endif
|
|
|
|
|
2017-10-02 19:55:51 +00:00
|
|
|
ifdef USE_OGG
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libogg.a
|
|
|
|
endif
|
|
|
|
|
2012-08-20 00:40:03 +00:00
|
|
|
ifdef USE_FLUIDSYNTH
|
|
|
|
OSX_STATIC_LIBS += \
|
2016-01-13 13:53:57 +00:00
|
|
|
-liconv -framework CoreMIDI -framework CoreAudio\
|
2016-01-12 21:44:59 +00:00
|
|
|
$(STATICLIBPATH)/lib/libfluidsynth.a \
|
|
|
|
$(STATICLIBPATH)/lib/libglib-2.0.a \
|
|
|
|
$(STATICLIBPATH)/lib/libintl.a
|
2016-01-13 13:53:57 +00:00
|
|
|
|
|
|
|
ifneq ($(BACKEND), iphone)
|
|
|
|
ifneq ($(BACKEND), ios7)
|
2017-07-03 17:31:12 +00:00
|
|
|
OSX_STATIC_LIBS += -lreadline -framework AudioUnit
|
2016-01-13 13:53:57 +00:00
|
|
|
endif
|
|
|
|
endif
|
2012-08-20 00:40:03 +00:00
|
|
|
endif
|
|
|
|
|
2007-11-26 15:59:22 +00:00
|
|
|
ifdef USE_MAD
|
2009-03-19 20:49:22 +00:00
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libmad.a
|
2007-11-26 15:59:22 +00:00
|
|
|
endif
|
|
|
|
|
2010-10-15 03:33:54 +00:00
|
|
|
ifdef USE_PNG
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libpng.a
|
|
|
|
endif
|
|
|
|
|
2011-01-19 15:00:53 +00:00
|
|
|
ifdef USE_THEORADEC
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libtheoradec.a
|
|
|
|
endif
|
|
|
|
|
2011-04-09 19:27:23 +00:00
|
|
|
ifdef USE_FAAD
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libfaad.a
|
|
|
|
endif
|
|
|
|
|
2013-07-06 03:08:47 +00:00
|
|
|
ifdef USE_MPEG2
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libmpeg2.a
|
|
|
|
endif
|
|
|
|
|
2013-09-17 00:41:12 +00:00
|
|
|
ifdef USE_JPEG
|
|
|
|
OSX_STATIC_LIBS += $(STATICLIBPATH)/lib/libjpeg.a
|
|
|
|
endif
|
|
|
|
|
2009-03-19 20:49:22 +00:00
|
|
|
ifdef USE_ZLIB
|
2012-01-14 09:39:49 +00:00
|
|
|
OSX_ZLIB ?= $(STATICLIBPATH)/lib/libz.a
|
2007-11-26 15:59:22 +00:00
|
|
|
endif
|
|
|
|
|
2011-07-03 21:01:17 +00:00
|
|
|
ifdef USE_SPARKLE
|
2016-03-27 12:04:42 +00:00
|
|
|
ifneq ($(SPARKLEPATH),)
|
|
|
|
OSX_STATIC_LIBS += -F$(SPARKLEPATH)
|
|
|
|
endif
|
|
|
|
OSX_STATIC_LIBS += -framework Sparkle -Wl,-rpath,@loader_path/../Frameworks
|
2011-07-03 21:01:17 +00:00
|
|
|
endif
|
|
|
|
|
2007-11-26 15:59:22 +00:00
|
|
|
# Special target to create a static linked binary for Mac OS X.
|
|
|
|
# We use -force_cpusubtype_ALL to ensure the binary runs on every
|
|
|
|
# PowerPC machine.
|
|
|
|
scummvm-static: $(OBJS)
|
|
|
|
$(CXX) $(LDFLAGS) -force_cpusubtype_ALL -o scummvm-static $(OBJS) \
|
|
|
|
-framework CoreMIDI \
|
|
|
|
$(OSX_STATIC_LIBS) \
|
2014-06-09 21:37:53 +00:00
|
|
|
$(OSX_ZLIB)
|
2007-11-26 15:59:22 +00:00
|
|
|
|
2016-01-06 09:42:15 +00:00
|
|
|
# Special target to create a static linked binary for the iPhone (legacy, and iOS 7+)
|
2007-12-02 11:05:29 +00:00
|
|
|
iphone: $(OBJS)
|
|
|
|
$(CXX) $(LDFLAGS) -o scummvm $(OBJS) \
|
|
|
|
$(OSX_STATIC_LIBS) \
|
2009-05-10 22:15:33 +00:00
|
|
|
-framework UIKit -framework CoreGraphics -framework OpenGLES \
|
2014-02-14 01:20:59 +00:00
|
|
|
-framework CoreFoundation -framework QuartzCore -framework Foundation \
|
|
|
|
-framework AudioToolbox -framework CoreAudio -lobjc -lz
|
2007-12-02 11:05:29 +00:00
|
|
|
|
2007-11-26 15:59:22 +00:00
|
|
|
# Special target to create a snapshot disk image for Mac OS X
|
|
|
|
# TODO: Replace AUTHORS by Credits.rtf
|
2009-03-19 20:49:22 +00:00
|
|
|
osxsnap: bundle
|
2007-11-26 15:59:22 +00:00
|
|
|
mkdir ScummVM-snapshot
|
2011-04-09 21:47:35 +00:00
|
|
|
$(srcdir)/devtools/credits.pl --text > $(srcdir)/AUTHORS
|
2008-01-06 14:12:55 +00:00
|
|
|
cp $(srcdir)/AUTHORS ./ScummVM-snapshot/Authors
|
2009-04-19 10:28:00 +00:00
|
|
|
cp $(srcdir)/COPYING ./ScummVM-snapshot/License\ \(GPL\)
|
2012-03-25 08:22:57 +00:00
|
|
|
cp $(srcdir)/COPYING.BSD ./ScummVM-snapshot/License\ \(BSD\)
|
2009-04-19 10:28:00 +00:00
|
|
|
cp $(srcdir)/COPYING.LGPL ./ScummVM-snapshot/License\ \(LGPL\)
|
2012-03-25 08:22:57 +00:00
|
|
|
cp $(srcdir)/COPYING.FREEFONT ./ScummVM-snapshot/License\ \(FREEFONT\)
|
2008-01-06 14:12:55 +00:00
|
|
|
cp $(srcdir)/COPYRIGHT ./ScummVM-snapshot/Copyright\ Holders
|
|
|
|
cp $(srcdir)/NEWS ./ScummVM-snapshot/News
|
|
|
|
cp $(srcdir)/README ./ScummVM-snapshot/ScummVM\ ReadMe
|
2011-07-18 07:32:19 +00:00
|
|
|
mkdir ScummVM-snapshot/doc
|
2011-07-18 07:36:27 +00:00
|
|
|
cp $(srcdir)/doc/QuickStart ./ScummVM-snapshot/doc/QuickStart
|
2011-10-19 21:02:52 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/cz
|
|
|
|
cp $(srcdir)/doc/cz/PrectiMe ./ScummVM-snapshot/doc/cz/PrectiMe
|
2012-07-07 00:15:59 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/da
|
|
|
|
cp $(srcdir)/doc/da/HurtigStart ./ScummVM-snapshot/doc/da/HurtigStart
|
2011-07-18 07:32:19 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/de
|
2016-08-06 05:54:32 +00:00
|
|
|
cp $(srcdir)/doc/de/LIESMICH ./ScummVM-snapshot/doc/de/LIESMICH
|
2011-07-18 07:32:19 +00:00
|
|
|
cp $(srcdir)/doc/de/Schnellstart ./ScummVM-snapshot/doc/de/Schnellstart
|
2011-10-15 23:36:19 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/es
|
2011-10-25 08:52:22 +00:00
|
|
|
cp $(srcdir)/doc/es/InicioRapido ./ScummVM-snapshot/doc/es
|
2011-07-18 07:32:19 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/fr
|
2011-10-05 18:48:46 +00:00
|
|
|
cp $(srcdir)/doc/fr/DemarrageRapide ./ScummVM-snapshot/doc/fr/DemarrageRapide
|
2011-10-16 23:05:55 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/it
|
|
|
|
cp $(srcdir)/doc/it/GuidaRapida ./ScummVM-snapshot/doc/it/GuidaRapida
|
2011-10-05 18:55:13 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/no-nb
|
2012-01-14 15:47:27 +00:00
|
|
|
cp $(srcdir)/doc/no-nb/HurtigStart ./ScummVM-snapshot/doc/no-nb/HurtigStart
|
2011-11-27 21:47:25 +00:00
|
|
|
mkdir ScummVM-snapshot/doc/se
|
2012-01-14 15:47:27 +00:00
|
|
|
cp $(srcdir)/doc/se/LasMig ./ScummVM-snapshot/doc/se/LasMig
|
|
|
|
cp $(srcdir)/doc/se/Snabbstart ./ScummVM-snapshot/doc/se/Snabbstart
|
2016-03-05 23:07:21 +00:00
|
|
|
$(XCODETOOLSPATH)/SetFile -t ttro -c ttxt ./ScummVM-snapshot/*
|
2011-10-19 21:02:52 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/cz/*
|
2012-07-07 00:15:59 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/da/*
|
2011-08-22 18:21:56 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/de/*
|
2011-10-15 23:36:19 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/es/*
|
2011-08-22 18:21:56 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/fr/*
|
2011-10-16 23:05:55 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/it/*
|
2011-10-05 18:55:13 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/no-nb/*
|
2011-11-27 21:47:25 +00:00
|
|
|
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/se/*
|
2016-03-05 23:07:21 +00:00
|
|
|
$(XCODETOOLSPATH)/CpMac -r $(bundle_name) ./ScummVM-snapshot/
|
2008-01-06 14:12:55 +00:00
|
|
|
cp $(srcdir)/dists/macosx/DS_Store ./ScummVM-snapshot/.DS_Store
|
|
|
|
cp $(srcdir)/dists/macosx/background.jpg ./ScummVM-snapshot/background.jpg
|
2016-03-05 23:07:21 +00:00
|
|
|
$(XCODETOOLSPATH)/SetFile -a V ./ScummVM-snapshot/.DS_Store
|
|
|
|
$(XCODETOOLSPATH)/SetFile -a V ./ScummVM-snapshot/background.jpg
|
2007-11-26 15:59:22 +00:00
|
|
|
hdiutil create -ov -format UDZO -imagekey zlib-level=9 -fs HFS+ \
|
|
|
|
-srcfolder ScummVM-snapshot \
|
2009-04-19 10:28:00 +00:00
|
|
|
-volname "ScummVM" \
|
2007-11-26 15:59:22 +00:00
|
|
|
ScummVM-snapshot.dmg
|
|
|
|
rm -rf ScummVM-snapshot
|
|
|
|
|
2016-03-27 21:40:58 +00:00
|
|
|
publish-appcast:
|
2016-04-05 13:27:28 +00:00
|
|
|
scp dists/macosx/scummvm_appcast.xml www.scummvm.org:/var/www/html/appcasts/macosx/release.xml
|
2016-03-27 21:40:58 +00:00
|
|
|
|
2007-11-26 15:59:22 +00:00
|
|
|
#
|
|
|
|
# Windows specific
|
|
|
|
#
|
|
|
|
|
2016-09-05 22:39:34 +00:00
|
|
|
scummvmwinres.o: $(srcdir)/icons/scummvm.ico $(DIST_FILES_THEMES) $(DIST_FILES_NETWORKING) $(DIST_FILES_ENGINEDATA) $(srcdir)/dists/scummvm.rc
|
2011-05-05 18:24:57 +00:00
|
|
|
$(QUIET_WINDRES)$(WINDRES) -DHAVE_CONFIG_H $(WINDRESFLAGS) $(DEFINES) -I. -I$(srcdir) $(srcdir)/dists/scummvm.rc scummvmwinres.o
|
2007-11-26 15:59:22 +00:00
|
|
|
|
2011-06-29 16:14:36 +00:00
|
|
|
# Special target to create a win32 snapshot binary (for Inno Setup)
|
|
|
|
win32dist: $(EXECUTABLE)
|
|
|
|
mkdir -p $(WIN32PATH)
|
2011-06-30 01:45:57 +00:00
|
|
|
mkdir -p $(WIN32PATH)/graphics
|
2011-07-18 07:32:19 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc
|
2011-10-19 21:02:52 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/cz
|
2012-07-07 00:15:59 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/da
|
2011-07-15 18:36:06 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/de
|
2011-10-15 23:36:19 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/es
|
2011-07-15 18:36:06 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/fr
|
2011-10-16 23:24:11 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/it
|
2011-10-05 11:43:58 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/no-nb
|
2011-11-27 21:47:25 +00:00
|
|
|
mkdir -p $(WIN32PATH)/doc/se
|
2011-06-29 16:14:36 +00:00
|
|
|
$(STRIP) $(EXECUTABLE) -o $(WIN32PATH)/$(EXECUTABLE)
|
|
|
|
cp $(srcdir)/AUTHORS $(WIN32PATH)/AUTHORS.txt
|
|
|
|
cp $(srcdir)/COPYING $(WIN32PATH)/COPYING.txt
|
2012-03-25 08:22:57 +00:00
|
|
|
cp $(srcdir)/COPYING.BSD $(WIN32PATH)/COPYING.BSD.txt
|
2011-06-29 16:14:36 +00:00
|
|
|
cp $(srcdir)/COPYING.LGPL $(WIN32PATH)/COPYING.LGPL.txt
|
2012-01-28 20:45:11 +00:00
|
|
|
cp $(srcdir)/COPYING.FREEFONT $(WIN32PATH)/COPYING.FREEFONT.txt
|
2011-06-29 16:14:36 +00:00
|
|
|
cp $(srcdir)/COPYRIGHT $(WIN32PATH)/COPYRIGHT.txt
|
|
|
|
cp $(srcdir)/NEWS $(WIN32PATH)/NEWS.txt
|
2011-10-19 21:02:52 +00:00
|
|
|
cp $(srcdir)/doc/cz/PrectiMe $(WIN32PATH)/doc/cz/PrectiMe.txt
|
2016-08-06 05:54:32 +00:00
|
|
|
cp $(srcdir)/doc/de/NEUES $(WIN32PATH)/doc/de/NEUES.txt
|
2011-07-18 07:32:19 +00:00
|
|
|
cp $(srcdir)/doc/QuickStart $(WIN32PATH)/doc/QuickStart.txt
|
2011-10-25 08:52:22 +00:00
|
|
|
cp $(srcdir)/doc/es/InicioRapido $(WIN32PATH)/doc/es/InicioRapido.txt
|
2011-10-05 18:48:46 +00:00
|
|
|
cp $(srcdir)/doc/fr/DemarrageRapide $(WIN32PATH)/doc/fr/DemarrageRapide.txt
|
2011-10-16 23:05:55 +00:00
|
|
|
cp $(srcdir)/doc/it/GuidaRapida $(WIN32PATH)/doc/it/GuidaRapida.txt
|
2011-10-05 11:43:58 +00:00
|
|
|
cp $(srcdir)/doc/no-nb/HurtigStart $(WIN32PATH)/doc/no-nb/HurtigStart.txt
|
2012-07-07 00:15:59 +00:00
|
|
|
cp $(srcdir)/doc/da/HurtigStart $(WIN32PATH)/doc/da/HurtigStart.txt
|
2011-07-18 07:32:19 +00:00
|
|
|
cp $(srcdir)/doc/de/Schnellstart $(WIN32PATH)/doc/de/Schnellstart.txt
|
2011-11-27 21:47:25 +00:00
|
|
|
cp $(srcdir)/doc/se/Snabbstart $(WIN32PATH)/doc/se/Snabbstart.txt
|
2011-10-05 11:43:58 +00:00
|
|
|
cp $(srcdir)/README $(WIN32PATH)/README.txt
|
2016-08-06 05:54:32 +00:00
|
|
|
cp $(srcdir)/doc/de/LIESMICH $(WIN32PATH)/doc/de/LIESMICH.txt
|
2011-12-06 19:23:36 +00:00
|
|
|
cp $(srcdir)/doc/se/LasMig $(WIN32PATH)/doc/se/LasMig.txt
|
2011-06-29 16:14:36 +00:00
|
|
|
cp /usr/local/README-SDL.txt $(WIN32PATH)
|
2016-08-20 06:45:50 +00:00
|
|
|
cp /usr/local/bin/SDL2.dll $(WIN32PATH)
|
2011-06-30 01:45:57 +00:00
|
|
|
cp $(srcdir)/dists/win32/graphics/left.bmp $(WIN32PATH)/graphics
|
|
|
|
cp $(srcdir)/dists/win32/graphics/scummvm-install.ico $(WIN32PATH)/graphics
|
2012-01-24 00:40:24 +00:00
|
|
|
cp $(srcdir)/dists/win32/migration.bat $(WIN32PATH)
|
|
|
|
cp $(srcdir)/dists/win32/migration.txt $(WIN32PATH)
|
2011-06-29 16:14:36 +00:00
|
|
|
cp $(srcdir)/dists/win32/ScummVM.iss $(WIN32PATH)
|
|
|
|
unix2dos $(WIN32PATH)/*.txt
|
2011-11-17 11:46:02 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/*.txt
|
2011-10-19 21:02:52 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/cz/*.txt
|
2012-07-07 00:15:59 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/da/*.txt
|
2011-07-15 18:36:06 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/de/*.txt
|
2011-10-15 23:36:19 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/es/*.txt
|
2011-07-15 18:36:06 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/fr/*.txt
|
2011-10-16 23:24:11 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/it/*.txt
|
2011-10-15 23:36:19 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/no-nb/*.txt
|
2011-11-27 23:26:10 +00:00
|
|
|
unix2dos $(WIN32PATH)/doc/se/*.txt
|
2011-05-11 21:54:34 +00:00
|
|
|
|
|
|
|
# Special target to create a win32 NSIS installer
|
2011-06-29 16:14:36 +00:00
|
|
|
win32setup: $(EXECUTABLE)
|
2011-07-01 02:41:52 +00:00
|
|
|
mkdir -p $(srcdir)/$(STAGINGPATH)
|
|
|
|
$(STRIP) $(EXECUTABLE) -o $(srcdir)/$(STAGINGPATH)/$(EXECUTABLE)
|
|
|
|
cp /usr/local/bin/SDL.dll $(srcdir)/$(STAGINGPATH)
|
2011-07-01 04:24:31 +00:00
|
|
|
makensis -V2 -Dtop_srcdir="../.." -Dstaging_dir="../../$(STAGINGPATH)" -Darch=$(ARCH) $(srcdir)/dists/win32/scummvm.nsi
|
2007-11-26 15:59:22 +00:00
|
|
|
|
2011-11-23 12:48:24 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Special target to generate project files for various IDEs
|
|
|
|
# Mainly Win32-specific
|
|
|
|
#
|
2011-11-23 12:55:54 +00:00
|
|
|
|
|
|
|
# The release branch is in form 'heads/branch-1-4-1', for this case
|
|
|
|
# $CUR_BRANCH will be equal to '1', for the rest cases it will be empty
|
2011-11-23 12:48:24 +00:00
|
|
|
CUR_BRANCH := $(shell cd $(srcdir); git describe --all |cut -d '-' -f 4-)
|
|
|
|
|
|
|
|
ideprojects: devtools/create_project
|
2011-11-23 12:55:54 +00:00
|
|
|
ifeq ($(VER_DIRTY), -dirty)
|
2016-03-27 21:47:18 +00:00
|
|
|
$(error You have uncommitted changes)
|
|
|
|
endif
|
2011-11-23 12:48:24 +00:00
|
|
|
ifeq "$(CUR_BRANCH)" "heads/master"
|
2016-03-27 21:47:18 +00:00
|
|
|
$(error You cannot do it on master)
|
2011-11-23 12:48:24 +00:00
|
|
|
else ifeq "$(CUR_BRANCH)" ""
|
2016-03-27 21:47:18 +00:00
|
|
|
$(error You must be on a release branch)
|
2011-11-23 12:48:24 +00:00
|
|
|
endif
|
|
|
|
@echo Creating Code::Blocks project files...
|
2013-11-07 11:58:34 +00:00
|
|
|
@cd $(srcdir)/dists/codeblocks && ../../devtools/create_project/create_project ../.. --codeblocks >/dev/null && git add -f engines/plugins_table.h *.workspace *.cbp
|
2011-11-23 12:48:24 +00:00
|
|
|
@echo Creating MSVC9 project files...
|
2013-11-07 11:58:34 +00:00
|
|
|
@cd $(srcdir)/dists/msvc9 && ../../devtools/create_project/create_project ../.. --msvc --msvc-version 9 >/dev/null && git add -f engines/plugins_table.h *.sln *.vcproj *.vsprops
|
2011-11-23 12:48:24 +00:00
|
|
|
@echo Creating MSVC10 project files...
|
2013-11-07 11:58:34 +00:00
|
|
|
@cd $(srcdir)/dists/msvc10 && ../../devtools/create_project/create_project ../.. --msvc --msvc-version 10 >/dev/null && git add -f engines/plugins_table.h *.sln *.vcxproj *.vcxproj.filters *.props
|
2012-07-28 00:05:00 +00:00
|
|
|
@echo Creating MSVC11 project files...
|
2013-11-07 11:58:34 +00:00
|
|
|
@cd $(srcdir)/dists/msvc11 && ../../devtools/create_project/create_project ../.. --msvc --msvc-version 11 >/dev/null && git add -f engines/plugins_table.h *.sln *.vcxproj *.vcxproj.filters *.props
|
2015-03-05 00:37:51 +00:00
|
|
|
@echo Creating MSVC12 project files...
|
|
|
|
@cd $(srcdir)/dists/msvc12 && ../../devtools/create_project/create_project ../.. --msvc --msvc-version 12 >/dev/null && git add -f engines/plugins_table.h *.sln *.vcxproj *.vcxproj.filters *.props
|
2011-11-23 12:48:24 +00:00
|
|
|
@echo
|
|
|
|
@echo All is done.
|
|
|
|
@echo Now run
|
2015-03-05 00:39:48 +00:00
|
|
|
@echo "\tgit commit -m 'DISTS: Generated Code::Blocks and MSVC project files'"
|
2011-11-23 12:48:24 +00:00
|
|
|
|
2015-04-09 13:16:39 +00:00
|
|
|
# Target to create Raspberry Pi zip containig binary and specific README
|
|
|
|
raspberrypi_dist:
|
|
|
|
mkdir -p $(srcdir)/scummvm-rpi
|
|
|
|
cp $(srcdir)/backends/platform/sdl/raspberrypi/README.RASPBERRYPI $(srcdir)/scummvm-rpi/README
|
|
|
|
cp $(srcdir)/scummvm $(srcdir)/scummvm-rpi
|
|
|
|
zip -r scummvm-rpi.zip scummvm-rpi
|
|
|
|
rm -f -R scummvm-rpi
|
|
|
|
|
2009-09-25 11:22:14 +00:00
|
|
|
# Mark special targets as phony
|
2014-06-28 15:12:43 +00:00
|
|
|
.PHONY: deb bundle osxsnap win32dist install uninstall
|