mirror of https://github.com/axmolengine/axmol.git
fixed #1724: Moved HelloJavascript to template folder and renamed it with "multi-platform-is".
This commit is contained in:
parent
9add1d1b18
commit
1d9e9e48bc
|
@ -45,10 +45,10 @@ fi
|
|||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
# ... use paths relative to current directory
|
||||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
COCOS2DX_ROOT="$DIR/../../.."
|
||||
APP_ROOT="$DIR/.."
|
||||
APP_ANDROID_ROOT="$DIR"
|
||||
BINDINGS_JS_ROOT="$APP_ROOT/../../../scripting/javascript/bindings/js"
|
||||
BINDINGS_JS_ROOT="$APP_ROOT/../../scripting/javascript/bindings/js"
|
||||
|
||||
echo
|
||||
echo "Paths"
|
|
@ -10,4 +10,4 @@
|
|||
# Project target.
|
||||
target=android-8
|
||||
|
||||
android.library.reference.1=../../../../cocos2dx/platform/android/java
|
||||
android.library.reference.1=../../../cocos2dx/platform/android/java
|
|
@ -152,7 +152,7 @@
|
|||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
15A3D2EC1682F076002FB0C5 /* cocos2dx.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = cocos2dx.xcodeproj; path = ../../../../cocos2dx/proj.ios/cocos2dx.xcodeproj; sourceTree = "<group>"; };
|
||||
15A3D2EC1682F076002FB0C5 /* cocos2dx.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = cocos2dx.xcodeproj; path = ../../../cocos2dx/proj.ios/cocos2dx.xcodeproj; sourceTree = "<group>"; };
|
||||
15A3D2FA1682F0A0002FB0C5 /* cocos2d_specifics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = cocos2d_specifics.cpp; sourceTree = "<group>"; };
|
||||
15A3D2FB1682F0A0002FB0C5 /* cocos2d_specifics.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = cocos2d_specifics.hpp; sourceTree = "<group>"; };
|
||||
15A3D2FC1682F0A0002FB0C5 /* cocosjs_manual_conversions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = cocosjs_manual_conversions.cpp; sourceTree = "<group>"; };
|
||||
|
@ -471,7 +471,7 @@
|
|||
15A3D31D1682F0A0002FB0C5 /* uthash.h */,
|
||||
);
|
||||
name = bindings;
|
||||
path = ../../../../scripting/javascript/bindings;
|
||||
path = ../../../scripting/javascript/bindings;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
15A3D2FE1682F0A0002FB0C5 /* generated */ = {
|
||||
|
@ -506,7 +506,7 @@
|
|||
15A3D35E1682F0B5002FB0C5 /* src */,
|
||||
);
|
||||
name = chipmunk;
|
||||
path = ../../../../external/chipmunk;
|
||||
path = ../../../external/chipmunk;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
15A3D3351682F0B5002FB0C5 /* include */ = {
|
||||
|
@ -610,7 +610,7 @@
|
|||
15A3D3C31682F0D3002FB0C5 /* ios */,
|
||||
);
|
||||
name = CocosDenshion;
|
||||
path = ../../../../CocosDenshion;
|
||||
path = ../../../CocosDenshion;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
15A3D3C01682F0D3002FB0C5 /* include */ = {
|
||||
|
@ -650,7 +650,7 @@
|
|||
15A3D5151682F1A4002FB0C5 /* physics_nodes */,
|
||||
);
|
||||
name = extensions;
|
||||
path = ../../../../extensions;
|
||||
path = ../../../extensions;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
15A3D4AB1682F1A4002FB0C5 /* CCBReader */ = {
|
||||
|
@ -1089,10 +1089,10 @@
|
|||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(SRCROOT)/../../../cocos2dx",
|
||||
"$(SRCROOT)/../../../cocos2dx/include",
|
||||
"$(SRCROOT)/../../../cocos2dx/platform/ios",
|
||||
"$(SRCROOT)/../../../scripting/javascript/spidermonkey-ios/include1",
|
||||
"$(SRCROOT)/../../cocos2dx",
|
||||
"$(SRCROOT)/../../cocos2dx/include",
|
||||
"$(SRCROOT)/../../cocos2dx/platform/ios",
|
||||
"$(SRCROOT)/../../scripting/javascript/spidermonkey-ios/include1",
|
||||
);
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
|
||||
SDKROOT = iphoneos;
|
||||
|
@ -1113,10 +1113,10 @@
|
|||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(SRCROOT)/../../../cocos2dx",
|
||||
"$(SRCROOT)/../../../cocos2dx/include",
|
||||
"$(SRCROOT)/../../../cocos2dx/platform/ios",
|
||||
"$(SRCROOT)/../../../scripting/javascript/spidermonkey-ios/include1",
|
||||
"$(SRCROOT)/../../cocos2dx",
|
||||
"$(SRCROOT)/../../cocos2dx/include",
|
||||
"$(SRCROOT)/../../cocos2dx/platform/ios",
|
||||
"$(SRCROOT)/../../scripting/javascript/spidermonkey-ios/include1",
|
||||
);
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
|
||||
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
|
||||
|
@ -1144,19 +1144,19 @@
|
|||
GCC_THUMB_SUPPORT = NO;
|
||||
GCC_VERSION = "";
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"\"$(SRCROOT)/../../../../cocos2dx\"",
|
||||
"\"$(SRCROOT)/../../../../cocos2dx/kazmath/include\"",
|
||||
"\"$(SRCROOT)/../../../../CocosDenshion/include\"",
|
||||
"\"$(SRCROOT)/../../../cocos2dx\"",
|
||||
"\"$(SRCROOT)/../../../cocos2dx/kazmath/include\"",
|
||||
"\"$(SRCROOT)/../../../CocosDenshion/include\"",
|
||||
"\"$(SDKROOT)/usr/include/libxml2\"",
|
||||
"$(SRCROOT)/../../../../cocos2dx/include",
|
||||
"$(SRCROOT)/../../../../cocos2dx/platform/ios",
|
||||
"$(SRCROOT)/../../../../external/chipmunk/include/chipmunk",
|
||||
"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-ios/include",
|
||||
"$(SRCROOT)/../../../../scripting/javascript/bindings",
|
||||
"$(SRCROOT)/../../../cocos2dx/include",
|
||||
"$(SRCROOT)/../../../cocos2dx/platform/ios",
|
||||
"$(SRCROOT)/../../../external/chipmunk/include/chipmunk",
|
||||
"$(SRCROOT)/../../../scripting/javascript/spidermonkey-ios/include",
|
||||
"$(SRCROOT)/../../../scripting/javascript/bindings",
|
||||
);
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
|
||||
LIBRARY_SEARCH_PATHS = "\"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-ios/lib\"";
|
||||
LIBRARY_SEARCH_PATHS = "\"$(SRCROOT)/../../../scripting/javascript/spidermonkey-ios/lib\"";
|
||||
OTHER_LDFLAGS = (
|
||||
"-lxml2",
|
||||
"-lz",
|
||||
|
@ -1185,19 +1185,19 @@
|
|||
GCC_THUMB_SUPPORT = NO;
|
||||
GCC_VERSION = "";
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"\"$(SRCROOT)/../../../../cocos2dx\"",
|
||||
"\"$(SRCROOT)/../../../../cocos2dx/kazmath/include\"",
|
||||
"\"$(SRCROOT)/../../../../CocosDenshion/include\"",
|
||||
"\"$(SRCROOT)/../../../cocos2dx\"",
|
||||
"\"$(SRCROOT)/../../../cocos2dx/kazmath/include\"",
|
||||
"\"$(SRCROOT)/../../../CocosDenshion/include\"",
|
||||
"\"$(SDKROOT)/usr/include/libxml2\"",
|
||||
"$(SRCROOT)/../../../../cocos2dx/include",
|
||||
"$(SRCROOT)/../../../../cocos2dx/platform/ios",
|
||||
"$(SRCROOT)/../../../../external/chipmunk/include/chipmunk",
|
||||
"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-ios/include",
|
||||
"$(SRCROOT)/../../../../scripting/javascript/bindings",
|
||||
"$(SRCROOT)/../../../cocos2dx/include",
|
||||
"$(SRCROOT)/../../../cocos2dx/platform/ios",
|
||||
"$(SRCROOT)/../../../external/chipmunk/include/chipmunk",
|
||||
"$(SRCROOT)/../../../scripting/javascript/spidermonkey-ios/include",
|
||||
"$(SRCROOT)/../../../scripting/javascript/bindings",
|
||||
);
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
|
||||
LIBRARY_SEARCH_PATHS = "\"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-ios/lib\"";
|
||||
LIBRARY_SEARCH_PATHS = "\"$(SRCROOT)/../../../scripting/javascript/spidermonkey-ios/lib\"";
|
||||
OTHER_LDFLAGS = (
|
||||
"-lxml2",
|
||||
"-lz",
|
|
@ -75,7 +75,7 @@
|
|||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\CocosDenshion\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..\Classes;$(ProjectDir)..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\extensions;$(ProjectDir)..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\CocosDenshion\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;STRICT;DEBUG;_DEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_DEBUG=1;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
|
@ -93,7 +93,7 @@
|
|||
</ResourceCompile>
|
||||
<PreLinkEvent>
|
||||
<Command>if not exist "$(OutDir)" mkdir "$(OutDir)"
|
||||
xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
|
||||
xcopy /Y /Q "$(ProjectDir)..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
|
||||
</Command>
|
||||
</PreLinkEvent>
|
||||
<Link>
|
||||
|
@ -107,7 +107,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\li
|
|||
<Command>if not exist "$(OutDir)" mkdir "$(OutDir)"
|
||||
if exist "$(OutDir)\HelloJavascriptRes" rd /s /q "$(OutDir)\HelloJavascriptRes"
|
||||
mkdir "$(OutDir)\HelloJavascriptRes"
|
||||
xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\HelloJavascriptRes\" /e /Y
|
||||
xcopy "$(ProjectDir)..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\HelloJavascriptRes\" /e /Y
|
||||
xcopy "$(ProjectDir)..\..\Shared\tests" "$(OutDir)\HelloJavascriptRes\" /e /Y</Command>
|
||||
</PreBuildEvent>
|
||||
<PreBuildEvent>
|
||||
|
@ -128,7 +128,7 @@ xcopy "$(ProjectDir)..\..\Shared\tests" "$(OutDir)\HelloJavascriptRes\" /e /Y</C
|
|||
<ProxyFileName>testjs_p.c</ProxyFileName>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\CocosDenshion\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..\Classes;$(ProjectDir)..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\extensions;$(ProjectDir)..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\CocosDenshion\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;STRICT;NDEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>
|
||||
</ExceptionHandling>
|
||||
|
@ -147,7 +147,7 @@ xcopy "$(ProjectDir)..\..\Shared\tests" "$(OutDir)\HelloJavascriptRes\" /e /Y</C
|
|||
</ResourceCompile>
|
||||
<PreLinkEvent>
|
||||
<Command>if not exist "$(OutDir)" mkdir "$(OutDir)"
|
||||
xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
|
||||
xcopy /Y /Q "$(ProjectDir)..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
|
||||
</Command>
|
||||
</PreLinkEvent>
|
||||
<Link>
|
||||
|
@ -160,7 +160,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\li
|
|||
<Command>if not exist "$(OutDir)" mkdir "$(OutDir)"
|
||||
if exist "$(OutDir)\HelloJavascriptRes" rd /s /q "$(OutDir)\HelloJavascriptRes"
|
||||
mkdir "$(OutDir)\HelloJavascriptRes"
|
||||
xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\HelloJavascriptRes\" /e /Y
|
||||
xcopy "$(ProjectDir)..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\HelloJavascriptRes\" /e /Y
|
||||
xcopy "$(ProjectDir)..\..\Shared\tests" "$(OutDir)\HelloJavascriptRes\" /e /Y</Command>
|
||||
<Message>Copy js and resource files.</Message>
|
||||
</PreBuildEvent>
|
||||
|
@ -181,11 +181,11 @@ xcopy "$(ProjectDir)..\..\Shared\tests" "$(OutDir)\HelloJavascriptRes\" /e /Y</C
|
|||
<ResourceCompile Include="testjs.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\..\cocos2dx\proj.win32\cocos2d.vcxproj">
|
||||
<ProjectReference Include="..\..\..\cocos2dx\proj.win32\cocos2d.vcxproj">
|
||||
<Project>{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\..\CocosDenshion\proj.win32\CocosDenshion.vcxproj">
|
||||
<ProjectReference Include="..\..\..\CocosDenshion\proj.win32\CocosDenshion.vcxproj">
|
||||
<Project>{f8edd7fa-9a51-4e80-baeb-860825d2eac6}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Loading…
Reference in New Issue