2017-07-08 19:10:48 +02:00
|
|
|
QT += core gui opengl network xml
|
2013-08-09 06:57:18 +02:00
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
2018-01-21 21:27:14 +01:00
|
|
|
QT *= printsupport
|
|
|
|
QT += concurrent
|
2013-08-09 06:57:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
INCLUDEPATH += qt common
|
2014-09-03 19:24:28 +02:00
|
|
|
CONFIG += precompile_header incremental c++11
|
2017-09-22 23:04:50 +02:00
|
|
|
win32 {
|
2017-06-22 17:02:05 +02:00
|
|
|
PRECOMPILED_HEADER = common/lc_global.h
|
2013-08-09 06:57:18 +02:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -wd4100
|
|
|
|
DEFINES += _CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE=1 _CRT_NONSTDC_NO_WARNINGS=1
|
2016-12-22 03:47:04 +01:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
INCLUDEPATH += $$[QT_INSTALL_HEADERS]/QtZlib
|
|
|
|
} else {
|
|
|
|
INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib
|
|
|
|
}
|
2013-08-09 06:57:18 +02:00
|
|
|
QMAKE_LFLAGS += /INCREMENTAL
|
|
|
|
PRECOMPILED_SOURCE = common/lc_global.cpp
|
|
|
|
RC_FILE = qt/leocad.rc
|
2018-01-21 21:27:14 +01:00
|
|
|
LIBS += -ladvapi32 -lshell32 -lopengl32 -lwininet -luser32
|
2013-08-09 06:57:18 +02:00
|
|
|
} else {
|
2015-10-04 20:42:58 +02:00
|
|
|
PRECOMPILED_HEADER = common/lc_global.h
|
2014-04-14 05:20:16 +02:00
|
|
|
LIBS += -lz
|
2015-01-07 20:46:30 +01:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
|
|
|
|
}
|
|
|
|
|
|
|
|
lessThan(QT_MAJOR_VERSION, 5) {
|
|
|
|
unix {
|
|
|
|
GCC_VERSION = $$system(g++ -dumpversion)
|
|
|
|
greaterThan(GCC_VERSION, 4.6) {
|
|
|
|
QMAKE_CXXFLAGS += -std=c++11
|
|
|
|
} else {
|
|
|
|
QMAKE_CXXFLAGS += -std=c++0x
|
|
|
|
}
|
|
|
|
}
|
2013-08-09 06:57:18 +02:00
|
|
|
}
|
|
|
|
|
2014-09-16 01:41:46 +02:00
|
|
|
isEmpty(QMAKE_LRELEASE) {
|
|
|
|
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
|
|
|
|
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
|
|
|
unix {
|
|
|
|
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt4 }
|
|
|
|
} else {
|
|
|
|
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-28 00:14:59 +01:00
|
|
|
TSFILES = resources/leocad_fr.ts resources/leocad_pt.ts resources/leocad_de.ts
|
2014-09-21 03:31:01 +02:00
|
|
|
lrelease.input = TSFILES
|
2014-09-16 03:40:56 +02:00
|
|
|
lrelease.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
|
|
|
lrelease.commands = $$QMAKE_LRELEASE -silent ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
2014-09-16 01:41:46 +02:00
|
|
|
lrelease.CONFIG += no_link target_predeps
|
|
|
|
QMAKE_EXTRA_COMPILERS += lrelease
|
|
|
|
|
2015-09-19 20:44:23 +02:00
|
|
|
system($$QMAKE_LRELEASE -silent $$TSFILES)
|
2015-09-18 08:15:25 +02:00
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
unix:!macx {
|
|
|
|
TARGET = leocad
|
|
|
|
} else {
|
|
|
|
TARGET = LeoCAD
|
|
|
|
}
|
|
|
|
|
2013-08-10 03:54:20 +02:00
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
DESTDIR = build/debug
|
|
|
|
} else {
|
|
|
|
DESTDIR = build/release
|
|
|
|
}
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
OBJECTS_DIR = $$DESTDIR/.obj
|
|
|
|
MOC_DIR = $$DESTDIR/.moc
|
|
|
|
RCC_DIR = $$DESTDIR/.qrc
|
|
|
|
UI_DIR = $$DESTDIR/.ui
|
|
|
|
|
|
|
|
unix:!macx {
|
|
|
|
isEmpty(INSTALL_PREFIX):INSTALL_PREFIX = /usr
|
|
|
|
isEmpty(BIN_DIR):BIN_DIR = $$INSTALL_PREFIX/bin
|
|
|
|
isEmpty(DOCS_DIR):DOCS_DIR = $$INSTALL_PREFIX/share/doc/leocad
|
|
|
|
isEmpty(ICON_DIR):ICON_DIR = $$INSTALL_PREFIX/share/pixmaps
|
|
|
|
isEmpty(MAN_DIR):MAN_DIR = $$INSTALL_PREFIX/share/man/man1
|
|
|
|
isEmpty(DESKTOP_DIR):DESKTOP_DIR = $$INSTALL_PREFIX/share/applications
|
|
|
|
isEmpty(MIME_DIR):MIME_DIR = $$INSTALL_PREFIX/share/mime/packages
|
|
|
|
isEmpty(MIME_ICON_DIR):MIME_ICON_DIR = $$INSTALL_PREFIX/share/icons/hicolor/scalable/mimetypes
|
|
|
|
|
|
|
|
target.path = $$BIN_DIR
|
|
|
|
docs.path = $$DOCS_DIR
|
|
|
|
docs.files = docs/README.txt docs/CREDITS.txt docs/COPYING.txt
|
|
|
|
man.path = $$MAN_DIR
|
2017-01-12 13:53:32 +01:00
|
|
|
man.files = docs/leocad.1
|
2013-08-09 06:57:18 +02:00
|
|
|
desktop.path = $$DESKTOP_DIR
|
|
|
|
desktop.files = qt/leocad.desktop
|
|
|
|
icon.path = $$ICON_DIR
|
2016-10-05 23:37:08 +02:00
|
|
|
icon.files = resources/leocad.png
|
2013-08-09 06:57:18 +02:00
|
|
|
mime.path = $$MIME_DIR
|
|
|
|
mime.files = qt/leocad.xml
|
|
|
|
mime_icon.path = $$MIME_ICON_DIR
|
|
|
|
mime_icon.files = resources/application-vnd.leocad.svg
|
|
|
|
|
|
|
|
INSTALLS += target docs man desktop icon mime mime_icon
|
|
|
|
|
2014-09-13 00:47:08 +02:00
|
|
|
!isEmpty(DISABLE_UPDATE_CHECK) {
|
|
|
|
DEFINES += LC_DISABLE_UPDATE_CHECK=$$DISABLE_UPDATE_CHECK
|
|
|
|
}
|
|
|
|
|
|
|
|
!isEmpty(LDRAW_LIBRARY_PATH) {
|
|
|
|
DEFINES += LC_LDRAW_LIBRARY_PATH=\\\"$$LDRAW_LIBRARY_PATH\\\"
|
|
|
|
}
|
2013-08-09 06:57:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
macx {
|
|
|
|
ICON = resources/leocad.icns
|
|
|
|
QMAKE_INFO_PLIST = qt/Info.plist
|
|
|
|
|
2013-08-11 03:30:34 +02:00
|
|
|
document_icon.files += $$_PRO_FILE_PWD_/resources/leocad_document.icns
|
|
|
|
document_icon.path = Contents/Resources
|
2013-08-10 06:03:29 +02:00
|
|
|
library.files += $$_PRO_FILE_PWD_/library.bin
|
2013-08-09 06:57:18 +02:00
|
|
|
library.path = Contents/Resources
|
2018-01-15 19:48:34 +01:00
|
|
|
povray.files += $$_PRO_FILE_PWD_/tools/povray/povray
|
|
|
|
povray.path = Contents/MacOS
|
2013-08-09 06:57:18 +02:00
|
|
|
|
2018-01-15 19:48:34 +01:00
|
|
|
QMAKE_BUNDLE_DATA += document_icon library povray
|
2017-08-27 21:10:52 +02:00
|
|
|
DEFINES += LC_DISABLE_UPDATE_CHECK=1
|
2013-08-09 06:57:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
SOURCES += common/view.cpp \
|
|
|
|
common/texfont.cpp \
|
|
|
|
common/project.cpp \
|
|
|
|
common/pieceinf.cpp \
|
|
|
|
common/piece.cpp \
|
|
|
|
common/object.cpp \
|
|
|
|
common/minifig.cpp \
|
|
|
|
common/light.cpp \
|
|
|
|
common/lc_application.cpp \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_category.cpp \
|
|
|
|
common/lc_colors.cpp \
|
|
|
|
common/lc_commands.cpp \
|
|
|
|
common/lc_context.cpp \
|
|
|
|
common/lc_file.cpp \
|
2015-05-09 21:54:29 +02:00
|
|
|
common/lc_glextensions.cpp \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_library.cpp \
|
2017-06-26 03:24:18 +02:00
|
|
|
common/lc_lxf.cpp \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_mainwindow.cpp \
|
|
|
|
common/lc_mesh.cpp \
|
2014-05-25 03:45:19 +02:00
|
|
|
common/lc_model.cpp \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_profile.cpp \
|
2017-04-02 01:53:54 +02:00
|
|
|
common/lc_scene.cpp \
|
2017-02-17 07:57:11 +01:00
|
|
|
common/lc_selectbycolordialog.cpp \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_shortcuts.cpp \
|
2016-02-29 21:13:54 +01:00
|
|
|
common/lc_synth.cpp \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_texture.cpp \
|
|
|
|
common/lc_zipfile.cpp \
|
2013-08-09 06:57:18 +02:00
|
|
|
common/image.cpp \
|
|
|
|
common/group.cpp \
|
|
|
|
common/camera.cpp \
|
|
|
|
qt/system.cpp \
|
|
|
|
qt/qtmain.cpp \
|
|
|
|
qt/lc_qarraydialog.cpp \
|
|
|
|
qt/lc_qgroupdialog.cpp \
|
|
|
|
qt/lc_qaboutdialog.cpp \
|
|
|
|
qt/lc_qeditgroupsdialog.cpp \
|
|
|
|
qt/lc_qselectdialog.cpp \
|
|
|
|
qt/lc_qpropertiesdialog.cpp \
|
|
|
|
qt/lc_qhtmldialog.cpp \
|
|
|
|
qt/lc_qminifigdialog.cpp \
|
|
|
|
qt/lc_qpreferencesdialog.cpp \
|
|
|
|
qt/lc_qcategorydialog.cpp \
|
|
|
|
qt/lc_qimagedialog.cpp \
|
|
|
|
qt/lc_qupdatedialog.cpp \
|
|
|
|
qt/lc_qutils.cpp \
|
|
|
|
qt/lc_qpropertiestree.cpp \
|
|
|
|
qt/lc_qcolorpicker.cpp \
|
|
|
|
qt/lc_qglwidget.cpp \
|
|
|
|
qt/lc_qcolorlist.cpp \
|
2014-12-13 00:42:09 +01:00
|
|
|
qt/lc_qfinddialog.cpp \
|
2015-03-04 21:37:09 +01:00
|
|
|
qt/lc_qmodellistdialog.cpp \
|
2016-12-16 18:14:19 +01:00
|
|
|
common/lc_partselectionwidget.cpp \
|
2017-08-19 19:12:25 +02:00
|
|
|
common/lc_timelinewidget.cpp \
|
2017-09-22 19:08:02 +02:00
|
|
|
qt/lc_renderdialog.cpp \
|
2017-08-19 19:12:25 +02:00
|
|
|
qt/lc_setsdatabasedialog.cpp
|
2013-08-09 06:57:18 +02:00
|
|
|
HEADERS += \
|
|
|
|
common/view.h \
|
|
|
|
common/texfont.h \
|
|
|
|
common/project.h \
|
|
|
|
common/pieceinf.h \
|
|
|
|
common/piece.h \
|
|
|
|
common/object.h \
|
|
|
|
common/minifig.h \
|
|
|
|
common/light.h \
|
|
|
|
common/lc_application.h \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_array.h \
|
|
|
|
common/lc_basewindow.h \
|
|
|
|
common/lc_category.h \
|
|
|
|
common/lc_colors.h \
|
|
|
|
common/lc_commands.h \
|
|
|
|
common/lc_context.h \
|
|
|
|
common/lc_file.h \
|
2015-05-09 21:54:29 +02:00
|
|
|
common/lc_glext.h \
|
|
|
|
common/lc_glextensions.h \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_global.h \
|
|
|
|
common/lc_glwidget.h \
|
|
|
|
common/lc_library.h \
|
2017-06-26 03:24:18 +02:00
|
|
|
common/lc_lxf.h \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_mainwindow.h \
|
|
|
|
common/lc_math.h \
|
|
|
|
common/lc_mesh.h \
|
2014-05-25 03:45:19 +02:00
|
|
|
common/lc_model.h \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_profile.h \
|
2017-04-02 01:53:54 +02:00
|
|
|
common/lc_scene.h \
|
2017-02-17 07:57:11 +01:00
|
|
|
common/lc_selectbycolordialog.h \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_shortcuts.h \
|
2016-02-29 21:13:54 +01:00
|
|
|
common/lc_synth.h \
|
2014-04-14 05:20:16 +02:00
|
|
|
common/lc_texture.h \
|
|
|
|
common/lc_zipfile.h \
|
2013-08-09 06:57:18 +02:00
|
|
|
common/image.h \
|
|
|
|
common/group.h \
|
|
|
|
common/camera.h \
|
|
|
|
qt/lc_qarraydialog.h \
|
|
|
|
qt/lc_qgroupdialog.h \
|
|
|
|
qt/lc_qaboutdialog.h \
|
|
|
|
qt/lc_qeditgroupsdialog.h \
|
|
|
|
qt/lc_qselectdialog.h \
|
|
|
|
qt/lc_qpropertiesdialog.h \
|
|
|
|
qt/lc_qhtmldialog.h \
|
|
|
|
qt/lc_qminifigdialog.h \
|
|
|
|
qt/lc_qpreferencesdialog.h \
|
|
|
|
qt/lc_qcategorydialog.h \
|
|
|
|
qt/lc_qimagedialog.h \
|
|
|
|
qt/lc_qupdatedialog.h \
|
|
|
|
qt/lc_qutils.h \
|
|
|
|
qt/lc_qpropertiestree.h \
|
|
|
|
qt/lc_qcolorpicker.h \
|
|
|
|
qt/lc_qglwidget.h \
|
|
|
|
qt/lc_qcolorlist.h \
|
2014-12-13 00:42:09 +01:00
|
|
|
qt/lc_qfinddialog.h \
|
2015-03-04 21:37:09 +01:00
|
|
|
qt/lc_qmodellistdialog.h \
|
2016-12-16 18:14:19 +01:00
|
|
|
common/lc_partselectionwidget.h \
|
2017-08-19 19:12:25 +02:00
|
|
|
common/lc_timelinewidget.h \
|
2017-09-22 19:08:02 +02:00
|
|
|
qt/lc_renderdialog.h \
|
2017-08-19 19:12:25 +02:00
|
|
|
qt/lc_setsdatabasedialog.h
|
2013-08-09 06:57:18 +02:00
|
|
|
FORMS += \
|
|
|
|
qt/lc_qarraydialog.ui \
|
|
|
|
qt/lc_qgroupdialog.ui \
|
|
|
|
qt/lc_qaboutdialog.ui \
|
|
|
|
qt/lc_qeditgroupsdialog.ui \
|
|
|
|
qt/lc_qselectdialog.ui \
|
|
|
|
qt/lc_qpropertiesdialog.ui \
|
|
|
|
qt/lc_qhtmldialog.ui \
|
|
|
|
qt/lc_qminifigdialog.ui \
|
|
|
|
qt/lc_qpreferencesdialog.ui \
|
|
|
|
qt/lc_qcategorydialog.ui \
|
|
|
|
qt/lc_qimagedialog.ui \
|
|
|
|
qt/lc_qupdatedialog.ui \
|
2014-12-13 00:42:09 +01:00
|
|
|
qt/lc_qfinddialog.ui \
|
2017-08-19 19:12:25 +02:00
|
|
|
qt/lc_qmodellistdialog.ui \
|
2017-09-22 19:08:02 +02:00
|
|
|
qt/lc_renderdialog.ui \
|
2017-08-19 19:12:25 +02:00
|
|
|
qt/lc_setsdatabasedialog.ui
|
2013-08-09 06:57:18 +02:00
|
|
|
OTHER_FILES +=
|
|
|
|
RESOURCES += leocad.qrc
|
2014-09-21 03:31:01 +02:00
|
|
|
|
|
|
|
!win32 {
|
2018-02-28 00:14:59 +01:00
|
|
|
TRANSLATIONS = resources/leocad_pt.ts resources/leocad_fr.ts resources/leocad_de.ts
|
2014-12-31 02:25:43 +01:00
|
|
|
}
|