mirror of https://github.com/axmolengine/axmol.git
This commit is contained in:
parent
1ca2dd08c9
commit
5858a5ada4
|
@ -1,53 +0,0 @@
|
||||||
;
|
|
||||||
; TG3 Makefile Auto Create Script
|
|
||||||
;
|
|
||||||
; 说明:
|
|
||||||
; 1.在等号左边不要有空格
|
|
||||||
; 2.所有的路径请使用"/"来分隔
|
|
||||||
; 3.所有的文件名不可以有空格
|
|
||||||
; 4.只能对当前目录及其子目录下的.c、.cpp生成Makefile
|
|
||||||
;
|
|
||||||
|
|
||||||
;本TMK3文件目录位置到项目根目录之间的转换,不支持多个串,如果有多个,以最后一个为准
|
|
||||||
;即 ./$(TO_PROJECT_ROOT)/ 就是项目的根目录
|
|
||||||
TO_PROJECT_ROOT=../../PRJ_TG3
|
|
||||||
|
|
||||||
;输出目标的名字,不支持多个串,如果有多个,以最后一个为准
|
|
||||||
OUTPUT_FILENAME=libCocos2dSimpleGame.so
|
|
||||||
|
|
||||||
;包含的其他的TMK3文件,此文件和本文件一起构成MakeFile的内容
|
|
||||||
;此项可以出现在TMK3文件内的任意地方,与已经存在的项依次组合
|
|
||||||
;注意:此项不支持绝对路径,但是可以使用$(TO_PROJECT_ROOT)构成文件名
|
|
||||||
INCLUDE_TMK3=$(TO_PROJECT_ROOT)/MakeInclude/TG3_APP.TMK3 ;TOPS标准应用,包括动态库等
|
|
||||||
|
|
||||||
;预定义串,生成MakeFile的时候直接放在MakeFile的前面
|
|
||||||
;格式:PRE_DEFINE=STRING,生成MakeFile的时候,"PRE_DEFINE="后面的所有非注释非续行字符都会放在MakeFile前面
|
|
||||||
;例如:PRE_DEFINE=AAA=BBB,会放入AAA=BBB到MakeFile中
|
|
||||||
;可以使用多个PRE_DEFINE串,也可以使用PRE_DEFINE1、PRE_DEFINE2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
|
||||||
;PRE_DEFINE=USE_IMAGEKIT=1 ;使用 ImageToolKit 库,此时生成的 Makefile 会自动连接有关的LIB
|
|
||||||
;PRE_DEFINE=USE_ICU=1 ;使用 ICU 库,此时生成的 Makefile 会自动连接有关的LIB
|
|
||||||
;PRE_DEFINE=USE_MTAPI=1 ;使用 MTAPI 库,此时生成的 Makefile 会自动连接有关的LIB
|
|
||||||
|
|
||||||
;C、C++预定义宏,可以使用多个DEFINES串,也可以使用DEFINES1、DEFINES2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
|
||||||
;DEFINES=-D_MY_MARCO_ ;这里填入应用的自定义宏。注意:ITOPS自己的所需定义会自动包含,故此这里仅仅包含应用自己特有的定义即可
|
|
||||||
;DEFINES=-D__TG3_PURE_DLL__ ;生成的是纯动态库(意思是:不是TOPS应用,但可以是TCOM组件)
|
|
||||||
;DEFINES=-D__TCOM_SUPPORT__ ;生成的是TCOM组件(注意:TOPS应用也可以同时是TCOM组件)
|
|
||||||
|
|
||||||
;包含路径,可以使用多个INCLUDE_PATH串,也可以使用INCLUDE_PATH1、INCLUDE_PATH2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
|
||||||
INCLUDE_PATH= ;应用额外的包含路径。注意:ITOPS自己的所有路径都会自动包含,故此这里仅仅包含应用自己特有的路径即可
|
|
||||||
|
|
||||||
;连接的库文件,可以使用多个LIBS串,也可以使用LIBS1、LIBS2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
|
||||||
;LIBS=-lMyLib ;应用额外的连接库。注意:ITOPS自己的所需库自动包含,而且库包含路径也已经包含,故此这里仅仅包含应用自己特有的库的名字即可
|
|
||||||
|
|
||||||
;强制包含文件的名字,不能使用通配符,一定要使用相对或者绝对路径
|
|
||||||
;极力要求使用相对路径,多个文件之间使用“|”分隔
|
|
||||||
;强制包含文件指的是不在本文件夹及其子文件夹下的.c、.cpp、.o文件
|
|
||||||
;可以使用多个INCLUDEFILE串,也可以使用INCLUDEFILE1、INCLUDEFILE2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
|
||||||
INCLUDEFILE=
|
|
||||||
|
|
||||||
;强制排除文件,不能使用通配符,一定要使用相对路径
|
|
||||||
;多个文件之间使用“|”分隔,路径必须以"./","../"开始
|
|
||||||
;只能对.c、.cpp文件进行排除
|
|
||||||
;如果要排除本目录的文件也要加入"./"
|
|
||||||
;可以使用多个EXCLUDEFILE串,也可以使用EXCLUDEFILE1、EXCLUDEFILE2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
|
||||||
EXCLUDEFILE=
|
|
|
@ -40,7 +40,7 @@
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
AdditionalIncludeDirectories=".\Res;..\..\PRJ_TG3\Include;..\..\PRJ_TG3\Include\MTAPI;..\..\PRJ_TG3\Include\ThirdParty;..\..\PRJ_TG3\Include\TCOM;..\..\PRJ_TG3\TG3\Include;..\..\PRJ_TG3\TG3\TG3_Implement;..\..\PRJ_TG3\EOS_SYS;..\..\PRJ_TG3\Common\SoftSupport;..\..\PRJ_TG3\Common\ICU\Include;..\cocos2dx\include;..\cocos2dx\;..\..\PRJ_TG3\Include\OpenGL;..\cocosDenshion\include"
|
AdditionalIncludeDirectories=".;.\Res;..\..\PRJ_TG3\Include;..\..\PRJ_TG3\Include\MTAPI;..\..\PRJ_TG3\Include\ThirdParty;..\..\PRJ_TG3\Include\TCOM;..\..\PRJ_TG3\TG3\Include;..\..\PRJ_TG3\TG3\TG3_Implement;..\..\PRJ_TG3\EOS_SYS;..\..\PRJ_TG3\Common\SoftSupport;..\..\PRJ_TG3\Common\ICU\Include;.\logic;..\cocos2dx\include;..\cocos2dx\;..\..\PRJ_TG3\Include\OpenGL;..\cocosDenshion\include"
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_TRANZDA_VM_;SS_MAKEDLL"
|
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_TRANZDA_VM_;SS_MAKEDLL"
|
||||||
MinimalRebuild="true"
|
MinimalRebuild="true"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
|
@ -191,22 +191,6 @@
|
||||||
RelativePath=".\Cocos2dSimpleGameAppDelegate.h"
|
RelativePath=".\Cocos2dSimpleGameAppDelegate.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\GameOverScene.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\GameOverScene.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\HelloWorldScene.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\HelloWorldScene.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath=".\main.cpp"
|
RelativePath=".\main.cpp"
|
||||||
>
|
>
|
||||||
|
@ -215,6 +199,26 @@
|
||||||
RelativePath=".\Resource.h"
|
RelativePath=".\Resource.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<Filter
|
||||||
|
Name="logic"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\logic\GameOverScene.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\logic\GameOverScene.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\logic\HelloWorldScene.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\logic\HelloWorldScene.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter
|
<Filter
|
||||||
Name="Resource"
|
Name="Resource"
|
||||||
|
@ -311,18 +315,10 @@
|
||||||
<Filter
|
<Filter
|
||||||
Name="Makefiles"
|
Name="Makefiles"
|
||||||
>
|
>
|
||||||
<File
|
|
||||||
RelativePath=".\Cocos2dSimpleGame.TMK3"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Cocos2dSimpleGame_Arm.TMK3"
|
RelativePath=".\Cocos2dSimpleGame_Arm.TMK3"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\Makefile"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath=".\Makefile.ARM"
|
RelativePath=".\Makefile.ARM"
|
||||||
>
|
>
|
||||||
|
|
|
@ -44,6 +44,8 @@ INCLUDE_PATH= ;Ӧ
|
||||||
;极力要求使用相对路径,多个文件之间使用“|”分隔
|
;极力要求使用相对路径,多个文件之间使用“|”分隔
|
||||||
;强制包含文件指的是不在本文件夹及其子文件夹下的.c、.cpp、.o文件
|
;强制包含文件指的是不在本文件夹及其子文件夹下的.c、.cpp、.o文件
|
||||||
;可以使用多个INCLUDEFILE串,也可以使用INCLUDEFILE1、INCLUDEFILE2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
;可以使用多个INCLUDEFILE串,也可以使用INCLUDEFILE1、INCLUDEFILE2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
||||||
|
INCLUDE_PATH=-I.
|
||||||
|
INCLUDE_PATH=-I./logic
|
||||||
INCLUDE_PATH=-I../cocos2dx
|
INCLUDE_PATH=-I../cocos2dx
|
||||||
INCLUDE_PATH=-I../cocos2dx/include
|
INCLUDE_PATH=-I../cocos2dx/include
|
||||||
INCLUDE_PATH=-I../cocosDenshion/include
|
INCLUDE_PATH=-I../cocosDenshion/include
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
this file need to run .tmk3 file to rebuild.
|
|
|
@ -14,6 +14,8 @@ include $(TO_PROJECT_ROOT)/MakeInclude/Makefile_TOPS_Def.ARM
|
||||||
|
|
||||||
DEFINES += -DCCX_UNDER_UPHONE
|
DEFINES += -DCCX_UNDER_UPHONE
|
||||||
INCLUDE_PATH += -I. -I./Res \
|
INCLUDE_PATH += -I. -I./Res \
|
||||||
|
-I. \
|
||||||
|
-I./logic \
|
||||||
-I../cocos2dx \
|
-I../cocos2dx \
|
||||||
-I../cocos2dx/include \
|
-I../cocos2dx/include \
|
||||||
-I../cocosDenshion/include
|
-I../cocosDenshion/include
|
||||||
|
@ -30,11 +32,11 @@ first: all
|
||||||
|
|
||||||
OBJECTS = \
|
OBJECTS = \
|
||||||
$(OBJECTS_DIR)/Cocos2dSimpleGameAppDelegate.o \
|
$(OBJECTS_DIR)/Cocos2dSimpleGameAppDelegate.o \
|
||||||
$(OBJECTS_DIR)/GameOverScene.o \
|
|
||||||
$(OBJECTS_DIR)/HelloWorldScene.o \
|
|
||||||
$(OBJECTS_DIR)/main.o \
|
$(OBJECTS_DIR)/main.o \
|
||||||
$(OBJECTS_DIR)/NewDeleteOp.o \
|
$(OBJECTS_DIR)/NewDeleteOp.o \
|
||||||
$(OBJECTS_DIR)/TG3AppDllEntry.o
|
$(OBJECTS_DIR)/TG3AppDllEntry.o \
|
||||||
|
$(OBJECTS_DIR)/GameOverScene.o \
|
||||||
|
$(OBJECTS_DIR)/HelloWorldScene.o
|
||||||
|
|
||||||
ADD_OBJECTS +=
|
ADD_OBJECTS +=
|
||||||
|
|
||||||
|
@ -56,12 +58,6 @@ clean :
|
||||||
$(OBJECTS_DIR)/Cocos2dSimpleGameAppDelegate.o : ./Cocos2dSimpleGameAppDelegate.cpp
|
$(OBJECTS_DIR)/Cocos2dSimpleGameAppDelegate.o : ./Cocos2dSimpleGameAppDelegate.cpp
|
||||||
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/Cocos2dSimpleGameAppDelegate.o ./Cocos2dSimpleGameAppDelegate.cpp
|
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/Cocos2dSimpleGameAppDelegate.o ./Cocos2dSimpleGameAppDelegate.cpp
|
||||||
|
|
||||||
$(OBJECTS_DIR)/GameOverScene.o : ./GameOverScene.cpp
|
|
||||||
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/GameOverScene.o ./GameOverScene.cpp
|
|
||||||
|
|
||||||
$(OBJECTS_DIR)/HelloWorldScene.o : ./HelloWorldScene.cpp
|
|
||||||
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/HelloWorldScene.o ./HelloWorldScene.cpp
|
|
||||||
|
|
||||||
$(OBJECTS_DIR)/main.o : ./main.cpp
|
$(OBJECTS_DIR)/main.o : ./main.cpp
|
||||||
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/main.o ./main.cpp
|
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/main.o ./main.cpp
|
||||||
|
|
||||||
|
@ -71,3 +67,9 @@ $(OBJECTS_DIR)/NewDeleteOp.o : ./Framework/NewDeleteOp.cpp
|
||||||
$(OBJECTS_DIR)/TG3AppDllEntry.o : ./Framework/TG3AppDllEntry.cpp
|
$(OBJECTS_DIR)/TG3AppDllEntry.o : ./Framework/TG3AppDllEntry.cpp
|
||||||
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/TG3AppDllEntry.o ./Framework/TG3AppDllEntry.cpp
|
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/TG3AppDllEntry.o ./Framework/TG3AppDllEntry.cpp
|
||||||
|
|
||||||
|
$(OBJECTS_DIR)/GameOverScene.o : ./logic/GameOverScene.cpp
|
||||||
|
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/GameOverScene.o ./logic/GameOverScene.cpp
|
||||||
|
|
||||||
|
$(OBJECTS_DIR)/HelloWorldScene.o : ./logic/HelloWorldScene.cpp
|
||||||
|
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/HelloWorldScene.o ./logic/HelloWorldScene.cpp
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
Attach="false"
|
Attach="false"
|
||||||
DebuggerType="3"
|
DebuggerType="3"
|
||||||
Remote="1"
|
Remote="1"
|
||||||
RemoteMachine="ZHANGBIN"
|
|
||||||
RemoteCommand=""
|
RemoteCommand=""
|
||||||
HttpUrl=""
|
HttpUrl=""
|
||||||
PDBPath=""
|
PDBPath=""
|
||||||
|
@ -43,7 +42,6 @@
|
||||||
Attach="false"
|
Attach="false"
|
||||||
DebuggerType="3"
|
DebuggerType="3"
|
||||||
Remote="1"
|
Remote="1"
|
||||||
RemoteMachine="ZHANGBIN"
|
|
||||||
RemoteCommand=""
|
RemoteCommand=""
|
||||||
HttpUrl=""
|
HttpUrl=""
|
||||||
PDBPath=""
|
PDBPath=""
|
||||||
|
|
Loading…
Reference in New Issue