summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-05-08 20:11:37 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-05-08 20:11:37 +0000
commit55514fe81102aff77643153208125f2ea0c3c2fb (patch)
tree3adb4b0e5073bdb833d3c303b04eaa4dd0c2dad7
parentMove gettext initialization to separate function and re-use it in inkview (lo... (diff)
downloadinkscape-55514fe81102aff77643153208125f2ea0c3c2fb.tar.gz
inkscape-55514fe81102aff77643153208125f2ea0c3c2fb.zip
Build an inkview.com as consoler wrapper around inkview.exe to allow for printing to console
(just as we do with inkscape.com / inkscape.exe) (bzr r15677)
-rw-r--r--CMakeScripts/InstallMSYS2.cmake5
-rw-r--r--src/CMakeLists.txt5
2 files changed, 9 insertions, 1 deletions
diff --git a/CMakeScripts/InstallMSYS2.cmake b/CMakeScripts/InstallMSYS2.cmake
index c8c580fe4..a96df045b 100644
--- a/CMakeScripts/InstallMSYS2.cmake
+++ b/CMakeScripts/InstallMSYS2.cmake
@@ -10,6 +10,11 @@ if(WIN32)
DESTINATION ${CMAKE_INSTALL_PREFIX}
RENAME inkscape.com
)
+ install(PROGRAMS
+ ${EXECUTABLE_OUTPUT_PATH}/inkview_com.exe
+ DESTINATION ${CMAKE_INSTALL_PREFIX}
+ RENAME inkview.com
+ )
install(FILES
${LIBRARY_OUTPUT_PATH}/libinkscape_base.dll
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6df71e17e..fe224b9fe 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -491,10 +491,13 @@ if(WIN32)
list(APPEND view_SRC inkscape.rc)
endif()
- # Build the windows MS-DOS console executable.
+ # Build console applications as wrappers around inkscape/inkview.exe as GUI applications can't print to the console.
add_executable(inkscape_com winconsole.cpp)
set_target_properties(inkscape_com
PROPERTIES LINK_FLAGS "-mconsole")
+ add_executable(inkview_com winconsole.cpp)
+ set_target_properties(inkview_com
+ PROPERTIES LINK_FLAGS "-mconsole")
endif()
# make executables for inkscape and inkview