From 25711570739909b6612778b28fb049ff4a9e6056 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Fri, 9 Dec 2011 15:16:33 +0000 Subject: [PATCH] native bullet build: - delete toolchain files for cmake - add working cross-compile target for windows 32bit (WIP) git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8907 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/nbproject/build-bullet-natives.xml | 81 ++++++++++++++--------- engine/nbproject/bullet-native.properties | 4 ++ engine/nbproject/mingw32.toolchain | 17 ----- engine/nbproject/mingw64.toolchain | 17 ----- 4 files changed, 55 insertions(+), 64 deletions(-) delete mode 100644 engine/nbproject/mingw32.toolchain delete mode 100644 engine/nbproject/mingw64.toolchain diff --git a/engine/nbproject/build-bullet-natives.xml b/engine/nbproject/build-bullet-natives.xml index 348489490..8409f72e1 100644 --- a/engine/nbproject/build-bullet-natives.xml +++ b/engine/nbproject/build-bullet-natives.xml @@ -165,8 +165,6 @@ - - @@ -239,17 +237,22 @@ - + + + - + + - + + + @@ -369,10 +372,10 @@ - - - - + + + + @@ -439,7 +442,45 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - diff --git a/engine/nbproject/bullet-native.properties b/engine/nbproject/bullet-native.properties index 05bdf3faa..e9de2666e 100644 --- a/engine/nbproject/bullet-native.properties +++ b/engine/nbproject/bullet-native.properties @@ -18,6 +18,10 @@ bullet.osx.syslibroot=/Developer/SDKs/MacOSX10.6.sdk bullet.windows.compiler=g++ bullet.linux.compiler=g++ bullet.solaris.compiler=g++ +#cross compilation options +bullet.linux.crosscompiler=gcc-cross +cross.compile.target=i686-w64-mingw32 +cross.compile.target64=i686-w64-mingw32 # native header include directories bullet.java.include=${java.home}/../include # OSX has no JRE, only JDK diff --git a/engine/nbproject/mingw32.toolchain b/engine/nbproject/mingw32.toolchain deleted file mode 100644 index 75fefba40..000000000 --- a/engine/nbproject/mingw32.toolchain +++ /dev/null @@ -1,17 +0,0 @@ -# the name of the target operating system -SET(CMAKE_SYSTEM_NAME Windows) - -# which compilers to use for C and C++ -SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc) -SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++) -SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres) - -# here is the target environment located -SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32) - -# adjust the default behaviour of the FIND_XXX() commands: -# search headers and libraries in the target environment, search -# programs in the host environment -set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) -set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/engine/nbproject/mingw64.toolchain b/engine/nbproject/mingw64.toolchain deleted file mode 100644 index c5c47d236..000000000 --- a/engine/nbproject/mingw64.toolchain +++ /dev/null @@ -1,17 +0,0 @@ -# the name of the target operating system -SET(CMAKE_SYSTEM_NAME Windows) - -# which compilers to use for C and C++ -SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) -SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) -SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres) - -# here is the target environment located -SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32) - -# adjust the default behaviour of the FIND_XXX() commands: -# search headers and libraries in the target environment, search -# programs in the host environment -set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) -set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)