diff options
| author | Moritz Eberl <moritz@semiodesk.com> | 2016-04-16 15:59:22 +0000 |
|---|---|---|
| committer | Moritz Eberl <moritz@semiodesk.com> | 2016-04-16 15:59:22 +0000 |
| commit | 4429cb1baabc23137a2aa8bc687cfa78412126cd (patch) | |
| tree | b53f0dddc5670e4d77c860dd62e8b388b9363652 | |
| parent | Added missing file (diff) | |
| download | inkscape-4429cb1baabc23137a2aa8bc687cfa78412126cd.tar.gz inkscape-4429cb1baabc23137a2aa8bc687cfa78412126cd.zip | |
Added Sebastian Faubels helper scripts for windows.
(bzr r14761.1.10)
| -rw-r--r-- | CMakeLists.txt | 3 | ||||
| -rw-r--r-- | configure.bat | 9 | ||||
| -rw-r--r-- | touch.bat | 1 |
3 files changed, 13 insertions, 0 deletions
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 |
