2011-12-13 04:22:33 +04:00
|
|
|
# Environment variables which can be set to specify library locations:
|
|
|
|
# MPIRDIR
|
|
|
|
# MPFRDIR
|
|
|
|
# BOOSTDIR
|
|
|
|
# CGALDIR
|
2012-08-19 17:10:33 +04:00
|
|
|
# EIGENDIR
|
2011-12-13 04:22:33 +04:00
|
|
|
# GLEWDIR
|
|
|
|
# OPENCSGDIR
|
2011-12-15 07:59:15 +04:00
|
|
|
# OPENSCAD_LIBRARIES
|
2011-12-13 04:22:33 +04:00
|
|
|
#
|
2013-12-05 10:56:54 +04:00
|
|
|
# Please see the 'Building' sections of the OpenSCAD user manual
|
2011-12-17 23:17:11 +04:00
|
|
|
# for updated tips & workarounds.
|
|
|
|
#
|
|
|
|
# http://en.wikibooks.org/wiki/OpenSCAD_User_Manual
|
2011-11-06 17:28:35 +04:00
|
|
|
|
|
|
|
isEmpty(QT_VERSION) {
|
|
|
|
error("Please use qmake for Qt 4 (probably qmake-qt4)")
|
|
|
|
}
|
|
|
|
|
2011-01-22 00:39:34 +03:00
|
|
|
# Auto-include config_<variant>.pri if the VARIANT variable is give on the
|
|
|
|
# command-line, e.g. qmake VARIANT=mybuild
|
|
|
|
!isEmpty(VARIANT) {
|
|
|
|
message("Variant: $${VARIANT}")
|
|
|
|
exists(config_$${VARIANT}.pri) {
|
|
|
|
message("Including config_$${VARIANT}.pri")
|
|
|
|
include(config_$${VARIANT}.pri)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-10-30 05:15:25 +04:00
|
|
|
# Populate VERSION, VERSION_YEAR, VERSION_MONTH, VERSION_DATE from system date
|
|
|
|
include(version.pri)
|
|
|
|
|
2011-10-16 00:48:41 +04:00
|
|
|
# for debugging link problems (use nmake -f Makefile.Release > log.txt)
|
2013-05-26 07:37:26 +04:00
|
|
|
win* {
|
2011-12-15 07:59:15 +04:00
|
|
|
# QMAKE_LFLAGS += -VERBOSE
|
2011-10-11 06:46:27 +04:00
|
|
|
}
|
2011-11-08 06:37:43 +04:00
|
|
|
debug: DEFINES += DEBUG
|
2011-10-11 06:46:27 +04:00
|
|
|
|
2009-12-13 03:22:07 +03:00
|
|
|
TEMPLATE = app
|
2009-06-20 16:10:55 +04:00
|
|
|
|
2010-01-30 07:27:59 +03:00
|
|
|
INCLUDEPATH += src
|
2013-11-27 06:04:57 +04:00
|
|
|
DEPENDPATH += src
|
2010-01-30 07:27:59 +03:00
|
|
|
|
2011-12-15 07:59:15 +04:00
|
|
|
# Handle custom library location.
|
|
|
|
# Used when manually installing 3rd party libraries
|
|
|
|
OPENSCAD_LIBDIR = $$(OPENSCAD_LIBRARIES)
|
|
|
|
!isEmpty(OPENSCAD_LIBDIR) {
|
2011-12-17 05:33:31 +04:00
|
|
|
QMAKE_INCDIR_QT = $$OPENSCAD_LIBDIR/include $$QMAKE_INCDIR_QT
|
2011-12-17 11:56:24 +04:00
|
|
|
QMAKE_LIBDIR = $$OPENSCAD_LIBDIR/lib $$QMAKE_LIBDIR
|
2011-12-15 07:59:15 +04:00
|
|
|
}
|
2011-12-15 08:17:04 +04:00
|
|
|
else {
|
|
|
|
macx {
|
|
|
|
# Default to MacPorts on Mac OS X
|
|
|
|
QMAKE_INCDIR = /opt/local/include
|
|
|
|
QMAKE_LIBDIR = /opt/local/lib
|
|
|
|
}
|
|
|
|
}
|
2011-12-15 07:59:15 +04:00
|
|
|
|
2013-03-09 22:04:36 +04:00
|
|
|
# add CONFIG+=deploy to the qmake command-line to make a deployment build
|
|
|
|
deploy {
|
|
|
|
message("Building deployment version")
|
|
|
|
DEFINES += OPENSCAD_DEPLOY
|
|
|
|
macx {
|
2014-01-05 03:03:33 +04:00
|
|
|
CONFIG += x86_64
|
|
|
|
CONFIG += sparkle
|
2010-05-07 20:24:26 +04:00
|
|
|
}
|
2013-03-09 22:04:36 +04:00
|
|
|
}
|
2010-05-07 20:24:26 +04:00
|
|
|
|
2013-03-09 22:04:36 +04:00
|
|
|
macx {
|
2009-12-13 03:22:07 +03:00
|
|
|
TARGET = OpenSCAD
|
2010-01-30 07:27:59 +03:00
|
|
|
ICON = icons/OpenSCAD.icns
|
2009-12-13 03:22:07 +03:00
|
|
|
QMAKE_INFO_PLIST = Info.plist
|
2010-02-02 04:01:58 +03:00
|
|
|
APP_RESOURCES.path = Contents/Resources
|
2013-02-12 06:50:53 +04:00
|
|
|
APP_RESOURCES.files = OpenSCAD.sdef dsa_pub.pem icons/SCAD.icns
|
2010-02-02 04:01:58 +03:00
|
|
|
QMAKE_BUNDLE_DATA += APP_RESOURCES
|
2014-01-05 03:03:33 +04:00
|
|
|
LIBS += -framework Cocoa -framework ApplicationServices
|
2010-05-07 20:24:26 +04:00
|
|
|
|
2013-03-11 18:19:27 +04:00
|
|
|
# FIXME: Somehow, setting the deployment target to a lower version causes a
|
|
|
|
# seldom crash in debug mode (e.g. the minkowski2-test):
|
|
|
|
# frame #4: 0x00007fff8b7d5be5 libc++.1.dylib`std::runtime_error::~runtime_error() + 55
|
|
|
|
# frame #5: 0x0000000100150df5 OpenSCAD`CGAL::Uncertain_conversion_exception::~Uncertain_conversion_exception(this=0x0000000105044488) + 21 at Uncertain.h:78
|
|
|
|
# The reason for the crash appears to be linking with libgcc_s,
|
|
|
|
# but it's unclear what's really going on
|
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
|
2009-10-25 23:35:03 +03:00
|
|
|
}
|
|
|
|
else {
|
2009-12-13 03:22:07 +03:00
|
|
|
TARGET = openscad
|
2009-10-25 23:35:03 +03:00
|
|
|
}
|
|
|
|
|
2013-05-26 07:37:26 +04:00
|
|
|
win* {
|
2010-01-16 00:08:18 +03:00
|
|
|
RC_FILE = openscad_win32.rc
|
|
|
|
}
|
|
|
|
|
2009-12-12 00:38:28 +03:00
|
|
|
CONFIG += qt
|
2009-12-13 03:22:07 +03:00
|
|
|
QT += opengl
|
2009-06-20 16:10:55 +04:00
|
|
|
|
2012-06-03 18:16:40 +04:00
|
|
|
# see http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
|
|
|
|
# and https://github.com/openscad/openscad/pull/119
|
|
|
|
# ( QT += opengl does not automatically link glu on some DSO systems. )
|
|
|
|
unix:!macx {
|
2012-07-16 03:13:50 +04:00
|
|
|
QMAKE_LIBS_OPENGL *= -lGLU
|
|
|
|
QMAKE_LIBS_OPENGL *= -lX11
|
2011-12-17 07:03:10 +04:00
|
|
|
}
|
|
|
|
|
2012-01-03 21:21:28 +04:00
|
|
|
netbsd* {
|
2012-12-23 04:00:48 +04:00
|
|
|
QMAKE_LFLAGS += -L/usr/X11R7/lib
|
2012-01-03 21:21:28 +04:00
|
|
|
QMAKE_LFLAGS += -Wl,-R/usr/X11R7/lib
|
|
|
|
QMAKE_LFLAGS += -Wl,-R/usr/pkg/lib
|
2013-06-09 08:49:21 +04:00
|
|
|
!clang: { QMAKE_CXXFLAGS += -std=c++0x }
|
2012-01-03 21:21:28 +04:00
|
|
|
!isEmpty(OPENSCAD_LIBDIR) {
|
2012-12-23 04:00:48 +04:00
|
|
|
QMAKE_CFLAGS = -I$$OPENSCAD_LIBDIR/include $$QMAKE_CFLAGS
|
|
|
|
QMAKE_CXXFLAGS = -I$$OPENSCAD_LIBDIR/include $$QMAKE_CXXFLAGS
|
|
|
|
QMAKE_LFLAGS = -L$$OPENSCAD_LIBDIR/lib $$QMAKE_LFLAGS
|
|
|
|
QMAKE_LFLAGS = -Wl,-R$$OPENSCAD_LIBDIR/lib $$QMAKE_LFLAGS
|
2012-01-03 21:21:28 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-12-30 00:26:59 +04:00
|
|
|
# Prevent LD_LIBRARY_PATH problems when running the openscad binary
|
|
|
|
# on systems where uni-build-dependencies.sh was used.
|
2012-12-30 01:27:44 +04:00
|
|
|
# Will not affect 'normal' builds.
|
2012-12-30 00:26:59 +04:00
|
|
|
!isEmpty(OPENSCAD_LIBDIR) {
|
|
|
|
unix:!macx {
|
|
|
|
QMAKE_LFLAGS = -Wl,-R$$OPENSCAD_LIBDIR/lib $$QMAKE_LFLAGS
|
2012-12-30 01:27:44 +04:00
|
|
|
# need /lib64 beause GLEW installs itself there on 64 bit machines
|
|
|
|
QMAKE_LFLAGS = -Wl,-R$$OPENSCAD_LIBDIR/lib64 $$QMAKE_LFLAGS
|
2012-12-30 00:26:59 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-12-17 23:17:11 +04:00
|
|
|
# See Dec 2011 OpenSCAD mailing list, re: CGAL/GCC bugs.
|
|
|
|
*g++* {
|
|
|
|
QMAKE_CXXFLAGS *= -fno-strict-aliasing
|
|
|
|
}
|
|
|
|
|
2012-07-21 00:23:16 +04:00
|
|
|
*clang* {
|
2013-02-24 04:50:20 +04:00
|
|
|
# http://llvm.org/bugs/show_bug.cgi?id=9182
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-overloaded-virtual
|
|
|
|
# disable enormous amount of warnings about CGAL / boost / etc
|
2012-07-21 00:23:16 +04:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-variable
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-function
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-c++11-extensions
|
2012-07-21 00:51:40 +04:00
|
|
|
# might want to actually turn this on once in a while
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-compare
|
2012-07-21 00:23:16 +04:00
|
|
|
}
|
|
|
|
|
2012-12-30 03:13:16 +04:00
|
|
|
CONFIG(skip-version-check) {
|
2012-12-30 03:14:13 +04:00
|
|
|
# force the use of outdated libraries
|
2012-12-30 03:13:16 +04:00
|
|
|
DEFINES += OPENSCAD_SKIP_VERSION_CHECK
|
|
|
|
}
|
|
|
|
|
2009-12-13 03:22:07 +03:00
|
|
|
# Application configuration
|
2010-02-01 03:26:04 +03:00
|
|
|
macx:CONFIG += mdi
|
2009-12-13 03:22:07 +03:00
|
|
|
CONFIG += cgal
|
|
|
|
CONFIG += opencsg
|
2011-01-22 00:06:50 +03:00
|
|
|
CONFIG += boost
|
2012-08-19 02:14:17 +04:00
|
|
|
CONFIG += eigen
|
2013-12-05 10:56:54 +04:00
|
|
|
CONFIG += glib-2.0
|
2010-04-03 07:05:36 +04:00
|
|
|
|
|
|
|
#Uncomment the following line to enable QCodeEdit
|
|
|
|
#CONFIG += qcodeedit
|
2009-10-28 23:11:56 +03:00
|
|
|
|
2009-12-13 03:22:07 +03:00
|
|
|
mdi {
|
|
|
|
DEFINES += ENABLE_MDI
|
2009-10-25 23:35:03 +03:00
|
|
|
}
|
2009-12-13 03:22:07 +03:00
|
|
|
|
2012-07-13 05:40:07 +04:00
|
|
|
DEFINES += USE_PROGRESSWIDGET
|
2010-02-10 18:13:12 +03:00
|
|
|
|
2011-12-15 07:59:15 +04:00
|
|
|
include(common.pri)
|
2010-01-10 16:20:00 +03:00
|
|
|
|
2012-07-16 00:11:04 +04:00
|
|
|
# mingw has to come after other items so OBJECT_DIRS will work properly
|
2012-07-15 20:47:18 +04:00
|
|
|
CONFIG(mingw-cross-env) {
|
|
|
|
include(mingw-cross-env.pri)
|
|
|
|
}
|
|
|
|
|
2013-05-26 07:37:26 +04:00
|
|
|
win* {
|
2013-05-09 20:48:27 +04:00
|
|
|
FLEXSOURCES = src/lexer.l
|
|
|
|
BISONSOURCES = src/parser.y
|
|
|
|
} else {
|
|
|
|
LEXSOURCES += src/lexer.l
|
|
|
|
YACCSOURCES += src/parser.y
|
|
|
|
}
|
2010-01-30 07:27:59 +03:00
|
|
|
|
2011-12-15 08:17:04 +04:00
|
|
|
RESOURCES = openscad.qrc
|
|
|
|
|
2010-01-30 07:27:59 +03:00
|
|
|
FORMS += src/MainWindow.ui \
|
2011-12-09 06:43:06 +04:00
|
|
|
src/Preferences.ui \
|
2012-07-13 05:40:07 +04:00
|
|
|
src/OpenCSGWarningDialog.ui \
|
2012-08-04 20:49:45 +04:00
|
|
|
src/AboutDialog.ui \
|
2012-07-13 05:40:07 +04:00
|
|
|
src/ProgressWidget.ui
|
2010-01-30 07:27:59 +03:00
|
|
|
|
2013-04-19 02:34:14 +04:00
|
|
|
HEADERS += src/typedefs.h \
|
|
|
|
src/version_check.h \
|
2012-07-13 05:40:07 +04:00
|
|
|
src/ProgressWidget.h \
|
|
|
|
src/parsersettings.h \
|
2011-12-25 01:02:37 +04:00
|
|
|
src/renderer.h \
|
2011-12-12 02:45:14 +04:00
|
|
|
src/rendersettings.h \
|
2011-08-04 02:45:40 +04:00
|
|
|
src/ThrownTogetherRenderer.h \
|
2011-07-30 23:29:40 +04:00
|
|
|
src/CGAL_renderer.h \
|
2011-04-09 08:51:58 +04:00
|
|
|
src/OGL_helper.h \
|
2013-02-21 05:56:30 +04:00
|
|
|
src/QGLView.h \
|
2013-02-24 01:34:06 +04:00
|
|
|
src/GLView.h \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/MainWindow.h \
|
|
|
|
src/Preferences.h \
|
2011-12-09 06:43:06 +04:00
|
|
|
src/OpenCSGWarningDialog.h \
|
2012-08-04 20:49:45 +04:00
|
|
|
src/AboutDialog.h \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/builtin.h \
|
2013-12-28 02:48:15 +04:00
|
|
|
src/calc.h \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/context.h \
|
2013-04-09 08:28:16 +04:00
|
|
|
src/modcontext.h \
|
|
|
|
src/evalcontext.h \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/csgterm.h \
|
2011-12-26 22:15:51 +04:00
|
|
|
src/csgtermnormalizer.h \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/dxfdata.h \
|
|
|
|
src/dxfdim.h \
|
|
|
|
src/export.h \
|
|
|
|
src/expression.h \
|
|
|
|
src/function.h \
|
|
|
|
src/grid.h \
|
|
|
|
src/highlighter.h \
|
2013-04-24 17:17:25 +04:00
|
|
|
src/localscope.h \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/module.h \
|
2014-01-03 02:27:52 +04:00
|
|
|
src/feature.h \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/node.h \
|
2010-03-02 21:22:31 +03:00
|
|
|
src/csgnode.h \
|
2011-09-30 05:11:28 +04:00
|
|
|
src/linearextrudenode.h \
|
|
|
|
src/rotateextrudenode.h \
|
2010-03-02 21:22:31 +03:00
|
|
|
src/projectionnode.h \
|
2011-09-06 16:57:24 +04:00
|
|
|
src/cgaladvnode.h \
|
2010-03-02 21:22:31 +03:00
|
|
|
src/importnode.h \
|
2010-03-28 19:57:39 +04:00
|
|
|
src/transformnode.h \
|
2011-09-03 01:35:10 +04:00
|
|
|
src/colornode.h \
|
2010-03-28 19:57:39 +04:00
|
|
|
src/rendernode.h \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/openscad.h \
|
2011-09-04 02:03:16 +04:00
|
|
|
src/handle_dep.h \
|
2013-03-28 01:50:25 +04:00
|
|
|
src/Geometry.h \
|
|
|
|
src/Polygon2d.h \
|
2013-10-31 08:45:00 +04:00
|
|
|
src/clipper-utils.h \
|
2013-11-25 09:28:26 +04:00
|
|
|
src/polyset-utils.h \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/polyset.h \
|
|
|
|
src/printutils.h \
|
2013-05-09 14:12:58 +04:00
|
|
|
src/fileutils.h \
|
2010-02-09 16:48:09 +03:00
|
|
|
src/value.h \
|
2010-04-03 07:05:14 +04:00
|
|
|
src/progress.h \
|
2010-03-02 21:22:31 +03:00
|
|
|
src/editor.h \
|
|
|
|
src/visitor.h \
|
|
|
|
src/state.h \
|
|
|
|
src/traverser.h \
|
|
|
|
src/nodecache.h \
|
2010-03-19 06:07:38 +03:00
|
|
|
src/nodedumper.h \
|
2012-02-04 04:43:53 +04:00
|
|
|
src/ModuleCache.h \
|
2013-03-28 01:50:25 +04:00
|
|
|
src/GeometryCache.h \
|
2013-10-31 08:45:00 +04:00
|
|
|
src/GeometryEvaluator.h \
|
2011-07-31 03:58:51 +04:00
|
|
|
src/CSGTermEvaluator.h \
|
2011-04-12 22:35:44 +04:00
|
|
|
src/Tree.h \
|
2011-08-04 06:58:17 +04:00
|
|
|
src/mathc99.h \
|
2011-09-11 13:10:48 +04:00
|
|
|
src/memory.h \
|
2011-10-01 03:36:30 +04:00
|
|
|
src/linalg.h \
|
2013-02-27 10:37:37 +04:00
|
|
|
src/Camera.h \
|
2011-10-01 03:36:30 +04:00
|
|
|
src/system-gl.h \
|
2012-10-28 17:56:23 +04:00
|
|
|
src/stl-utils.h \
|
2013-03-12 09:14:58 +04:00
|
|
|
src/boost-utils.h \
|
2013-01-24 07:01:34 +04:00
|
|
|
src/svg.h \
|
|
|
|
\
|
|
|
|
src/lodepng.h \
|
|
|
|
src/OffscreenView.h \
|
2013-01-27 00:19:42 +04:00
|
|
|
src/OffscreenContext.h \
|
|
|
|
src/OffscreenContextAll.hpp \
|
2013-01-24 07:01:34 +04:00
|
|
|
src/fbo.h \
|
2013-01-24 07:10:24 +04:00
|
|
|
src/imageutils.h \
|
2013-01-24 07:35:04 +04:00
|
|
|
src/system-gl.h \
|
2013-02-24 07:55:16 +04:00
|
|
|
src/CsgInfo.h \
|
2013-02-24 07:54:53 +04:00
|
|
|
\
|
2013-02-17 07:48:30 +04:00
|
|
|
src/AutoUpdater.h
|
2010-01-30 07:27:59 +03:00
|
|
|
|
2012-07-13 05:40:07 +04:00
|
|
|
SOURCES += src/version_check.cc \
|
|
|
|
src/ProgressWidget.cc \
|
|
|
|
src/mathc99.cc \
|
|
|
|
src/linalg.cc \
|
2011-09-04 02:03:16 +04:00
|
|
|
src/handle_dep.cc \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/value.cc \
|
|
|
|
src/expr.cc \
|
|
|
|
src/func.cc \
|
2013-04-24 17:17:25 +04:00
|
|
|
src/localscope.cc \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/module.cc \
|
2014-01-03 02:27:52 +04:00
|
|
|
src/feature.cc \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/node.cc \
|
|
|
|
src/context.cc \
|
2013-04-09 08:28:16 +04:00
|
|
|
src/modcontext.cc \
|
|
|
|
src/evalcontext.cc \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/csgterm.cc \
|
2011-12-26 22:15:51 +04:00
|
|
|
src/csgtermnormalizer.cc \
|
2013-03-28 01:50:25 +04:00
|
|
|
src/Geometry.cc \
|
|
|
|
src/Polygon2d.cc \
|
2013-10-31 08:45:00 +04:00
|
|
|
src/clipper-utils.cc \
|
2013-11-25 09:28:26 +04:00
|
|
|
src/polyset-utils.cc \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/polyset.cc \
|
|
|
|
src/csgops.cc \
|
|
|
|
src/transform.cc \
|
2011-09-03 01:35:10 +04:00
|
|
|
src/color.cc \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/primitives.cc \
|
2010-01-30 10:41:55 +03:00
|
|
|
src/projection.cc \
|
2010-02-20 17:37:20 +03:00
|
|
|
src/cgaladv.cc \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/surface.cc \
|
|
|
|
src/control.cc \
|
|
|
|
src/render.cc \
|
|
|
|
src/dxfdata.cc \
|
|
|
|
src/dxfdim.cc \
|
2011-09-30 05:11:28 +04:00
|
|
|
src/linearextrude.cc \
|
|
|
|
src/rotateextrude.cc \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/printutils.cc \
|
2013-05-09 14:12:58 +04:00
|
|
|
src/fileutils.cc \
|
2011-12-26 19:34:47 +04:00
|
|
|
src/progress.cc \
|
2011-12-26 19:37:00 +04:00
|
|
|
src/parsersettings.cc \
|
2012-08-22 08:22:35 +04:00
|
|
|
src/stl-utils.cc \
|
2013-03-12 09:14:58 +04:00
|
|
|
src/boost-utils.cc \
|
2013-05-22 02:02:16 +04:00
|
|
|
src/PlatformUtils.cc \
|
2011-12-26 19:34:47 +04:00
|
|
|
\
|
|
|
|
src/nodedumper.cc \
|
|
|
|
src/traverser.cc \
|
2013-10-31 08:45:00 +04:00
|
|
|
src/GeometryEvaluator.cc \
|
2012-02-04 04:43:53 +04:00
|
|
|
src/ModuleCache.cc \
|
2013-03-28 01:50:25 +04:00
|
|
|
src/GeometryCache.cc \
|
2011-12-26 19:34:47 +04:00
|
|
|
src/Tree.cc \
|
|
|
|
\
|
|
|
|
src/rendersettings.cc \
|
|
|
|
src/highlighter.cc \
|
2010-02-09 16:48:09 +03:00
|
|
|
src/Preferences.cc \
|
2011-12-09 06:43:06 +04:00
|
|
|
src/OpenCSGWarningDialog.cc \
|
2010-04-03 07:17:54 +04:00
|
|
|
src/editor.cc \
|
2013-02-24 01:34:06 +04:00
|
|
|
src/GLView.cc \
|
2013-03-09 06:06:42 +04:00
|
|
|
src/QGLView.cc \
|
2013-02-17 07:48:30 +04:00
|
|
|
src/AutoUpdater.cc \
|
2011-12-26 19:34:47 +04:00
|
|
|
\
|
|
|
|
src/builtin.cc \
|
2013-12-28 02:48:15 +04:00
|
|
|
src/calc.cc \
|
2011-12-26 19:34:47 +04:00
|
|
|
src/export.cc \
|
2013-01-24 07:35:04 +04:00
|
|
|
src/export_png.cc \
|
2011-12-26 19:34:47 +04:00
|
|
|
src/import.cc \
|
|
|
|
src/renderer.cc \
|
|
|
|
src/ThrownTogetherRenderer.cc \
|
2011-07-31 03:58:51 +04:00
|
|
|
src/CSGTermEvaluator.cc \
|
2012-10-28 17:56:23 +04:00
|
|
|
src/svg.cc \
|
2013-01-24 07:01:34 +04:00
|
|
|
src/OffscreenView.cc \
|
|
|
|
src/fbo.cc \
|
2013-01-24 07:10:24 +04:00
|
|
|
src/system-gl.cc \
|
|
|
|
src/imageutils.cc \
|
2013-01-24 07:13:45 +04:00
|
|
|
src/lodepng.cpp \
|
2011-12-26 19:34:47 +04:00
|
|
|
\
|
|
|
|
src/openscad.cc \
|
|
|
|
src/mainwin.cc
|
2011-09-01 06:09:06 +04:00
|
|
|
|
2013-11-25 09:28:26 +04:00
|
|
|
# ClipperLib
|
|
|
|
SOURCES += src/polyclipping/clipper.cpp
|
|
|
|
HEADERS += src/polyclipping/clipper.hpp
|
|
|
|
|
2013-01-24 07:01:34 +04:00
|
|
|
unix:!macx {
|
|
|
|
SOURCES += src/imageutils-lodepng.cc
|
2013-01-26 04:36:55 +04:00
|
|
|
SOURCES += src/OffscreenContextGLX.cc
|
2013-01-24 07:01:34 +04:00
|
|
|
}
|
|
|
|
macx {
|
|
|
|
SOURCES += src/imageutils-macosx.cc
|
2013-01-28 23:56:17 +04:00
|
|
|
OBJECTIVE_SOURCES += src/OffscreenContextCGL.mm
|
2013-01-24 07:01:34 +04:00
|
|
|
}
|
2013-05-26 07:37:26 +04:00
|
|
|
win* {
|
2013-01-24 07:01:34 +04:00
|
|
|
SOURCES += src/imageutils-lodepng.cc
|
2013-01-26 04:36:55 +04:00
|
|
|
SOURCES += src/OffscreenContextWGL.cc
|
2013-01-24 07:01:34 +04:00
|
|
|
}
|
|
|
|
|
2011-12-15 08:17:04 +04:00
|
|
|
opencsg {
|
|
|
|
HEADERS += src/OpenCSGRenderer.h
|
|
|
|
SOURCES += src/OpenCSGRenderer.cc
|
|
|
|
}
|
|
|
|
|
2011-09-01 06:09:06 +04:00
|
|
|
cgal {
|
|
|
|
HEADERS += src/cgal.h \
|
|
|
|
src/cgalfwd.h \
|
2011-09-08 00:04:59 +04:00
|
|
|
src/cgalutils.h \
|
2013-12-28 06:12:53 +04:00
|
|
|
src/Reindexer.h \
|
2011-09-11 12:51:55 +04:00
|
|
|
src/CGALCache.h \
|
2011-09-04 03:57:26 +04:00
|
|
|
src/CGALRenderer.h \
|
2011-12-26 02:00:30 +04:00
|
|
|
src/CGAL_Nef_polyhedron.h \
|
2013-11-27 06:04:57 +04:00
|
|
|
src/CGAL_Nef3_workaround.h \
|
2013-10-31 08:45:00 +04:00
|
|
|
src/cgalworker.h \
|
|
|
|
src/Polygon2d-CGAL.h
|
2011-09-01 06:09:06 +04:00
|
|
|
|
2011-09-08 00:04:59 +04:00
|
|
|
SOURCES += src/cgalutils.cc \
|
2011-09-11 12:51:55 +04:00
|
|
|
src/CGALCache.cc \
|
2011-09-04 03:57:26 +04:00
|
|
|
src/CGALRenderer.cc \
|
2011-09-01 06:09:06 +04:00
|
|
|
src/CGAL_Nef_polyhedron.cc \
|
|
|
|
src/CGAL_Nef_polyhedron_DxfData.cc \
|
2013-10-31 08:45:00 +04:00
|
|
|
src/cgalworker.cc \
|
|
|
|
src/Polygon2d-CGAL.cc
|
2011-09-01 06:09:06 +04:00
|
|
|
}
|
2009-06-20 16:10:55 +04:00
|
|
|
|
2010-02-02 04:01:58 +03:00
|
|
|
macx {
|
|
|
|
HEADERS += src/AppleEvents.h \
|
2013-02-05 09:36:25 +04:00
|
|
|
src/EventFilter.h \
|
2013-02-08 00:01:31 +04:00
|
|
|
src/CocoaUtils.h
|
2010-02-02 04:01:58 +03:00
|
|
|
SOURCES += src/AppleEvents.cc
|
2013-05-22 01:45:24 +04:00
|
|
|
OBJECTIVE_SOURCES += src/CocoaUtils.mm \
|
2013-05-22 02:02:16 +04:00
|
|
|
src/PlatformUtils-mac.mm
|
2013-05-22 01:45:24 +04:00
|
|
|
}
|
|
|
|
unix:!macx {
|
|
|
|
SOURCES += src/PlatformUtils-posix.cc
|
|
|
|
}
|
2013-05-26 07:37:26 +04:00
|
|
|
win* {
|
|
|
|
SOURCES += src/PlatformUtils-win.cc
|
2010-02-02 04:01:58 +03:00
|
|
|
}
|
|
|
|
|
2011-11-03 18:13:33 +04:00
|
|
|
isEmpty(PREFIX):PREFIX = /usr/local
|
|
|
|
|
|
|
|
target.path = $$PREFIX/bin/
|
2009-07-20 21:45:39 +04:00
|
|
|
INSTALLS += target
|
2010-02-27 13:38:13 +03:00
|
|
|
|
2011-11-03 18:13:33 +04:00
|
|
|
examples.path = $$PREFIX/share/openscad/examples/
|
2010-02-27 13:38:13 +03:00
|
|
|
examples.files = examples/*
|
|
|
|
INSTALLS += examples
|
|
|
|
|
2011-11-03 18:13:33 +04:00
|
|
|
libraries.path = $$PREFIX/share/openscad/libraries/
|
2010-02-27 13:38:13 +03:00
|
|
|
libraries.files = libraries/*
|
|
|
|
INSTALLS += libraries
|
2012-01-05 03:00:29 +04:00
|
|
|
|
|
|
|
applications.path = $$PREFIX/share/applications
|
|
|
|
applications.files = icons/openscad.desktop
|
|
|
|
INSTALLS += applications
|
|
|
|
|
2013-12-24 05:11:20 +04:00
|
|
|
appdata.path = $$PREFIX/share/appdata
|
|
|
|
appdata.files = openscad.appdata.xml
|
|
|
|
INSTALLS += appdata
|
|
|
|
|
2012-01-05 03:00:29 +04:00
|
|
|
icons.path = $$PREFIX/share/pixmaps
|
|
|
|
icons.files = icons/openscad.png
|
|
|
|
INSTALLS += icons
|
2013-01-21 17:25:14 +04:00
|
|
|
|
2013-12-24 05:11:20 +04:00
|
|
|
man.path = $$PREFIX/share/man/man1
|
|
|
|
man.files = doc/openscad.1
|
|
|
|
INSTALLS += man
|
|
|
|
|
2013-01-21 17:25:14 +04:00
|
|
|
CONFIG(winconsole) {
|
|
|
|
include(winconsole.pri)
|
|
|
|
}
|
|
|
|
|