2011-12-13 04:22:33 +04:00
|
|
|
# Environment variables which can be set to specify library locations:
|
2014-06-17 20:15:04 +04:00
|
|
|
# MPIRDIR
|
|
|
|
# MPFRDIR
|
|
|
|
# BOOSTDIR
|
|
|
|
# CGALDIR
|
|
|
|
# EIGENDIR
|
|
|
|
# GLEWDIR
|
|
|
|
# OPENCSGDIR
|
|
|
|
# OPENSCAD_LIBRARIES
|
2011-12-13 04:22:33 +04:00
|
|
|
#
|
2014-10-18 21:32:54 +04:00
|
|
|
# qmake Variables to define the installation:
|
|
|
|
#
|
|
|
|
# PREFIX defines the base installation folder
|
2014-10-18 21:34:08 +04:00
|
|
|
#
|
2014-12-06 21:23:19 +03:00
|
|
|
# SUFFIX defines an optional suffix for the binary and the
|
|
|
|
# resource folder. E.g. using SUFFIX=-nightly will name the
|
|
|
|
# resulting binary openscad-nightly.
|
|
|
|
#
|
2014-10-18 21:32: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
|
|
|
|
2014-03-02 00:11:52 +04:00
|
|
|
!experimental {
|
|
|
|
message("If you're building a development binary, consider adding CONFIG+=experimental")
|
|
|
|
}
|
|
|
|
|
2011-11-06 17:28:35 +04:00
|
|
|
isEmpty(QT_VERSION) {
|
2014-06-10 08:14:45 +04:00
|
|
|
error("Please use qmake for Qt 4 or Qt 5 (probably qmake-qt4)")
|
2011-11-06 17:28:35 +04:00
|
|
|
}
|
|
|
|
|
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-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
|
2014-06-10 07:36:24 +04:00
|
|
|
isEmpty(OPENSCAD_LIBDIR) OPENSCAD_LIBDIR = $$(OPENSCAD_LIBRARIES)
|
2014-06-10 08:14:45 +04:00
|
|
|
macx:isEmpty(OPENSCAD_LIBDIR) {
|
|
|
|
exists(/opt/local):exists(/usr/local/Cellar) {
|
|
|
|
error("It seems you might have libraries in both /opt/local and /usr/local. Please specify which one to use with qmake OPENSCAD_LIBDIR=<prefix>")
|
|
|
|
} else {
|
|
|
|
exists(/opt/local) {
|
|
|
|
#Default to MacPorts on Mac OS X
|
|
|
|
message("Automatically searching for libraries in /opt/local. To override, use qmake OPENSCAD_LIBDIR=<prefix>")
|
|
|
|
OPENSCAD_LIBDIR = /opt/local
|
|
|
|
} else:exists(/usr/local/Cellar) {
|
|
|
|
message("Automatically searching for libraries in /usr/local. To override, use qmake OPENSCAD_LIBDIR=<prefix>")
|
|
|
|
OPENSCAD_LIBDIR = /usr/local
|
2014-06-10 07:36:24 +04:00
|
|
|
}
|
2011-12-15 08:17:04 +04:00
|
|
|
}
|
|
|
|
}
|
2014-06-10 08:14:45 +04:00
|
|
|
!isEmpty(OPENSCAD_LIBDIR) {
|
|
|
|
QMAKE_INCDIR = $$OPENSCAD_LIBDIR/include
|
|
|
|
QMAKE_LIBDIR = $$OPENSCAD_LIBDIR/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
|
2014-06-10 08:14:45 +04:00
|
|
|
macx: CONFIG += sparkle
|
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
|
2014-06-10 08:14:45 +04:00
|
|
|
}
|
|
|
|
else {
|
2014-12-06 21:23:19 +03:00
|
|
|
TARGET = openscad$${SUFFIX}
|
2014-06-10 08:14:45 +04:00
|
|
|
}
|
2014-12-06 21:23:19 +03:00
|
|
|
FULLNAME = openscad$${SUFFIX}
|
|
|
|
!isEmpty(SUFFIX): DEFINES += INSTALL_SUFFIX="\"\\\"$${SUFFIX}\\\"\""
|
2014-06-10 08:14:45 +04:00
|
|
|
|
|
|
|
macx {
|
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
|
2014-06-10 07:36:24 +04:00
|
|
|
|
2014-06-10 08:14:45 +04:00
|
|
|
# Mac needs special care to link against the correct C++ library
|
|
|
|
# We attempt to auto-detect it by inspecting Boost
|
2014-06-10 07:36:24 +04:00
|
|
|
dirs = $${BOOSTDIR} $${QMAKE_LIBDIR}
|
|
|
|
for(dir, dirs) {
|
|
|
|
system(grep -q __112basic_string $${dir}/libboost_thread* >& /dev/null) {
|
|
|
|
message("Detected libc++-linked boost in $${dir}")
|
|
|
|
CONFIG += libc++
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libc++ {
|
|
|
|
QMAKE_CXXFLAGS += -stdlib=libc++
|
|
|
|
QMAKE_LFLAGS += -stdlib=libc++
|
|
|
|
QMAKE_OBJECTIVE_CFLAGS += -stdlib=libc++
|
2014-06-10 08:14:45 +04:00
|
|
|
# libc++ on requires Mac OS X 10.7+
|
2014-06-10 07:36:24 +04:00
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
|
|
|
}
|
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
|
2014-12-20 23:46:30 +03:00
|
|
|
QMAKE_CXXFLAGS += -DNOGDI
|
2010-01-16 00:08:18 +03:00
|
|
|
}
|
|
|
|
|
2014-12-21 01:09:03 +03:00
|
|
|
mingw* {
|
|
|
|
# needed to prevent compilation error on MSYS2:
|
|
|
|
# as.exe: objects/cgalutils.o: too many sections (76541)
|
2014-12-21 01:28:23 +03:00
|
|
|
# using -Wa,-mbig-obj did not help
|
2014-12-21 01:09:03 +03:00
|
|
|
debug: QMAKE_CXXFLAGS += -O1
|
|
|
|
}
|
|
|
|
|
2009-12-12 00:38:28 +03:00
|
|
|
CONFIG += qt
|
2014-12-21 05:46:13 +03:00
|
|
|
QT += opengl concurrent
|
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 }
|
2014-06-10 08:14:45 +04:00
|
|
|
# FIXME: Can the lines below be removed in favour of the OPENSCAD_LIBDIR handling above?
|
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
|
2014-06-17 20:15:04 +04:00
|
|
|
# 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
|
2014-06-17 20:15:04 +04:00
|
|
|
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
|
2014-04-24 08:01:42 +04:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-local-typedefs # ignored before 4.8
|
2011-12-17 23:17:11 +04:00
|
|
|
}
|
|
|
|
|
2012-07-21 00:23:16 +04:00
|
|
|
*clang* {
|
2014-06-10 08:14:45 +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
|
|
|
|
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
|
2014-10-18 21:13:57 +04:00
|
|
|
# gettext
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-format-security
|
2014-06-10 08:14:45 +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
|
2014-01-19 06:05:54 +04:00
|
|
|
CONFIG += harfbuzz
|
2014-01-19 06:05:00 +04:00
|
|
|
CONFIG += freetype
|
2014-01-19 06:05:54 +04:00
|
|
|
CONFIG += fontconfig
|
2014-10-18 21:29:29 +04:00
|
|
|
CONFIG += gettext
|
2010-04-03 07:05:36 +04:00
|
|
|
|
2014-06-13 22:41:40 +04:00
|
|
|
#Uncomment the following line to enable the QScintilla editor
|
|
|
|
CONFIG += scintilla
|
2009-10-28 23:11:56 +03:00
|
|
|
|
2014-02-24 00:47:26 +04:00
|
|
|
# Make experimental features available
|
|
|
|
experimental {
|
|
|
|
DEFINES += ENABLE_EXPERIMENTAL
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
2014-10-19 01:00:06 +04:00
|
|
|
# Qt5 removed access to the QMAKE_UIC variable, the following
|
|
|
|
# way works for both Qt4 and Qt5
|
|
|
|
load(uic)
|
|
|
|
uic.commands += -tr _
|
2014-10-18 21:13:57 +04: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 \
|
2013-11-21 04:01:42 +04:00
|
|
|
src/FontListDialog.ui \
|
2014-08-01 21:02:55 +04:00
|
|
|
src/ProgressWidget.ui \
|
2014-09-15 21:58:55 +04:00
|
|
|
src/launchingscreen.ui \
|
|
|
|
src/LibraryInfoDialog.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 \
|
2014-09-25 00:18:14 +04:00
|
|
|
src/settings.h \
|
2011-12-12 02:45:14 +04:00
|
|
|
src/rendersettings.h \
|
2014-08-15 01:16:24 +04:00
|
|
|
src/colormap.h \
|
2011-08-04 02:45:40 +04:00
|
|
|
src/ThrownTogetherRenderer.h \
|
2014-08-15 21:04:34 +04:00
|
|
|
src/CGAL_OGL_Polyhedron.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 \
|
2013-11-21 04:01:42 +04:00
|
|
|
src/FontListDialog.h \
|
2014-12-23 05:07:27 +03:00
|
|
|
src/FontListTableView.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 \
|
2014-11-25 01:36:29 +03:00
|
|
|
src/stackcheck.h \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/function.h \
|
2014-11-25 01:30:05 +03:00
|
|
|
src/exceptions.h \
|
2010-01-30 07:27:59 +03:00
|
|
|
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 \
|
2014-02-24 00:51:11 +04:00
|
|
|
src/offsetnode.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 \
|
2014-01-19 06:05:00 +04:00
|
|
|
src/textnode.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 \
|
2014-06-17 20:15:04 +04:00
|
|
|
src/DrawingCallback.h \
|
|
|
|
src/FreetypeRenderer.h \
|
|
|
|
src/FontCache.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 \
|
2014-07-22 21:32:44 +04:00
|
|
|
src/LibraryInfo.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
|
|
|
\
|
2014-10-20 02:21:06 +04:00
|
|
|
src/Dock.h \
|
2014-06-07 19:42:41 +04:00
|
|
|
src/AutoUpdater.h \
|
2014-09-13 23:19:44 +04:00
|
|
|
src/launchingscreen.h \
|
2014-09-14 21:51:40 +04:00
|
|
|
src/legacyeditor.h \
|
2014-09-15 21:58:55 +04:00
|
|
|
src/LibraryInfoDialog.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 \
|
2014-06-20 01:47:38 +04:00
|
|
|
src/Camera.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 \
|
2014-11-25 01:36:29 +03:00
|
|
|
src/stackcheck.cc \
|
2010-01-30 07:27:59 +03:00
|
|
|
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 \
|
2014-01-19 06:05:00 +04:00
|
|
|
src/text.cc \
|
2010-01-30 07:27:59 +03:00
|
|
|
src/dxfdata.cc \
|
|
|
|
src/dxfdim.cc \
|
2014-02-24 00:51:11 +04:00
|
|
|
src/offset.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 \
|
2014-07-22 21:32:44 +04:00
|
|
|
src/LibraryInfo.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 \
|
2014-09-14 22:00:26 +04:00
|
|
|
src/DrawingCallback.cc \
|
|
|
|
src/FreetypeRenderer.cc \
|
|
|
|
src/FontCache.cc \
|
2011-12-26 19:34:47 +04:00
|
|
|
\
|
2014-09-25 00:18:14 +04:00
|
|
|
src/settings.cc \
|
2011-12-26 19:34:47 +04:00
|
|
|
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 \
|
2014-08-23 09:18:51 +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 \
|
2014-08-15 01:16:24 +04:00
|
|
|
src/colormap.cc \
|
2011-12-26 19:34:47 +04:00
|
|
|
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 \
|
2013-11-21 04:01:42 +04:00
|
|
|
src/mainwin.cc \
|
2014-09-14 04:08:57 +04:00
|
|
|
src/UIUtils.cc \
|
2014-10-20 02:21:06 +04:00
|
|
|
src/Dock.cc \
|
2014-07-17 23:28:23 +04:00
|
|
|
src/FontListDialog.cc \
|
2014-12-23 05:07:27 +03:00
|
|
|
src/FontListTableView.cc \
|
2014-10-10 01:21:15 +04:00
|
|
|
src/launchingscreen.cc \
|
2014-09-14 21:51:40 +04:00
|
|
|
src/legacyeditor.cc \
|
2014-09-15 21:58:55 +04:00
|
|
|
src/LibraryInfoDialog.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 \
|
2014-08-20 06:02:08 +04:00
|
|
|
src/cgalutils-tess.cc \
|
2014-12-31 10:52:56 +03:00
|
|
|
src/cgalutils-polyhedron.cc \
|
2014-12-01 08:54:01 +03:00
|
|
|
src/cgalutils-tess-old.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
|
|
|
|
2014-12-05 01:20:25 +03:00
|
|
|
# Run translation update scripts as last step after linking the target
|
|
|
|
QMAKE_POST_LINK += $$PWD/scripts/translation-make.sh
|
|
|
|
|
2014-01-09 22:34:42 +04:00
|
|
|
# Create install targets for the languages defined in LINGUAS
|
2014-11-13 02:20:01 +03:00
|
|
|
LINGUAS = $$cat(locale/LINGUAS)
|
2014-12-06 21:23:19 +03:00
|
|
|
LOCALE_PREFIX = "$$PREFIX/share/$${FULLNAME}/locale"
|
2014-10-18 21:32:54 +04:00
|
|
|
for(language, LINGUAS) {
|
2014-12-07 07:46:07 +03:00
|
|
|
catalogdir = locale/$$language/LC_MESSAGES
|
2014-12-07 05:39:01 +03:00
|
|
|
exists(locale/$${language}.po) {
|
2014-12-07 07:46:07 +03:00
|
|
|
# Use .extra and copy manually as the source path might not exist,
|
|
|
|
# e.g. on a clean checkout. In that case qmake would not create
|
|
|
|
# the needed targets in the generated Makefile.
|
2014-10-18 21:32:54 +04:00
|
|
|
translation_path = translation_$${language}.path
|
2014-12-07 07:46:07 +03:00
|
|
|
translation_extra = translation_$${language}.extra
|
2014-01-09 22:34:42 +04:00
|
|
|
translation_depends = translation_$${language}.depends
|
2014-10-18 21:32:54 +04:00
|
|
|
$$translation_path = $$LOCALE_PREFIX/$$language/LC_MESSAGES/
|
2014-12-07 07:46:07 +03:00
|
|
|
$$translation_extra = cp -f $${catalogdir}/openscad.mo \"\$(INSTALL_ROOT)$$LOCALE_PREFIX/$$language/LC_MESSAGES/openscad.mo\"
|
2014-11-13 02:20:01 +03:00
|
|
|
$$translation_depends = locale/$${language}.po
|
2014-10-18 21:32:54 +04:00
|
|
|
INSTALLS += translation_$$language
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-06 21:23:19 +03:00
|
|
|
examples.path = "$$PREFIX/share/$${FULLNAME}/examples/"
|
2010-02-27 13:38:13 +03:00
|
|
|
examples.files = examples/*
|
|
|
|
INSTALLS += examples
|
|
|
|
|
2014-12-06 21:23:19 +03:00
|
|
|
libraries.path = "$$PREFIX/share/$${FULLNAME}/libraries/"
|
2010-02-27 13:38:13 +03:00
|
|
|
libraries.files = libraries/*
|
|
|
|
INSTALLS += libraries
|
2012-01-05 03:00:29 +04:00
|
|
|
|
2014-12-06 21:23:19 +03:00
|
|
|
fonts.path = "$$PREFIX/share/$${FULLNAME}/fonts/"
|
2014-09-21 23:38:40 +04:00
|
|
|
fonts.files = fonts/*
|
|
|
|
INSTALLS += fonts
|
|
|
|
|
2014-12-06 21:23:19 +03:00
|
|
|
colorschemes.path = "$$PREFIX/share/$${FULLNAME}/color-schemes/"
|
2014-11-02 00:20:32 +03:00
|
|
|
colorschemes.files = color-schemes/*
|
|
|
|
INSTALLS += colorschemes
|
|
|
|
|
2012-01-05 03:00:29 +04:00
|
|
|
applications.path = $$PREFIX/share/applications
|
2014-12-07 05:38:02 +03:00
|
|
|
applications.extra = cat icons/openscad.desktop | sed -e \"'s/^Icon=openscad/Icon=$${FULLNAME}/; s/^Exec=openscad/Exec=$${FULLNAME}/'\" > \"\$(INSTALL_ROOT)$${applications.path}/$${FULLNAME}.desktop\"
|
2012-01-05 03:00:29 +04:00
|
|
|
INSTALLS += applications
|
|
|
|
|
2014-04-03 03:16:31 +04:00
|
|
|
mimexml.path = $$PREFIX/share/mime/packages
|
2014-12-06 23:31:37 +03:00
|
|
|
mimexml.extra = cp -f icons/openscad.xml \"\$(INSTALL_ROOT)$${mimexml.path}/$${FULLNAME}.xml\"
|
2014-04-03 03:16:31 +04:00
|
|
|
INSTALLS += mimexml
|
|
|
|
|
2013-12-24 05:11:20 +04:00
|
|
|
appdata.path = $$PREFIX/share/appdata
|
2014-12-06 23:31:37 +03:00
|
|
|
appdata.extra = cp -f openscad.appdata.xml \"\$(INSTALL_ROOT)$${appdata.path}/$${FULLNAME}.appdata.xml\"
|
2013-12-24 05:11:20 +04:00
|
|
|
INSTALLS += appdata
|
|
|
|
|
2012-01-05 03:00:29 +04:00
|
|
|
icons.path = $$PREFIX/share/pixmaps
|
2014-12-06 23:31:37 +03:00
|
|
|
icons.extra = cp -f icons/openscad.png \"\$(INSTALL_ROOT)$${icons.path}/$${FULLNAME}.png\"
|
2012-01-05 03:00:29 +04:00
|
|
|
INSTALLS += icons
|
2013-01-21 17:25:14 +04:00
|
|
|
|
2013-12-24 05:11:20 +04:00
|
|
|
man.path = $$PREFIX/share/man/man1
|
2014-12-06 23:31:37 +03:00
|
|
|
man.extra = cp -f doc/openscad.1 \"\$(INSTALL_ROOT)$${man.path}/$${FULLNAME}.1\"
|
2013-12-24 05:11:20 +04:00
|
|
|
INSTALLS += man
|