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
|
|
|
|
#CONFIG += x86 ppc
|
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-01-15 11:13:58 +03:00
|
|
|
# CONFIG += mdi
|
2009-12-13 03:22:07 +03:00
|
|
|
CONFIG += cgal
|
|
|
|
CONFIG += opencsg
|
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-01-30 07:27:59 +03:00
|
|
|
include(cgal.pri)
|
|
|
|
include(opencsg.pri)
|
2010-01-21 22:18:21 +03:00
|
|
|
|
2009-12-13 03:22:07 +03:00
|
|
|
QMAKE_CXXFLAGS_RELEASE = -O3 -march=pentium
|
|
|
|
QMAKE_CXXFLAGS_DEBUG = -O0 -ggdb
|
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 \
|
|
|
|
src/value.h
|
|
|
|
|
2010-01-30 07:37:00 +03:00
|
|
|
macx: HEADERS += src/EventFilter.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-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 \
|
|
|
|
src/Preferences.cc
|
2009-06-20 16:10:55 +04:00
|
|
|
|
2009-07-20 21:45:39 +04:00
|
|
|
target.path = /usr/local/bin/
|
|
|
|
INSTALLS += target
|