Browse files

Added library dependence for create-android-project script.

  • Loading branch information...
1 parent 4f769c0 commit f0b2c50f672eeba674607ae671186d4b7204e33f @dumganhar dumganhar committed Sep 25, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 create-android-project.bat
  2. +1 −0 create-android-project.sh
View
2 create-android-project.bat
@@ -36,7 +36,7 @@ echo Create android project
mkdir %_PROJECTDIR%
echo Create Android project inside proj.android
call "%_ANDROIDTOOLS%\android.bat" create project -n %_PROJECTNAME% -t %_TARGETID% -k %_PACKAGEPATH% -a %_PROJECTNAME% -p %_PROJECTDIR%\proj.android
-
+call "%_ANDROIDTOOLS%\android.bat" update project -l ../../cocos2dx/platform/android/java -p %_PROJECTDIR%\proj.android
:: Resolve ___.sh to /cygdrive based *nix path and store in %_CYGSCRIPT%
for /f "delims=" %%A in ('%_CYGBIN%\cygpath.exe "%~dpn0.sh"') do set _CYGSCRIPT=%%A
View
1 create-android-project.sh
@@ -117,6 +117,7 @@ create_android_project(){
mkdir $PROJECT_DIR
# Create Android project inside proj.android
$ANDROID_SDK_ROOT_LOCAL/tools/android create project -n $PROJECT_NAME -t $TARGET_ID -k $PACKAGE_PATH -a $PROJECT_NAME -p $PROJECT_DIR/proj.android
+ $ANDROID_SDK_ROOT_LOCAL/tools/android update project -l ../../cocos2dx/platform/android/java -p $PROJECT_DIR/proj.android
}
check_path

0 comments on commit f0b2c50

Please sign in to comment.