From d4dcf44380f0836924fcc85f4217f70f135b0cb4 Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 29 Jul 2013 08:27:59 +0800 Subject: [PATCH] [Win32] Removing bindings-generator support, since the clang3.3 of windows can't work with c++11 well, I don't know why, so disable win32 support temporary. --- tools/tojs/genbindings-win32.bat | 69 ------------------- .../tojs/win32/cygiconv-2.dll.REMOVED.git-id | 1 - tools/tojs/win32/cygwin1.dll.REMOVED.git-id | 1 - tools/tojs/win32/libclang.dll.REMOVED.git-id | 1 - 4 files changed, 72 deletions(-) delete mode 100644 tools/tojs/genbindings-win32.bat delete mode 100644 tools/tojs/win32/cygiconv-2.dll.REMOVED.git-id delete mode 100644 tools/tojs/win32/cygwin1.dll.REMOVED.git-id delete mode 100644 tools/tojs/win32/libclang.dll.REMOVED.git-id diff --git a/tools/tojs/genbindings-win32.bat b/tools/tojs/genbindings-win32.bat deleted file mode 100644 index 6a620c69ed..0000000000 --- a/tools/tojs/genbindings-win32.bat +++ /dev/null @@ -1,69 +0,0 @@ -@echo off - -:: This script is used to generate jsbinding glue codes. -:: You should modify PYTHON_ROOT and NDK_ROOT to work under your environment. -:: Android ndk version must be at least ndk-r8d. - -set PYTHON_ROOT=C:/Python27 -set NDK_ROOT=C:/android-ndk-r8d - -set PATH=%PATH%;%cd%/win32;%PYTHON_ROOT% -set COCOS2DX_ROOT=%cd%/../.. -set "COCOS2DX_ROOT=%COCOS2DX_ROOT:\=/%" -set CXX_GENERATOR_ROOT=%COCOS2DX_ROOT%/tools/bindings-generator -set TO_JS_ROOT=%COCOS2DX_ROOT%/tools/tojs -set "CXX_GENERATOR_ROOT=%CXX_GENERATOR_ROOT:\=/%" -set OUTPUT_DIR=%COCOS2DX_ROOT%/scripting/javascript/bindings/generated -set "OUTPUT_DIR=%OUTPUT_DIR:/=\%" -set CLANG_ROOT=%NDK_ROOT%/toolchains/llvm-3.1/prebuilt/windows - -:: write userconf.ini - -set _CONF_INI_FILE=%cd%\userconf.ini -if exist %_CONF_INI_FILE% del /Q %_CONF_INI_FILE% - - -echo -echo generating userconf.ini... -echo --- -echo [DEFAULT] > %_CONF_INI_FILE% -echo androidndkdir=%NDK_ROOT% >> %_CONF_INI_FILE% -echo clangllvmdir=%CLANG_ROOT% >> %_CONF_INI_FILE% -echo cocosdir=%COCOS2DX_ROOT% >> %_CONF_INI_FILE% -echo cxxgeneratordir=%CXX_GENERATOR_ROOT% >> %_CONF_INI_FILE% -echo extra_flags=-D__ARM_EABI__ -D__GNUC__=2 >> %_CONF_INI_FILE% -echo --- - - - -:: Generate bindings for cocos2dx -echo Generating bindings for cocos2dx... - -python %CXX_GENERATOR_ROOT%/generator.py %TO_JS_ROOT%/cocos2dx.ini -s cocos2d-x -o %OUTPUT_DIR% -n jsb_cocos2dx_auto -if %errorlevel% neq 0 goto ERROR - -echo "Generating bindings for cocos2dx_extension..." - -python %CXX_GENERATOR_ROOT%/generator.py %TO_JS_ROOT%/cocos2dx_extension.ini -s cocos2dx_extension -o %OUTPUT_DIR% -n jsb_cocos2dx_extension_auto -if %errorlevel% neq 0 goto ERROR - -:: Change the generated file format from DOS to UNIX. -pushd "%OUTPUT_DIR%" -dos2unix * -popd - -echo --------------------------------- -echo Generating bindings succeeds. -echo --------------------------------- - -goto QUIT - -:ERROR -echo --------------------------------- -echo Generating bindings fails. -echo --------------------------------- - -:QUIT - -pause - diff --git a/tools/tojs/win32/cygiconv-2.dll.REMOVED.git-id b/tools/tojs/win32/cygiconv-2.dll.REMOVED.git-id deleted file mode 100644 index 304f71e385..0000000000 --- a/tools/tojs/win32/cygiconv-2.dll.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -f8bcb5d3cb13f170075570db09276e65d4f435ed \ No newline at end of file diff --git a/tools/tojs/win32/cygwin1.dll.REMOVED.git-id b/tools/tojs/win32/cygwin1.dll.REMOVED.git-id deleted file mode 100644 index 1448e4df9a..0000000000 --- a/tools/tojs/win32/cygwin1.dll.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -71cde86196932ad943470198ad5fcbafd47ea949 \ No newline at end of file diff --git a/tools/tojs/win32/libclang.dll.REMOVED.git-id b/tools/tojs/win32/libclang.dll.REMOVED.git-id deleted file mode 100644 index 44d359c68c..0000000000 --- a/tools/tojs/win32/libclang.dll.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -bdb8f0397dc43d13bcc1b5c6bee3ff132c6b230b \ No newline at end of file