File: pack-OPENSCAD_NOGUI-in-qmake-nogui-config.patch

package info (click to toggle)
openscad 2015.03-2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 30,804 kB
  • ctags: 5,692
  • sloc: cpp: 39,386; sh: 3,856; ansic: 3,674; python: 1,393; yacc: 496; lex: 272; lisp: 159; makefile: 67; xml: 60
file content (48 lines) | stat: -rw-r--r-- 1,101 bytes parent folder | download
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From: chrysn <chrysn@fsfe.org>
Date: Mon, 8 Jun 2015 09:58:38 +0200
Subject: pack OPENSCAD_NOGUI in qmake nogui config

thus, scintilla can be kept from being built at all, slimming down the
build dependencies for the nogui build
---
 openscad.pro         | 8 +++++++-
 scripts/travis-ci.sh | 2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/openscad.pro b/openscad.pro
index 5234dbb..bec4f0e 100644
--- a/openscad.pro
+++ b/openscad.pro
@@ -207,13 +207,19 @@ CONFIG += fontconfig
 CONFIG += gettext
 
 #Uncomment the following line to enable the QScintilla editor
-CONFIG += scintilla
+!nogui {
+  CONFIG += scintilla
+}
 
 # Make experimental features available
 experimental {
   DEFINES += ENABLE_EXPERIMENTAL
 }
 
+nogui {
+  DEFINES += OPENSCAD_NOGUI
+}
+
 mdi {
   DEFINES += ENABLE_MDI
 }
diff --git a/scripts/travis-ci.sh b/scripts/travis-ci.sh
index a808a12..e4160f9 100755
--- a/scripts/travis-ci.sh
+++ b/scripts/travis-ci.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-qmake CONFIG+=experimental DEFINES+=OPENSCAD_NOGUI
+qmake CONFIG+=experimental CONFIG+=nogui
 make
 
 cd tests