summaryrefslogtreecommitdiff
path: root/openscad.pro
diff options
context:
space:
mode:
authormeta <s@w23.at>2011-01-21 21:06:50 (GMT)
committermeta <s@w23.at>2011-01-21 21:06:50 (GMT)
commit94748bb8d2cb9943f2cfb0accb71fd64f73584fc (patch)
tree04e43b53e8800fe7d6fc0ec95b693273f347e3f7 /openscad.pro
parent929e4340e2307620d56980a45d480a12eb60876d (diff)
update qmake file for visual C++ builds
Diffstat (limited to 'openscad.pro')
-rw-r--r--openscad.pro41
1 files changed, 36 insertions, 5 deletions
diff --git a/openscad.pro b/openscad.pro
index 42a5d22..355a129 100644
--- a/openscad.pro
+++ b/openscad.pro
@@ -1,5 +1,34 @@
-isEmpty(VERSION) VERSION = $$system(date "+%Y.%m.%d")
+win32 {
+ isEmpty(VERSION) VERSION = $$system(date /t)
+} else {
+ 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
@@ -45,6 +74,7 @@ macx:CONFIG += mdi
CONFIG += cgal
CONFIG += opencsg
CONFIG += progresswidget
+CONFIG += boost
#Uncomment the following line to enable QCodeEdit
#CONFIG += qcodeedit
@@ -64,6 +94,7 @@ progresswidget {
include(cgal.pri)
include(opencsg.pri)
include(eigen2.pri)
+include(boost.pri)
# Standard include path for misc external libs
#macx {
@@ -74,8 +105,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
@@ -103,7 +132,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 \
@@ -140,7 +170,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