Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 328 lines (290 sloc) 8.298 kB
d61b274 @kintel Started documenting env. variables
kintel authored
1 # Environment variables which can be set to specify library locations:
2 # MPIRDIR
3 # MPFRDIR
4 # BOOSTDIR
5 # CGALDIR
6 # EIGEN2DIR
7 # GLEWDIR
8 # OPENCSGDIR
b74bb39 @kintel generalized MACOSX_DEPLOY_DIR into the platform-independent OPENSCAD_…
kintel authored
9 # OPENSCAD_LIBRARIES
d61b274 @kintel Started documenting env. variables
kintel authored
10 #
52655b3 @donbright -fno-strict-aliasing fix for GCC bug & link to wikibooks build instru…
donbright authored
11 # Please see the 'Buildling' sections of the OpenSCAD user manual
12 # for updated tips & workarounds.
13 #
14 # http://en.wikibooks.org/wiki/OpenSCAD_User_Manual
9ab95e6 @donbright provide helpful error message when 'qmake' for qt3 is run
donbright authored
15
16 isEmpty(QT_VERSION) {
17 error("Please use qmake for Qt 4 (probably qmake-qt4)")
18 }
19
5a1fc30 @kintel Added support for specifying a VARIANT variable
kintel authored
20 # Auto-include config_<variant>.pri if the VARIANT variable is give on the
21 # command-line, e.g. qmake VARIANT=mybuild
22 !isEmpty(VARIANT) {
23 message("Variant: $${VARIANT}")
24 exists(config_$${VARIANT}.pri) {
25 message("Including config_$${VARIANT}.pri")
26 include(config_$${VARIANT}.pri)
27 }
28 }
29
696c061 @kintel extracted version config to separate .pri file
kintel authored
30 # Populate VERSION, VERSION_YEAR, VERSION_MONTH, VERSION_DATE from system date
31 include(version.pri)
32
17ccbac @donbright improve documentation. move EIGEN_DONT_ALIGN to makefile. win32 build…
donbright authored
33 # for debugging link problems (use nmake -f Makefile.Release > log.txt)
82ff5a1 @donbright fdef getopt.h for MSVC, cleanup makefile, ignore another msvc warning
donbright authored
34 win32 {
b74bb39 @kintel generalized MACOSX_DEPLOY_DIR into the platform-independent OPENSCAD_…
kintel authored
35 # QMAKE_LFLAGS += -VERBOSE
3159257 @donbright enable building of opencsgtest, throwntogethertest, on WinXP
donbright authored
36 }
ee7603b @kintel Compile DEBUG builds with -DDEBUG
kintel authored
37 debug: DEFINES += DEBUG
3159257 @donbright enable building of opencsgtest, throwntogethertest, on WinXP
donbright authored
38
0847ea8 Slowly getting the build system under control, added version number i…
kintel authored
39 TEMPLATE = app
e80db13 Clifford Wolf:
clifford authored
40
9b3d816 resource and build system update
kintel authored
41 INCLUDEPATH += src
42
b74bb39 @kintel generalized MACOSX_DEPLOY_DIR into the platform-independent OPENSCAD_…
kintel authored
43 # Handle custom library location.
44 # Used when manually installing 3rd party libraries
45 OPENSCAD_LIBDIR = $$(OPENSCAD_LIBRARIES)
46 !isEmpty(OPENSCAD_LIBDIR) {
b6a01a7 @donbright fix compilation on Fedora: boost, flex, and OPENSCAD_LIBRARIES
donbright authored
47 QMAKE_INCDIR_QT = $$OPENSCAD_LIBDIR/include $$QMAKE_INCDIR_QT
609e59d fix OPENSCAD_LIBRARIES on FreeBSD
don authored
48 QMAKE_LIBDIR = $$OPENSCAD_LIBDIR/lib $$QMAKE_LIBDIR
b74bb39 @kintel generalized MACOSX_DEPLOY_DIR into the platform-independent OPENSCAD_…
kintel authored
49 }
6aa1a6d @kintel Some more build system cleaning
kintel authored
50 else {
51 macx {
52 # Default to MacPorts on Mac OS X
53 QMAKE_INCDIR = /opt/local/include
54 QMAKE_LIBDIR = /opt/local/lib
55 }
56 }
b74bb39 @kintel generalized MACOSX_DEPLOY_DIR into the platform-independent OPENSCAD_…
kintel authored
57
dc1450e Marius Kintel:
clifford authored
58 macx {
0f9802e Improved Mac OS X deployment - hopefully this doesn't break builds on…
kintel authored
59 # add CONFIG+=deploy to the qmake command-line to make a deployment build
60 deploy {
61 message("Building deployment version")
f3de61c Build fat 32- and 64-bit binary when in deploy mode
kintel authored
62 CONFIG += x86 x86_64
0f9802e Improved Mac OS X deployment - hopefully this doesn't break builds on…
kintel authored
63 }
64
0847ea8 Slowly getting the build system under control, added version number i…
kintel authored
65 TARGET = OpenSCAD
9b3d816 resource and build system update
kintel authored
66 ICON = icons/OpenSCAD.icns
0847ea8 Slowly getting the build system under control, added version number i…
kintel authored
67 QMAKE_INFO_PLIST = Info.plist
72513cb Experimental Apple Event hack; you can now do 'tell application "Open…
kintel authored
68 APP_RESOURCES.path = Contents/Resources
69 APP_RESOURCES.files = OpenSCAD.sdef
70 QMAKE_BUNDLE_DATA += APP_RESOURCES
71 LIBS += -framework Carbon
dc1450e Marius Kintel:
clifford authored
72 }
73 else {
0847ea8 Slowly getting the build system under control, added version number i…
kintel authored
74 TARGET = openscad
dc1450e Marius Kintel:
clifford authored
75 }
76
f2926d6 windows msys build script
meta authored
77 win32 {
78 RC_FILE = openscad_win32.rc
79 }
80
ed6094d Clifford Wolf:
clifford authored
81 CONFIG += qt
0847ea8 Slowly getting the build system under control, added version number i…
kintel authored
82 QT += opengl
e80db13 Clifford Wolf:
clifford authored
83
c2f19f4 @donbright more reliable way of ensuring GLU is linked on new DSO linux systems.
donbright authored
84 # see http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
85 # and https://github.com/openscad/openscad/pull/119
86 # ( QT += opengl does not automatically link glu on some DSO systems. )
87 unix:!macx {
9123ad8 @donbright fix build bug on some DSO linux systems
donbright authored
88 QMAKE_LIBS_OPENGL *= -lGLU
89 QMAKE_LIBS_OPENGL *= -lX11
a7ebe94 @donbright fix qmake under mingw-cross-compile
donbright authored
90 }
91
277c762 @donbright changes to enable building on NetBSD
donbright authored
92 netbsd* {
93 LIBS += -L/usr/X11R7/lib
94 QMAKE_LFLAGS += -Wl,-R/usr/X11R7/lib
95 QMAKE_LFLAGS += -Wl,-R/usr/pkg/lib
96 !isEmpty(OPENSCAD_LIBDIR) {
97 QMAKE_LFLAGS += -Wl,-R$$OPENSCAD_LIBDIR/lib
98 }
99 }
100
52655b3 @donbright -fno-strict-aliasing fix for GCC bug & link to wikibooks build instru…
donbright authored
101 # See Dec 2011 OpenSCAD mailing list, re: CGAL/GCC bugs.
102 *g++* {
103 QMAKE_CXXFLAGS *= -fno-strict-aliasing
104 }
105
dec26f8 @donbright initial steps towards support of clang compiler
donbright authored
106 *clang* {
107 # disable enormous amount of warnings about CGAL
108 QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
109 QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-variable
110 QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-function
111 QMAKE_CXXFLAGS_WARN_ON += -Wno-c++11-extensions
b22951a @donbright enable build of glew + opencsg with clang from script
donbright authored
112 # might want to actually turn this on once in a while
113 QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-compare
dec26f8 @donbright initial steps towards support of clang compiler
donbright authored
114 }
115
018211a @donbright check versions of libraries at compile time - warn users. fix FIXME i…
donbright authored
116 CONFIG(skip-version-check) {
117 # force the use of outdated libraries
118 DEFINES += OPENSCAD_SKIP_VERSION_CHECK
119 }
120
0847ea8 Slowly getting the build system under control, added version number i…
kintel authored
121 # Application configuration
c7b0301 Always MDI on Mac, remove redundant debug flags
kintel authored
122 macx:CONFIG += mdi
0847ea8 Slowly getting the build system under control, added version number i…
kintel authored
123 CONFIG += cgal
124 CONFIG += opencsg
94748bb @meta23 update qmake file for visual C++ builds
meta23 authored
125 CONFIG += boost
b74bb39 @kintel generalized MACOSX_DEPLOY_DIR into the platform-independent OPENSCAD_…
kintel authored
126 CONFIG += eigen2
f2d193c Don't enable qcodeedit as default
kintel authored
127
128 #Uncomment the following line to enable QCodeEdit
129 #CONFIG += qcodeedit
0cd451b Clifford Wolf:
clifford authored
130
0847ea8 Slowly getting the build system under control, added version number i…
kintel authored
131 mdi {
132 DEFINES += ENABLE_MDI
dc1450e Marius Kintel:
clifford authored
133 }
0847ea8 Slowly getting the build system under control, added version number i…
kintel authored
134
018211a @donbright check versions of libraries at compile time - warn users. fix FIXME i…
donbright authored
135 DEFINES += USE_PROGRESSWIDGET
8038ee0 Moved progress display to status bar. Disabled by default but can be …
kintel authored
136
b74bb39 @kintel generalized MACOSX_DEPLOY_DIR into the platform-independent OPENSCAD_…
kintel authored
137 include(common.pri)
53f26d0 Clifford Wolf:
clifford authored
138
06420a3 @donbright fix documentation
donbright authored
139 # mingw has to come after other items so OBJECT_DIRS will work properly
cd81cec @donbright put .o files of cross into separate directory. handle git issue.
donbright authored
140 CONFIG(mingw-cross-env) {
141 include(mingw-cross-env.pri)
142 }
143
b74bb39 @kintel generalized MACOSX_DEPLOY_DIR into the platform-independent OPENSCAD_…
kintel authored
144 win32 {
145 FLEXSOURCES = src/lexer.l
146 BISONSOURCES = src/parser.y
147 } else {
148 LEXSOURCES += src/lexer.l
149 YACCSOURCES += src/parser.y
150 }
9b3d816 resource and build system update
kintel authored
151
6aa1a6d @kintel Some more build system cleaning
kintel authored
152 RESOURCES = openscad.qrc
153
9b3d816 resource and build system update
kintel authored
154 FORMS += src/MainWindow.ui \
f577f91 @kintel Better warnings and GL info related to OpenCSG capabilities and OpenG…
kintel authored
155 src/Preferences.ui \
018211a @donbright check versions of libraries at compile time - warn users. fix FIXME i…
donbright authored
156 src/OpenCSGWarningDialog.ui \
157 src/ProgressWidget.ui
9b3d816 resource and build system update
kintel authored
158
018211a @donbright check versions of libraries at compile time - warn users. fix FIXME i…
donbright authored
159 HEADERS += src/version_check.h \
160 src/ProgressWidget.h \
161 src/parsersettings.h \
0ab51d2 @kintel Extracted librarydir initialization to separate function
kintel authored
162 src/renderer.h \
9ed8d9a @kintel Some small refactoring of color handling to support using the color()…
kintel authored
163 src/rendersettings.h \
00d7bb4 @donbright fix broken build on systems that use case sensitive filenames (linux)
donbright authored
164 src/ThrownTogetherRenderer.h \
887f7eb @kintel Refactored GL rendering inspired by Giles' work on RapCad. The ultima…
kintel authored
165 src/CGAL_renderer.h \
2066a44 @GilesBathgate Restored the original OGL_helper.h from CGAL.
GilesBathgate authored
166 src/OGL_helper.h \
9b3d816 resource and build system update
kintel authored
167 src/GLView.h \
168 src/MainWindow.h \
169 src/Preferences.h \
f577f91 @kintel Better warnings and GL info related to OpenCSG capabilities and OpenG…
kintel authored
170 src/OpenCSGWarningDialog.h \
9b3d816 resource and build system update
kintel authored
171 src/builtin.h \
172 src/context.h \
173 src/csgterm.h \
bc3454f @kintel Refactored normalization into a separate class, hard-limited normaliz…
kintel authored
174 src/csgtermnormalizer.h \
9b3d816 resource and build system update
kintel authored
175 src/dxfdata.h \
176 src/dxfdim.h \
177 src/dxftess.h \
178 src/export.h \
179 src/expression.h \
180 src/function.h \
181 src/grid.h \
182 src/highlighter.h \
183 src/module.h \
184 src/node.h \
393c5a1 Committed current version of visitor refactoring
Marius Kintel authored
185 src/csgnode.h \
bf3fb96 @kintel Renamed some files and classnames for clarification
kintel authored
186 src/linearextrudenode.h \
187 src/rotateextrudenode.h \
393c5a1 Committed current version of visitor refactoring
Marius Kintel authored
188 src/projectionnode.h \
1e4e18c @kintel minkowski sums should now work again
kintel authored
189 src/cgaladvnode.h \
393c5a1 Committed current version of visitor refactoring
Marius Kintel authored
190 src/importnode.h \
7468c94 @kintel Mostly completed test implementation of text-based CGALRenderer
kintel authored
191 src/transformnode.h \
ed8a99e @kintel Refactoring: Moved color functionality into separate module and node
kintel authored
192 src/colornode.h \
7468c94 @kintel Mostly completed test implementation of text-based CGALRenderer
kintel authored
193 src/rendernode.h \
9b3d816 resource and build system update
kintel authored
194 src/openscad.h \
821c7df @kintel Extracted handle_dep() to separate source file
kintel authored
195 src/handle_dep.h \
9b3d816 resource and build system update
kintel authored
196 src/polyset.h \
197 src/printutils.h \
c7b9a49 Cleaned up progress handling, implemented cancel function. Needs more…
kintel authored
198 src/value.h \
9f58225 Changes that were supposed to be commited in last commit
kintel authored
199 src/progress.h \
393c5a1 Committed current version of visitor refactoring
Marius Kintel authored
200 src/editor.h \
201 src/visitor.h \
202 src/state.h \
203 src/traverser.h \
204 src/nodecache.h \
3396706 @kintel Added CGALRenderer + some minor fixes
kintel authored
205 src/nodedumper.h \
b9d218e @kintel Initial implementation of ModuleCache and dependency tracking of used…
kintel authored
206 src/ModuleCache.h \
18e97e0 @kintel Fixed bug introduced by the new PolySet cache; string filtering done …
kintel authored
207 src/PolySetCache.h \
6882228 @kintel Merge branch 'master' into visitor
kintel authored
208 src/PolySetEvaluator.h \
209 src/CSGTermEvaluator.h \
d24b3cc @kintel Ported recent changes to master into the visitor branch
kintel authored
210 src/Tree.h \
cf4821c @kintel De-Qt-ified AbstractNode
kintel authored
211 src/mathc99.h \
1f52da3 @kintel helper to include TR1 stuff
kintel authored
212 src/memory.h \
84e98b1 @kintel Cleaned up some unnecessary includes
kintel authored
213 src/linalg.h \
214 src/system-gl.h \
cf4821c @kintel De-Qt-ified AbstractNode
kintel authored
215 src/stl-utils.h
9b3d816 resource and build system update
kintel authored
216
018211a @donbright check versions of libraries at compile time - warn users. fix FIXME i…
donbright authored
217 SOURCES += src/version_check.cc \
218 src/ProgressWidget.cc \
219 src/mathc99.cc \
220 src/linalg.cc \
821c7df @kintel Extracted handle_dep() to separate source file
kintel authored
221 src/handle_dep.cc \
9b3d816 resource and build system update
kintel authored
222 src/value.cc \
223 src/expr.cc \
224 src/func.cc \
225 src/module.cc \
226 src/node.cc \
227 src/context.cc \
228 src/csgterm.cc \
bc3454f @kintel Refactored normalization into a separate class, hard-limited normaliz…
kintel authored
229 src/csgtermnormalizer.cc \
9b3d816 resource and build system update
kintel authored
230 src/polyset.cc \
231 src/csgops.cc \
232 src/transform.cc \
ed8a99e @kintel Refactoring: Moved color functionality into separate module and node
kintel authored
233 src/color.cc \
9b3d816 resource and build system update
kintel authored
234 src/primitives.cc \
fc1914a Clifford Wolf:
clifford authored
235 src/projection.cc \
332e835 Clifford Wolf:
clifford authored
236 src/cgaladv.cc \
9b3d816 resource and build system update
kintel authored
237 src/surface.cc \
238 src/control.cc \
239 src/render.cc \
240 src/dxfdata.cc \
241 src/dxfdim.cc \
bf3fb96 @kintel Renamed some files and classnames for clarification
kintel authored
242 src/linearextrude.cc \
243 src/rotateextrude.cc \
9b3d816 resource and build system update
kintel authored
244 src/printutils.cc \
4ff2d1a @kintel Some light refactoring attempts, didn't get very far..
kintel authored
245 src/progress.cc \
cbabbae @kintel Merge branch 'master' into boost_filesystem
kintel authored
246 src/parsersettings.cc \
4ff2d1a @kintel Some light refactoring attempts, didn't get very far..
kintel authored
247 \
248 src/nodedumper.cc \
249 src/traverser.cc \
250 src/PolySetEvaluator.cc \
b9d218e @kintel Initial implementation of ModuleCache and dependency tracking of used…
kintel authored
251 src/ModuleCache.cc \
4ff2d1a @kintel Some light refactoring attempts, didn't get very far..
kintel authored
252 src/PolySetCache.cc \
253 src/Tree.cc \
254 \
255 src/rendersettings.cc \
256 src/highlighter.cc \
c7b9a49 Cleaned up progress handling, implemented cancel function. Needs more…
kintel authored
257 src/Preferences.cc \
f577f91 @kintel Better warnings and GL info related to OpenCSG capabilities and OpenG…
kintel authored
258 src/OpenCSGWarningDialog.cc \
53a9953 @kintel build fixed after rebase conflict
kintel authored
259 src/editor.cc \
4ff2d1a @kintel Some light refactoring attempts, didn't get very far..
kintel authored
260 src/glview.cc \
261 \
262 src/builtin.cc \
263 src/export.cc \
264 src/import.cc \
265 src/renderer.cc \
266 src/ThrownTogetherRenderer.cc \
267 src/dxftess.cc \
268 src/dxftess-glu.cc \
269 src/dxftess-cgal.cc \
6882228 @kintel Merge branch 'master' into visitor
kintel authored
270 src/CSGTermEvaluator.cc \
4ff2d1a @kintel Some light refactoring attempts, didn't get very far..
kintel authored
271 \
272 src/openscad.cc \
273 src/mainwin.cc
1633fb0 @kintel Refactoring of CGAL functionality to allow for forward-declaration of…
kintel authored
274
6aa1a6d @kintel Some more build system cleaning
kintel authored
275 opencsg {
276 HEADERS += src/OpenCSGRenderer.h
277 SOURCES += src/OpenCSGRenderer.cc
278 }
279
1633fb0 @kintel Refactoring of CGAL functionality to allow for forward-declaration of…
kintel authored
280 cgal {
281 HEADERS += src/cgal.h \
282 src/cgalfwd.h \
27a9904 @kintel Implemented OFF import, refactored PolySet/Polyhedron conversion
kintel authored
283 src/cgalutils.h \
1633fb0 @kintel Refactoring of CGAL functionality to allow for forward-declaration of…
kintel authored
284 src/CGALEvaluator.h \
95949cf @kintel Implemented CGAL caching
kintel authored
285 src/CGALCache.h \
1633fb0 @kintel Refactoring of CGAL functionality to allow for forward-declaration of…
kintel authored
286 src/PolySetCGALEvaluator.h \
781dab0 @kintel Filename case fix
kintel authored
287 src/CGALRenderer.h \
7c48b34 @kintel Perform CGAL evaluation in a separate thread. First steps towards bet…
kintel authored
288 src/CGAL_Nef_polyhedron.h \
289 src/cgalworker.h
1633fb0 @kintel Refactoring of CGAL functionality to allow for forward-declaration of…
kintel authored
290
27a9904 @kintel Implemented OFF import, refactored PolySet/Polyhedron conversion
kintel authored
291 SOURCES += src/cgalutils.cc \
292 src/CGALEvaluator.cc \
1633fb0 @kintel Refactoring of CGAL functionality to allow for forward-declaration of…
kintel authored
293 src/PolySetCGALEvaluator.cc \
95949cf @kintel Implemented CGAL caching
kintel authored
294 src/CGALCache.cc \
781dab0 @kintel Filename case fix
kintel authored
295 src/CGALRenderer.cc \
1633fb0 @kintel Refactoring of CGAL functionality to allow for forward-declaration of…
kintel authored
296 src/CGAL_Nef_polyhedron.cc \
297 src/CGAL_Nef_polyhedron_DxfData.cc \
7c48b34 @kintel Perform CGAL evaluation in a separate thread. First steps towards bet…
kintel authored
298 src/cgaladv_minkowski2.cc \
299 src/cgalworker.cc
1633fb0 @kintel Refactoring of CGAL functionality to allow for forward-declaration of…
kintel authored
300 }
e80db13 Clifford Wolf:
clifford authored
301
72513cb Experimental Apple Event hack; you can now do 'tell application "Open…
kintel authored
302 macx {
303 HEADERS += src/AppleEvents.h \
304 src/EventFilter.h
305 SOURCES += src/AppleEvents.cc
306 }
307
3bc0371 @kintel Applied configurable PREFIX patch from chrysn
kintel authored
308 isEmpty(PREFIX):PREFIX = /usr/local
309
310 target.path = $$PREFIX/bin/
bd89f25 Clifford Wolf:
clifford authored
311 INSTALLS += target
d3a2971 Clifford Wolf:
clifford authored
312
3bc0371 @kintel Applied configurable PREFIX patch from chrysn
kintel authored
313 examples.path = $$PREFIX/share/openscad/examples/
d3a2971 Clifford Wolf:
clifford authored
314 examples.files = examples/*
315 INSTALLS += examples
316
3bc0371 @kintel Applied configurable PREFIX patch from chrysn
kintel authored
317 libraries.path = $$PREFIX/share/openscad/libraries/
d3a2971 Clifford Wolf:
clifford authored
318 libraries.files = libraries/*
319 INSTALLS += libraries
9495f11 @kintel Added Linux desktop icon and .desktop file from chrysn
kintel authored
320
321 applications.path = $$PREFIX/share/applications
322 applications.files = icons/openscad.desktop
323 INSTALLS += applications
324
325 icons.path = $$PREFIX/share/pixmaps
326 icons.files = icons/openscad.png
327 INSTALLS += icons
Something went wrong with that request. Please try again.