[vlc-devel] commit: Contrib bootstrap: ready cmake crosscompilation ( Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Dec 4 07:21:47 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Dec  3 23:39:17 2009 +0100| [d44fe75a82055e1054f38aff6ffa7d850c1dfeec] | committer: Jean-Baptiste Kempf 

Contrib bootstrap: ready cmake crosscompilation

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d44fe75a82055e1054f38aff6ffa7d850c1dfeec
---

 extras/contrib/bootstrap |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap
index d0b0c66..bb0337f 100755
--- a/extras/contrib/bootstrap
+++ b/extras/contrib/bootstrap
@@ -303,6 +303,19 @@ echo "EXTRA_CPPFLAGS = ${EXTRA_CPPFLAGS} -isystem \$(PREFIX)/include" >> config.
 echo "EXTRA_LDFLAGS = ${EXTRA_LDFLAGS}" >> config.mak
 echo "EXTRA_PATH = ${EXTRA_PATH}" >> config.mak
 
+#CMAKE
+if test "$HOST" != "$BUILD"; then
+if test ${DISTRO} = "win32"; then
+echo "SET(CMAKE_SYSTEM_NAME Windows)" >> toolchain.cmake
+fi
+echo "SET(CMAKE_C_COMPILER ${CC})" >> toolchain.cmake
+echo "SET(CMAKE_CXX_COMPILER ${CXX})" >> toolchain.cmake
+echo "SET(CMAKE_FIND_ROOT_PATH  `pwd` )" >> toolchain.cmake
+echo "set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> toolchain.cmake
+echo "set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> toolchain.cmake
+echo "set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> toolchain.cmake
+fi
+
 if wget --version >/dev/null 2>&1; then
     echo "WGET = `which wget` -c --passive" >> config.mak
 elif test -z `curl --version >/dev/null 2>&1`; then




More information about the vlc-devel mailing list