summaryrefslogtreecommitdiff
path: root/openscad.pro
diff options
context:
space:
mode:
Diffstat (limited to 'openscad.pro')
-rw-r--r--openscad.pro33
1 files changed, 29 insertions, 4 deletions
diff --git a/openscad.pro b/openscad.pro
index 0e94eb0..95c860b 100644
--- a/openscad.pro
+++ b/openscad.pro
@@ -4,7 +4,30 @@ win32 {
isEmpty(VERSION) VERSION = $$system(date "+%Y.%m.%d")
}
+#configure lex / yacc
+win32 {
+ include(flex.pri)
+ include(bison.pri)
+ FLEXSOURCES = src/lexer.l
+ BISONSOURCES = src/parser.y
+} else {
+ LEXSOURCES += src/lexer.l
+ YACCSOURCES += src/parser.y
+}
+
+#configure additional directories
+win32 {
+ INCLUDEPATH += $$(MPIRDIR)
+ INCLUDEPATH += $$(MPFRDIR)
+}
+
DEFINES += OPENSCAD_VERSION=$$VERSION
+win32:DEFINES += _USE_MATH_DEFINES NOMINMAX _CRT_SECURE_NO_WARNINGS
+
+#disable warning about too long decorated names
+win32:QMAKE_CXXFLAGS += -wd4503
+
+
TEMPLATE = app
RESOURCES = openscad.qrc
@@ -50,6 +73,7 @@ macx:CONFIG += mdi
CONFIG += cgal
CONFIG += opencsg
CONFIG += progresswidget
+CONFIG += boost
#Uncomment the following line to enable QCodeEdit
#CONFIG += qcodeedit
@@ -69,6 +93,7 @@ progresswidget {
include(cgal.pri)
include(opencsg.pri)
include(eigen2.pri)
+include(boost.pri)
# Standard include path for misc external libs
#macx {
@@ -79,8 +104,6 @@ include(eigen2.pri)
# QMAKE_CXXFLAGS += -pg
# QMAKE_LFLAGS += -pg
-LEXSOURCES += src/lexer.l
-YACCSOURCES += src/parser.y
FORMS += src/MainWindow.ui \
src/Preferences.ui
@@ -108,7 +131,8 @@ HEADERS += src/CGAL_renderer.h \
src/printutils.h \
src/value.h \
src/progress.h \
- src/editor.h
+ src/editor.h \
+ src/mathc99.h
SOURCES += src/openscad.cc \
src/mainwin.cc \
@@ -145,7 +169,8 @@ SOURCES += src/openscad.cc \
src/nef2dxf.cc \
src/Preferences.cc \
src/progress.cc \
- src/editor.cc
+ src/editor.cc \
+ src/mathc99.cc
macx {
HEADERS += src/AppleEvents.h \
contact: Jan Huwald // Impressum