added Makefile for macos building, and changed a wrong path of lm_sc.t3g in project setting ibus1.1-11/27/2009
authoryongsun
Thu, 26 Nov 2009 23:45:38 +0800
changeset 466 42d901c7addc
parent 465 7fb5cb8025c3
child 467 18cd83f7f82f
added Makefile for macos building, and changed a wrong path of lm_sc.t3g in project setting
sunpinyin2/wrapper/macos/Makefile
sunpinyin2/wrapper/macos/SunPinyin.xcodeproj/project.pbxproj
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sunpinyin2/wrapper/macos/Makefile	Thu Nov 26 23:45:38 2009 +0800
@@ -0,0 +1,32 @@
+all: debug
+
+release: release-i386 release-ppc
+	cd build/Release/SunPinyin.app/Contents/MacOS; \
+	    lipo -create SunPinyin-i386 SunPinyin-ppc -o SunPinyin; \
+	    rm -f SunPinyin-i386 SunPinyin-ppc
+	rm -f build/SunPinyin.app
+	cd build ; ln -s Release/SunPinyin.app SunPinyin.app  
+	cd ../..; ./configure
+	
+release-i386: 
+	cd ../..; CC='gcc -arch i386' CXX='g++ -arch i386' ./configure
+	xcodebuild -project SunPinyin.xcodeproj -configuration Release-i386 build
+	cd build/Release/SunPinyin.app/Contents/MacOS; mv SunPinyin SunPinyin-i386
+
+release-ppc: 
+	cd ../..; CC='gcc -arch ppc' CXX='g++ -arch ppc' ./configure
+	xcodebuild -project SunPinyin.xcodeproj -configuration Release-ppc build
+	cd build/Release/SunPinyin.app/Contents/MacOS; mv SunPinyin SunPinyin-ppc
+
+debug:
+	xcodebuild -project SunPinyin.xcodeproj -configuration Debug build
+	rm -f build/SunPinyin.app
+	cd build ; ln -s Debug/SunPinyin.app SunPinyin.app
+
+clean:
+	rm -rf build
+
+install:
+	rm -rf "/Library/Input Methods/SunPinyin.app"
+	cp -r build/SunPinyin.app "/Library/Input Methods"
+
--- a/sunpinyin2/wrapper/macos/SunPinyin.xcodeproj/project.pbxproj	Mon Nov 23 00:18:26 2009 +0800
+++ b/sunpinyin2/wrapper/macos/SunPinyin.xcodeproj/project.pbxproj	Thu Nov 26 23:45:38 2009 +0800
@@ -137,7 +137,7 @@
 		A4DA4E670DBDD9D600472176 /* slm.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = slm.cpp; sourceTree = "<group>"; };
 		A4DA4E680DBDD9D600472176 /* slm.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = slm.h; sourceTree = "<group>"; };
 		A4DA4E760DBDDA1800472176 /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = config.h; path = ../config.h; sourceTree = "<group>"; };
-		A4DA4ED00DBDFA0800472176 /* lm_sc.t3g */ = {isa = PBXFileReference; lastKnownFileType = file; name = lm_sc.t3g; path = ../../../sunpinyin/ime/data/lm_sc.t3g; sourceTree = SOURCE_ROOT; };
+		A4DA4ED00DBDFA0800472176 /* lm_sc.t3g */ = {isa = PBXFileReference; lastKnownFileType = file; name = lm_sc.t3g; path = ../../data/lm_sc.t3g; sourceTree = SOURCE_ROOT; };
 		A4DA4ED10DBDFA0800472176 /* pydict_sc.bin */ = {isa = PBXFileReference; lastKnownFileType = archive.macbinary; name = pydict_sc.bin; path = ../../data/pydict_sc.bin; sourceTree = "<group>"; };
 		A4FC48CA0F6530EF0069BE81 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = "<group>"; };
 		A4FC48CC0F6531110069BE81 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh_CN; path = zh_CN.lproj/Localizable.strings; sourceTree = "<group>"; };