From 4d14afa686ca40451e491cdf6e2a0ba05f565249 Mon Sep 17 00:00:00 2001 From: Rohan Kuruvilla Date: Mon, 25 Feb 2013 23:48:45 -0800 Subject: [PATCH] Modifying C++ project files to remove dependency on scripting --- .../AssetsManagerTest/proj.android/.cproject | 113 ++++++++++++ .../AssetsManagerTest/proj.android/.project | 161 ++++++++++++++---- samples/Cpp/HelloCpp/proj.android/.cproject | 3 +- samples/Cpp/HelloCpp/proj.android/.project | 5 - samples/Cpp/SimpleGame/proj.android/.cproject | 113 ++++++++++++ samples/Cpp/SimpleGame/proj.android/.project | 95 +++++++++++ samples/Cpp/TestCpp/proj.android/.cproject | 3 +- samples/Cpp/TestCpp/proj.android/.project | 5 - 8 files changed, 451 insertions(+), 47 deletions(-) create mode 100644 samples/Cpp/AssetsManagerTest/proj.android/.cproject create mode 100644 samples/Cpp/SimpleGame/proj.android/.cproject diff --git a/samples/Cpp/AssetsManagerTest/proj.android/.cproject b/samples/Cpp/AssetsManagerTest/proj.android/.cproject new file mode 100644 index 0000000000..1231abb49b --- /dev/null +++ b/samples/Cpp/AssetsManagerTest/proj.android/.cproject @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/Cpp/AssetsManagerTest/proj.android/.project b/samples/Cpp/AssetsManagerTest/proj.android/.project index f6cab19617..8b3e8b68ec 100644 --- a/samples/Cpp/AssetsManagerTest/proj.android/.project +++ b/samples/Cpp/AssetsManagerTest/proj.android/.project @@ -1,33 +1,128 @@ - - - AssetsManager - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - + + + AssetsManagerTest + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.ui.externaltools.ExternalToolBuilder + full,incremental, + + + LaunchConfigHandle + <project>/.externalToolBuilders/Javah_jni_builder.launch + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -C ${ProjDirPath} NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt -j2 + + + org.eclipse.cdt.make.core.buildCommand + ${ProjDirPath}/ANDROID_NDK/ndk-build + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + + Classes + 2 + COCOS2DX/samples/Cpp/AssetsManagerTest/Classes + + + cocos2dx + 2 + COCOS2DX/cocos2dx + + + extensions + 2 + COCOS2DX/extensions + + + diff --git a/samples/Cpp/HelloCpp/proj.android/.cproject b/samples/Cpp/HelloCpp/proj.android/.cproject index fc4e7a2557..b472ce99e1 100644 --- a/samples/Cpp/HelloCpp/proj.android/.cproject +++ b/samples/Cpp/HelloCpp/proj.android/.cproject @@ -82,9 +82,8 @@ - + - diff --git a/samples/Cpp/HelloCpp/proj.android/.project b/samples/Cpp/HelloCpp/proj.android/.project index 828627b7aa..8c1416e9d8 100644 --- a/samples/Cpp/HelloCpp/proj.android/.project +++ b/samples/Cpp/HelloCpp/proj.android/.project @@ -124,10 +124,5 @@ 2 COCOS2DX/extensions - - scripting - 2 - COCOS2DX/scripting - diff --git a/samples/Cpp/SimpleGame/proj.android/.cproject b/samples/Cpp/SimpleGame/proj.android/.cproject new file mode 100644 index 0000000000..c856c717dd --- /dev/null +++ b/samples/Cpp/SimpleGame/proj.android/.cproject @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/Cpp/SimpleGame/proj.android/.project b/samples/Cpp/SimpleGame/proj.android/.project index afc29d09d0..7efcef1318 100644 --- a/samples/Cpp/SimpleGame/proj.android/.project +++ b/samples/Cpp/SimpleGame/proj.android/.project @@ -20,14 +20,109 @@ + + org.eclipse.ui.externaltools.ExternalToolBuilder + full,incremental, + + + LaunchConfigHandle + <project>/.externalToolBuilders/Javah_jni_builder.launch + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -C ${ProjDirPath} NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt -j2 + + + org.eclipse.cdt.make.core.buildCommand + ${ProjDirPath}/ANDROID_NDK/ndk-build + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + com.android.ide.eclipse.adt.ApkBuilder + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + com.android.ide.eclipse.adt.AndroidNature org.eclipse.jdt.core.javanature + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + Classes + 2 + COCOS2DX/samples/Cpp/SimpleGame/Classes + + + cocos2dx + 2 + COCOS2DX/cocos2dx + + + extensions + 2 + COCOS2DX/extensions + + diff --git a/samples/Cpp/TestCpp/proj.android/.cproject b/samples/Cpp/TestCpp/proj.android/.cproject index 55e3374b96..98b6c71321 100644 --- a/samples/Cpp/TestCpp/proj.android/.cproject +++ b/samples/Cpp/TestCpp/proj.android/.cproject @@ -82,9 +82,8 @@ - + - diff --git a/samples/Cpp/TestCpp/proj.android/.project b/samples/Cpp/TestCpp/proj.android/.project index f73fa3dd07..954b6e60d3 100644 --- a/samples/Cpp/TestCpp/proj.android/.project +++ b/samples/Cpp/TestCpp/proj.android/.project @@ -124,10 +124,5 @@ 2 COCOS2DX/extensions - - scripting - 2 - COCOS2DX/scripting -