File: winconsole.pro

package info (click to toggle)
openscad 2021.01-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,096 kB
  • sloc: cpp: 53,199; sh: 4,384; ansic: 4,382; python: 1,813; yacc: 853; javascript: 762; lex: 417; lisp: 163; xml: 127; makefile: 118
file content (23 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Windows console issues workaround stub.
#
# This attempts to solve the problem of piping OpenSCAD under windows
# command line (GUI mode programs in Windows don't 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 = winconsole
FORMS =
HEADERS =
FLEXSOURCES =
BISONSOURCES =
RESOURCES =
SOURCES = winconsole.c
CONFIG -= qt
CONFIG += console # sets IMAGE_SUBSYSTEM_WINDOWS_CUI in binary
QMAKE_POST_LINK = cd $(DESTDIR) && mv winconsole.exe openscad.com