diff options
author | Marius Kintel <marius@kintel.net> | 2011-04-12 18:35:44 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-04-12 18:35:44 (GMT) |
commit | d24b3cc84d0701a5423925765e515db7df9614c5 (patch) | |
tree | 0d63867d8b5a3c6ffe107371caa6b29cf8ad0f02 /openscad.pro | |
parent | 633343c47e0d2bced64d47f62e814489b8e76dc2 (diff) | |
parent | 1754a970a76c071fff91cc7c716aa0b78b4ac6be (diff) |
Ported recent changes to master into the visitor branch
Diffstat (limited to 'openscad.pro')
-rw-r--r-- | openscad.pro | 52 |
1 files changed, 46 insertions, 6 deletions
diff --git a/openscad.pro b/openscad.pro index 08a78d2..4a785fd 100644 --- a/openscad.pro +++ b/openscad.pro @@ -1,5 +1,43 @@ -isEmpty(VERSION) VERSION = $$system(date "+%Y.%m.%d") +# 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) + } +} + +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 YY_NO_UNISTD_H + +#disable warning about too long decorated names +win32:QMAKE_CXXFLAGS += -wd4503 + + TEMPLATE = app RESOURCES = openscad.qrc @@ -45,6 +83,7 @@ macx:CONFIG += mdi CONFIG += cgal CONFIG += opencsg CONFIG += progresswidget +CONFIG += boost #Uncomment the following line to enable QCodeEdit #CONFIG += qcodeedit @@ -64,6 +103,7 @@ progresswidget { include(cgal.pri) include(opencsg.pri) include(eigen2.pri) +include(boost.pri) # Standard include path for misc external libs #macx { @@ -74,8 +114,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 @@ -121,7 +159,8 @@ HEADERS += src/CGAL_renderer.h \ src/PolySetCGALRenderer.h \ src/CSGTermRenderer.h \ src/myqhash.h \ - src/Tree.h + src/Tree.h \ + src/mathc99.h SOURCES += src/openscad.cc \ src/mainwin.cc \ @@ -140,6 +179,7 @@ SOURCES += src/openscad.cc \ src/primitives.cc \ src/projection.cc \ src/cgaladv.cc \ + src/cgaladv_convexhull2.cc \ src/cgaladv_minkowski3.cc \ src/cgaladv_minkowski2.cc \ src/surface.cc \ @@ -166,7 +206,8 @@ SOURCES += src/openscad.cc \ src/PolySetCGALRenderer.cc \ src/CSGTermRenderer.cc \ src/qhash.cc \ - src/Tree.cc + src/Tree.cc \ + src/mathc99.cc macx { HEADERS += src/AppleEvents.h \ @@ -184,4 +225,3 @@ INSTALLS += examples libraries.path = /usr/local/share/openscad/libraries/ libraries.files = libraries/* INSTALLS += libraries - |