diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-10-31 17:17:15 +0000 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-10-31 17:17:15 +0000 |
commit | 88a9de8737ca5a2ba239d49e072660fc9c89ab25 (patch) | |
tree | b64f81588eafd28926ffc632c01f6b3c246e218d /scintilla/cocoa/SciTest.mk | |
parent | e5eb2fe35699c79bef11a870fd4c111c040fc22c (diff) | |
download | notepad2-mod-88a9de8737ca5a2ba239d49e072660fc9c89ab25.zip notepad2-mod-88a9de8737ca5a2ba239d49e072660fc9c89ab25.tar.gz notepad2-mod-88a9de8737ca5a2ba239d49e072660fc9c89ab25.tar.bz2 |
add scintilla v2.12 in the svn
git-svn-id: https://notepad2-mod.googlecode.com/svn/trunk@3 28bd50df-7adb-d945-0439-6e466c6a13cc
Diffstat (limited to 'scintilla/cocoa/SciTest.mk')
-rw-r--r-- | scintilla/cocoa/SciTest.mk | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/scintilla/cocoa/SciTest.mk b/scintilla/cocoa/SciTest.mk new file mode 100644 index 0000000..9023def --- /dev/null +++ b/scintilla/cocoa/SciTest.mk @@ -0,0 +1,54 @@ +### start defines ###
+NAME=Editor
+
+ARCH=-arch i386
+CC=gcc -x c++ $(ARCH)
+CO=gcc -x objective-c++ $(ARCH)
+LD=gcc $(ARCH) -framework Cocoa
+
+gDEFs=-DSCI_NAMESPACE -DSCI_LEXER
+
+INCS=-I../src/ -I../include/ -I.
+CCX=$(CC) $(gDEFs) $(INCS)
+CCO=$(CO) $(gDEFs) $(INCS)
+
+BLD=build/SciAppBuild
+TARG=$(APP)/Contents/MacOS/$(NAME)
+APP=$(BLD)/$(NAME).app
+
+all: $(BLD) $(TARG)
+
+clean:
+ -rm -rf $(BLD)
+
+$(APP):
+ -rm -rf $(APP)
+ -mkdir $(APP)
+ -mkdir $(APP)/Contents/
+ -mkdir $(APP)/Contents/Frameworks/
+ -mkdir $(APP)/Contents/MacOS/
+ -mkdir $(APP)/Contents/Resources/
+ -cp ScintillaTest/Info.plist $(APP)/Contents/Info.plist.bak
+ -sed "s/\$${EXECUTABLE_NAME}/$(NAME)/g" < $(APP)/Contents/Info.plist.bak > $(APP)/Contents/Info.plist.bak2
+ -sed "s/\$${PRODUCT_NAME}/$(NAME)/g" < $(APP)/Contents/Info.plist.bak2 > $(APP)/Contents/Info.plist
+ -rm $(APP)/Contents/Info.plist.bak $(APP)/Contents/Info.plist.bak2
+ -cp -r ScintillaTest/English.lproj $(APP)/Contents/Resources/
+ /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text \
+ --compile $(APP)/Contents/Resources/English.lproj/MainMenu.nib ScintillaTest/English.lproj/MainMenu.xib
+ -cp ScintillaTest/TestData.sql $(APP)/Contents/Resources/
+ -make -f Framework.mk all
+
+$(TARG) : $(BLD)/main.o $(BLD)/AppController.o $(APP)
+ -cp -R build/framebuild/Sci.framework $(APP)/Contents/Frameworks/
+ $(LD) $(BLD)/main.o $(BLD)/AppController.o $(APP)/Contents/Frameworks/Sci.framework/Sci -o $(TARG) -lstdc++
+
+
+$(BLD) :
+ -mkdir build
+ -mkdir $(BLD)
+
+$(BLD)/%.o : ScintillaTest/%.mm
+ $(CCO) -c $< -o $@
+
+$(BLD)/%.o : ScintillaTest/%.m
+ $(CCO) -c $< -o $@
|