summaryrefslogtreecommitdiff
path: root/winconsole.pri
blob: a3991ae761b0655795c5689456c905d3749233cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
}

contact: Jan Huwald // Impressum