diff options
author | donbright <hugh.m.bright@gmail.com> | 2013-01-26 21:54:50 (GMT) |
---|---|---|
committer | donbright <hugh.m.bright@gmail.com> | 2013-01-26 21:54:50 (GMT) |
commit | d0856efe6da545693f9c50a8a2514a9f999ab5ef (patch) | |
tree | 44d07f540b2f9872a1f8eda855e39ac3740b6491 /winconsole.pri | |
parent | 2e65c6ddc5c73bfd3b76650c26268b5f54f7cd40 (diff) | |
parent | ddebb3991cc9fa183841d64ba43c3768e5be03a8 (diff) |
Merge pull request #251 from openscad/windows_console
Windows console. Marius gave approval for Merge in Issue discussion.
Diffstat (limited to 'winconsole.pri')
-rw-r--r-- | winconsole.pri | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/winconsole.pri b/winconsole.pri new file mode 100644 index 0000000..a3991ae --- /dev/null +++ b/winconsole.pri @@ -0,0 +1,28 @@ +# Windows console issues workaround stub. +# +# Usage: put at the end of .pro file, then run qmake CONFIG+=winconsole +# +# This attempts to solve the problem of piping OpenSCAD under windows +# command line (GUI mode programs in Windows dont allow this). We use +# the 'devenv' solution, which means building two binaries: +# openscad.exe, and openscad.com, the latter being a wrapper for the +# former. See src/winconsole.c for more details. +# +# Qmake doesn't like building two binaries in the same directory so we +# depend on release-common.sh to call qmake twice and package the file properly + +CONFIG(winconsole) { + TEMPLATE = app + TARGET = openscad_winconsole + FORMS = + HEADERS = + FLEXSOURCES = + BISONSOURCES = + RESOURCES = + SOURCES = src/winconsole.c + CONFIG += console # sets IMAGE_SUBSYSTEM_WINDOWS_CUI in binary + LIBS -= $$LIBS + RC_FILE -= $$RC_FILE + QMAKE_POST_LINK = cd $(DESTDIR) && mv openscad_winconsole.exe openscad.com +} + |