2009-12-14 00:21:23 +03:00
|
|
|
isEmpty(VERSION) VERSION = $$system(date "+%Y.%m.%d")
|
2009-12-13 03:22:07 +03:00
|
|
|
DEFINES += OPENSCAD_VERSION=$$VERSION
|
|
|
|
TEMPLATE = app
|
2010-01-15 04:00:41 +03:00
|
|
|
RESOURCES = openscad.qrc
|
2009-06-20 16:10:55 +04:00
|
|
|
|
2010-01-30 07:27:59 +03:00
|
|
|
OBJECTS_DIR = objects
|
|
|
|
MOC_DIR = objects
|
|
|
|
UI_DIR = objects
|
|
|
|
RCC_DIR = objects
|
|
|
|
INCLUDEPATH += src
|
|
|
|
|
2009-10-25 23:35:03 +03: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
|
|
|
|
APP_RESOURCES.files = OpenSCAD.sdef
|
|
|
|
QMAKE_BUNDLE_DATA += APP_RESOURCES
|
2009-12-13 03:22:07 +03:00
|
|
|
#CONFIG += x86 ppc
|
2010-02-02 04:01:58 +03:00
|
|
|
LIBS += -framework Carbon
|
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
|
|
|
}
|
|
|
|
|
2010-01-16 00:08:18 +03:00
|
|
|
win32 {
|
|
|
|
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
|
|
|
|
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
|
2010-02-10 19:43:43 +03:00
|
|
|
macx:CONFIG += progresswidget
|
2009-10-28 23:11:56 +03:00
|
|
|
|
2009-12-13 03:22:07 +03:00
|
|
|
mdi {
|
|
|
|
# MDI needs an OpenCSG library that is compiled with OpenCSG-Reset-Hack.patch applied
|
|
|
|
DEFINES += ENABLE_MDI
|
2009-10-25 23:35:03 +03:00
|
|
|
}
|
2009-12-13 03:22:07 +03:00
|
|
|
|
2010-02-10 18:13:12 +03:00
|
|
|
progresswidget {
|
|
|
|
DEFINES += USE_PROGRESSWIDGET
|
|
|
|
FORMS += src/ProgressWidget.ui
|
|
|
|
HEADERS += src/ProgressWidget.h
|
|
|
|
SOURCES += src/ProgressWidget.cc
|
|
|
|
}
|
|
|
|
|
2010-01-30 07:27:59 +03:00
|
|
|
include(cgal.pri)
|
|
|
|
include(opencsg.pri)
|
2010-01-21 22:18:21 +03:00
|
|
|
|
2010-01-30 21:42:54 +03:00
|
|
|
# Optionally specify location of Eigen2 using the
|
|
|
|
# EIGEN2DIR env. variable
|
2010-01-31 03:31:26 +03:00
|
|
|
EIGEN2_DIR = $$(EIGEN2DIR)
|
2010-01-30 21:30:54 +03:00
|
|
|
!isEmpty(EIGEN2_DIR) {
|
2010-01-30 21:42:54 +03:00
|
|
|
INCLUDEPATH += $$EIGEN2_DIR
|
2010-01-30 21:30:54 +03:00
|
|
|
}
|
|
|
|
else {
|
2010-01-30 21:42:54 +03:00
|
|
|
INCLUDEPATH += /usr/include/eigen2
|
2010-01-30 21:30:54 +03:00
|
|
|
}
|
|
|
|
|
2010-02-02 05:10:49 +03:00
|
|
|
!macx:QMAKE_CXXFLAGS_RELEASE = -O3 -march=pentium
|
2009-06-24 14:59:15 +04:00
|
|
|
|
2010-01-10 16:20:00 +03:00
|
|
|
# QMAKE_CFLAGS += -pg
|
|
|
|
# QMAKE_CXXFLAGS += -pg
|
|
|
|
# QMAKE_LFLAGS += -pg
|
|
|
|
|
2010-01-30 07:27:59 +03:00
|
|
|
LEXSOURCES += src/lexer.l
|
|
|
|
YACCSOURCES += src/parser.y
|
|
|
|
|
|
|
|
FORMS += src/MainWindow.ui \
|
|
|
|
src/Preferences.ui
|
|
|
|
|
|
|
|
HEADERS += src/CGAL_renderer.h \
|
|
|
|
src/GLView.h \
|
|
|
|
src/MainWindow.h \
|
|
|
|
src/Preferences.h \
|
|
|
|
src/builtin.h \
|
|
|
|
src/cgal.h \
|
|
|
|
src/context.h \
|
|
|
|
src/csgterm.h \
|
|
|
|
src/dxfdata.h \
|
|
|
|
src/dxfdim.h \
|
|
|
|
src/dxftess.h \
|
|
|
|
src/export.h \
|
|
|
|
src/expression.h \
|
|
|
|
src/function.h \
|
|
|
|
src/grid.h \
|
|
|
|
src/highlighter.h \
|
|
|
|
src/module.h \
|
|
|
|
src/node.h \
|
|
|
|
src/openscad.h \
|
|
|
|
src/polyset.h \
|
|
|
|
src/printutils.h \
|
2010-02-09 16:48:09 +03:00
|
|
|
src/value.h \
|
|
|
|
src/progress.h
|
2010-01-30 07:27:59 +03:00
|
|
|
|
|
|
|
SOURCES += src/openscad.cc \
|
|
|
|
src/mainwin.cc \
|
|
|
|
src/glview.cc \
|
|
|
|
src/export.cc \
|
|
|
|
src/value.cc \
|
|
|
|
src/expr.cc \
|
|
|
|
src/func.cc \
|
|
|
|
src/module.cc \
|
|
|
|
src/node.cc \
|
|
|
|
src/context.cc \
|
|
|
|
src/csgterm.cc \
|
|
|
|
src/polyset.cc \
|
|
|
|
src/csgops.cc \
|
|
|
|
src/transform.cc \
|
|
|
|
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/import.cc \
|
|
|
|
src/dxfdata.cc \
|
|
|
|
src/dxftess.cc \
|
|
|
|
src/dxftess-glu.cc \
|
|
|
|
src/dxftess-cgal.cc \
|
|
|
|
src/dxfdim.cc \
|
|
|
|
src/dxflinextrude.cc \
|
|
|
|
src/dxfrotextrude.cc \
|
|
|
|
src/highlighter.cc \
|
|
|
|
src/printutils.cc \
|
|
|
|
src/nef2dxf.cc \
|
2010-02-09 16:48:09 +03:00
|
|
|
src/Preferences.cc \
|
|
|
|
src/progress.cc
|
2009-06-20 16:10:55 +04:00
|
|
|
|
2010-02-02 04:01:58 +03:00
|
|
|
macx {
|
|
|
|
HEADERS += src/AppleEvents.h \
|
|
|
|
src/EventFilter.h
|
|
|
|
SOURCES += src/AppleEvents.cc
|
|
|
|
}
|
|
|
|
|
2009-07-20 21:45:39 +04:00
|
|
|
target.path = /usr/local/bin/
|
|
|
|
INSTALLS += target
|
2010-02-27 13:38:13 +03:00
|
|
|
|
|
|
|
examples.path = /usr/local/share/openscad/examples/
|
|
|
|
examples.files = examples/*
|
|
|
|
INSTALLS += examples
|
|
|
|
|
|
|
|
libraries.path = /usr/local/share/openscad/libraries/
|
|
|
|
libraries.files = libraries/*
|
|
|
|
INSTALLS += libraries
|
|
|
|
|