mirror of https://github.com/vitalif/openscad
24 lines
799 B
Prolog
24 lines
799 B
Prolog
|
# Windows console issues workaround stub.
|
||
|
#
|
||
|
# 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
|
||
|
|
||
|
TEMPLATE = app
|
||
|
TARGET = openscad_winconsole
|
||
|
FORMS =
|
||
|
HEADERS =
|
||
|
FLEXSOURCES =
|
||
|
BISONSOURCES =
|
||
|
RESOURCES =
|
||
|
SOURCES = src/winconsole.c
|
||
|
CONFIG -= qt
|
||
|
CONFIG += console # sets IMAGE_SUBSYSTEM_WINDOWS_CUI in binary
|
||
|
QMAKE_POST_LINK = cd $(DESTDIR) && mv openscad_winconsole.exe openscad.com
|