[Scummvm-cvs-logs] SF.net SVN: scummvm: [28021] scummex/branches/gsoc2007-gameresbrowser/gcc
zbychs at users.sourceforge.net
zbychs at users.sourceforge.net
Wed Jul 11 03:01:23 CEST 2007
Revision: 28021
http://scummvm.svn.sourceforge.net/scummvm/?rev=28021&view=rev
Author: zbychs
Date: 2007-07-10 18:01:22 -0700 (Tue, 10 Jul 2007)
Log Message:
-----------
Added Mac app bundle: make all, make bundle
Modified Paths:
--------------
scummex/branches/gsoc2007-gameresbrowser/gcc/Makefile
Added Paths:
-----------
scummex/branches/gsoc2007-gameresbrowser/gcc/mac/
scummex/branches/gsoc2007-gameresbrowser/gcc/mac/Info.plist
Modified: scummex/branches/gsoc2007-gameresbrowser/gcc/Makefile
===================================================================
--- scummex/branches/gsoc2007-gameresbrowser/gcc/Makefile 2007-07-11 00:59:04 UTC (rev 28020)
+++ scummex/branches/gsoc2007-gameresbrowser/gcc/Makefile 2007-07-11 01:01:22 UTC (rev 28021)
@@ -6,7 +6,7 @@
#
###########################################################################################
-.PHONY : pure debug dots tell in-dep dep precomp in-all all clean clean_precomp \
+.PHONY : bundle pure debug dots tell in-dep dep precomp in-all all clean clean_precomp \
copy_data core plugins gui clean_data clean_core \
clean_plugins clean_gui core_dir plugins_dir gui_dir
@@ -19,6 +19,8 @@
DEP_HEADERS_DIRS = $(SOURCES_DIR)/core $(SOURCES_DIR)/plugins $(SOURCES_DIR)/gui
HEADERS_DIRS = $(ALL_OUTPUT) $(DEP_HEADERS_DIRS)
+DATA_OUTPUT = $(GUI_OUTPUT)/share/browser
+
#precompilation actually makes it compile slower...
MAKE_PRECOMP = no
ifneq ($(MAKE_PRECOMP), no)
@@ -139,7 +141,7 @@
$(MAKE) in-all
# cd ../gcc
-in-all: tell precomp gui copy_data
+in-all: tell precomp gui
tell:
echo '$(TELL)'
@@ -157,6 +159,30 @@
###########################################################################################
+#MacOS X Application Bundle
+
+bundle:
+ rm -f -R GameResourceBrowser.app
+ $(MAKE) GameResourceBrowser.app
+
+GameResourceBrowser.app:
+ $(MKDIR) GameResourceBrowser.app
+ $(MKDIR) GameResourceBrowser.app/Contents
+ $(MKDIR) GameResourceBrowser.app/Contents/MacOS
+ $(MKDIR) GameResourceBrowser.app/Contents/Resources
+# $(MKDIR) GameResourceBrowser.app/Contents/Resources/English.lproj
+ cp mac/Info.plist GameResourceBrowser.app/Contents/
+# cp mac/version.plist GameResourceBrowser.app/Contents/
+# cp mac/InfoPlist.strings GameResourceBrowser.app/Contents/Resources/English.lproj/
+ echo -n 'APPLGSSB' > GameResourceBrowser.app/Contents/PkgInfo
+ cp $(GUI_TARGET) GameResourceBrowser.app/Contents/MacOS/GameResourceBrowser
+# cp mac/res/* GameResourceBrowser.app/Contents/Resources/
+ cp -f -R $(SOURCES_DIR)/data GameResourceBrowser.app/Contents/Resources/data
+ cp -f -R $(SOURCES_DIR)/help GameResourceBrowser.app/Contents/Resources/help
+
+
+###########################################################################################
+
#$(ALL_D) : %.d : %.cpp
# @set -e; rm -f $@; \
# g++ -MM $(CFLAGS) $< > $@.$$$$; \
@@ -222,10 +248,12 @@
###########################################################################################
clean_data:
- rm -f -R $(GUI_OUTPUT)/data
+ rm -f -R $(DATA_OUTPUT)/data
copy_data:
- cp -f -R $(SOURCES_DIR)/data $(GUI_OUTPUT)/data
+ $(MKDIR) $(DATA_OUTPUT)
+ cp -f -R $(SOURCES_DIR)/data $(DATA_OUTPUT)/data
+ cp -f -R $(SOURCES_DIR)/help $(DATA_OUTPUT)/help
###########################################################################################
Added: scummex/branches/gsoc2007-gameresbrowser/gcc/mac/Info.plist
===================================================================
--- scummex/branches/gsoc2007-gameresbrowser/gcc/mac/Info.plist (rev 0)
+++ scummex/branches/gsoc2007-gameresbrowser/gcc/mac/Info.plist 2007-07-11 01:01:22 UTC (rev 28021)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDisplayName</key>
+ <string>GameResourceBrowser</string>
+ <key>CFBundleName</key>
+ <string>GameResourceBrowser</string>
+ <key>LSHasLocalizedDisplayName</key>
+ <string>NO</string>
+ <key>CFBundleExecutable</key>
+ <string>GameResourceBrowser</string>
+ <key>CFBundleIdentifier</key>
+ <string>org.zbychs.GSOC.GameResourceBrowser</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0.0</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>GSSB</string>
+ <key>NSAppleScriptEnabled</key>
+ <string>NO</string>
+ <key>NSHumanReadableCopyright</key>
+ <string>Free For All</string>
+</dict>
+</plist>
Property changes on: scummex/branches/gsoc2007-gameresbrowser/gcc/mac/Info.plist
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list