From 4429cb1baabc23137a2aa8bc687cfa78412126cd Mon Sep 17 00:00:00 2001 From: Moritz Eberl Date: Sat, 16 Apr 2016 17:59:22 +0200 Subject: Added Sebastian Faubels helper scripts for windows. (bzr r14761.1.10) --- CMakeLists.txt | 3 +++ configure.bat | 9 +++++++++ touch.bat | 1 + 3 files changed, 13 insertions(+) create mode 100644 configure.bat create mode 100644 touch.bat diff --git a/CMakeLists.txt b/CMakeLists.txt index ddebe9a64..ec16218dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,7 +108,10 @@ add_definitions(-DORBIT2=1) add_definitions(-DHAVE_CONFIG_H) add_definitions(-DHAVE_CAIRO_PDF=1) # needed for src/libnrtype/Layout-TNG.h add_definitions(-DHAVE_TR1_UNORDERED_SET) # XXX make an option! + +if(!WIN32) add_definitions(-fPIC) +endif() # # end badness # ----------------------------------------------------------------------------- diff --git a/configure.bat b/configure.bat new file mode 100644 index 000000000..503b47b84 --- /dev/null +++ b/configure.bat @@ -0,0 +1,9 @@ +REM Set the MinGW environment variables. +if "%MINGW_BIN%"=="" mingwenv.bat + +REM Delete the CMake cache. Needed when changes on the CMakeLists should be applied in a consistent way. +del CMakeCache.txt +rmdir /s /q CMakeFiles + +REM Configure using the MinGW compiler chain. +cmake -D"CMAKE_SYSTEM_PREFIX_PATH:PATH=C:\MinGW64\mingw64\x86_64-w64-mingw32" -G "MinGW Makefiles" .. diff --git a/touch.bat b/touch.bat new file mode 100644 index 000000000..043b3eb99 --- /dev/null +++ b/touch.bat @@ -0,0 +1 @@ +forfiles /s /m *.obj /c "cmd /c copy /b @path +,," \ No newline at end of file -- cgit v1.2.3