diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2017-02-26 18:28:14 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2017-02-26 18:28:14 +0000 |
| commit | 77e98a884252c3aaa0e12d584feff3915a52cdf1 (patch) | |
| tree | 4b5406adaccc47c7d6ea59f839373cece978ebf6 | |
| parent | sp-canvas: Migrate to seat_grab (diff) | |
| download | inkscape-77e98a884252c3aaa0e12d584feff3915a52cdf1.tar.gz inkscape-77e98a884252c3aaa0e12d584feff3915a52cdf1.zip | |
CMake: Purge GS_PATH and GS_BIN
They're only defined on Windows while not being used anywhere
(bzr r15549)
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r--[-rwxr-xr-x] | mingwenv.bat | 6 | ||||
| -rw-r--r-- | mingwenv.cmake | 25 | ||||
| -rwxr-xr-x[-rw-r--r--] | msysenv.sh | 8 |
4 files changed, 2 insertions, 39 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f4b87c7cd..df17342ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -312,8 +312,6 @@ message("DEVLIBS_PATH: ${DEVLIBS_PATH}") message("DEVLIBS_LIB: ${DEVLIBS_LIB}") message("DEVLIBS_BIN: ${DEVLIBS_BIN}") message("PKG_CONFIG_PATH: ${PKG_CONFIG_PATH}") -message("GS_PATH ${GS_PATH}") -message("GS_BIN ${GS_BIN}") endif() message("------------------------------------------------------------------------") diff --git a/mingwenv.bat b/mingwenv.bat index 255920668..e4b9047f1 100755..100644 --- a/mingwenv.bat +++ b/mingwenv.bat @@ -12,18 +12,14 @@ REM Directory containing the MinGW instance used for compilation. Usually c:\min REM Note: Make sure there are no whitespaces in the path. MinGW doesn't like that.. ;) if "%MINGW_PATH%"=="" set MINGW_PATH=c:\mingw64 -REM Directory containing the (optional) Ghostscript installation. -if "%GS_PATH%"=="" set GS_PATH=C:\latex\gs\gs8.61 - REM ----------------------------------------------------------------------------- @echo Setting environment variables for MinGW build of Inkscape.. @echo DEVLIBS_PATH: %DEVLIBS_PATH% @echo MINGW_PATH: %MINGW_PATH% -@echo GS_PATH: %GS_PATH% REM Include the MinGW environment in the path to prevent error messages during CMake configure. -set PATH=%DEVLIBS_PATH%\bin;%DEVLIBS_PATH%\python;%MINGW_PATH%\bin;%PATH%;%GS_PATH%\bin +set PATH=%DEVLIBS_PATH%\bin;%DEVLIBS_PATH%\python;%MINGW_PATH%\bin;%PATH% REM Also set the pkgconfig path to prevent error messages during CMake configure. set PKG_CONFIG_PATH=%DEVLIBS_PATH%\lib\pkgconfig
\ No newline at end of file diff --git a/mingwenv.cmake b/mingwenv.cmake index 99b50a6bf..64766a60c 100644 --- a/mingwenv.cmake +++ b/mingwenv.cmake @@ -10,9 +10,6 @@ set(ENV_DEVLIBS_PATH C:/devlibs64) # Directory containing the MinGW instance used for compilation. Usually c:\mingw or c:\mingw64
set(ENV_MINGW_PATH C:/mingw64)
-# Directory containing the (optional) Ghostscript installation.
-set(ENV_GS_PATH C:/latex/gs/gs8.61)
-
# -----------------------------------------------------------------------------
# MinGW Configuration
# -----------------------------------------------------------------------------
@@ -33,19 +30,10 @@ else() message(STATUS " Setting path to MinGW from environment: $ENV{MINGW_PATH}")
set(MINGW_PATH $ENV{MINGW_PATH})
endif()
-
-if("$ENV{GS_PATH}" STREQUAL "")
- message(STATUS " Setting path to Ghostscript from mingwenv.cmake: ${ENV_GS_PATH}")
- set(GS_PATH ${ENV_GS_PATH})
-else()
- message(STATUS " Setting path to Ghostscript from environment: $ENV{GS_PATH}")
- set(GS_PATH $ENV{GS_PATH})
-endif()
# Normalize directory separator slashes.
string(REGEX REPLACE "\\\\" "/" DEVLIBS_PATH ${DEVLIBS_PATH})
string(REGEX REPLACE "\\\\" "/" MINGW_PATH ${MINGW_PATH})
-string(REGEX REPLACE "\\\\" "/" GS_PATH ${GS_PATH})
# -----------------------------------------------------------------------------
# DEVLIBS CHECKS
@@ -190,19 +178,6 @@ if(HAVE_MSYS) endif()
# -----------------------------------------------------------------------------
-# GHOSTSCRIPT CHECKS
-# -----------------------------------------------------------------------------
-
-# Check for Ghostscript.
-set(GS_BIN "${GS_PATH}/bin")
-
-if(EXISTS "${GS_BIN}")
- set(HAVE_GS_BIN ON)
-else()
- set(HAVE_GS_BIN OFF)
-endif()
-
-# -----------------------------------------------------------------------------
# LIBRARY AND LINKER SETTINGS
# -----------------------------------------------------------------------------
diff --git a/msysenv.sh b/msysenv.sh index 88252a919..d1639efbe 100644..100755 --- a/msysenv.sh +++ b/msysenv.sh @@ -14,21 +14,15 @@ fi if [ -z $MINGW_PATH ]; then export MINGW_PATH="/c/mingw64"; fi -# Directory containing the (optional) Ghostscript installation. - -if [ -z $GS_PATH ]; then - export GS_PATH="/c/latex/gs/gs8.61"; -fi # ----------------------------------------------------------------------------- echo Setting environment variables for MSYS build of Inkscape: echo echo "DEVLIBS_PATH: "$DEVLIBS_PATH echo "MINGW_PATH: "$MINGW_PATH -echo "GS_PATH: "$GS_PATH # Include the MinGW environment in the path to prevent error messages during CMake configure. -export PATH=$DEVLIBS_PATH/bin:$DEVLIBS_PATH/python:$MINGW_PATH/bin:$PATH:$GS_PATH/bin +export PATH=$DEVLIBS_PATH/bin:$DEVLIBS_PATH/python:$MINGW_PATH/bin:$PATH # Also set the pkgconfig path to prevent error messages during CMake configure. export PKG_CONFIG_PATH=$DEVLIBS_PATH/lib/pkgconfig |
