2019-03-17 06:23:39 +00:00
|
|
|
QT += core widgets opengl network
|
2018-04-13 13:03:42 +00:00
|
|
|
CONFIG += release
|
2018-08-27 08:50:40 +00:00
|
|
|
DEFINES += NDEBUG
|
2019-06-25 12:20:02 +00:00
|
|
|
DEFINES += QT_MESSAGELOGCONTEXT
|
2018-03-13 12:49:24 +00:00
|
|
|
RESOURCES += resources.qrc
|
2018-03-10 06:57:14 +00:00
|
|
|
|
2020-04-07 23:15:20 +00:00
|
|
|
LANGUAGES = zh_CN \
|
|
|
|
es_AR \
|
|
|
|
it_IT
|
2019-06-27 12:44:33 +00:00
|
|
|
|
2019-12-29 19:00:29 +00:00
|
|
|
OBJECTS_DIR=obj
|
|
|
|
MOC_DIR=moc
|
|
|
|
|
2019-06-27 12:44:33 +00:00
|
|
|
############## Generate .qm from .ts #######################
|
|
|
|
|
|
|
|
# parameters: var, prepend, append
|
|
|
|
defineReplace(prependAll) {
|
|
|
|
for(a,$$1):result += $$2$${a}$$3
|
|
|
|
return($$result)
|
|
|
|
}
|
|
|
|
TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/languages/dust3d_, .ts)
|
|
|
|
TRANSLATIONS_FILES =
|
|
|
|
qtPrepareTool(LRELEASE, lrelease)
|
|
|
|
for(tsfile, TRANSLATIONS) {
|
|
|
|
qmfile = $$shadowed($$tsfile)
|
|
|
|
qmfile ~= s,.ts$,.qm,
|
|
|
|
qmdir = $$dirname(qmfile)
|
|
|
|
!exists($$qmdir) {
|
|
|
|
mkpath($$qmdir)|error("Aborting.")
|
|
|
|
}
|
|
|
|
command = $$LRELEASE -removeidentical $$tsfile -qm $$qmfile
|
|
|
|
system($$command)|error("Failed to run: $$command")
|
|
|
|
TRANSLATIONS_FILES += $$qmfile
|
|
|
|
}
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
|
|
|
|
############## Generate .ts file #######################
|
2019-07-08 22:50:09 +00:00
|
|
|
macx {
|
|
|
|
wd = $$replace(PWD, /, $$QMAKE_DIR_SEP)
|
2019-06-27 12:44:33 +00:00
|
|
|
|
2019-07-08 22:50:09 +00:00
|
|
|
# Update the .ts file from source
|
|
|
|
qtPrepareTool(LUPDATE, lupdate)
|
|
|
|
LUPDATE += src/*.cpp src/*.h -locations none
|
|
|
|
for(lang, LANGUAGES) {
|
|
|
|
command = $$LUPDATE -ts languages/dust3d_$${lang}.ts
|
|
|
|
system($$command)|error("Failed to run: $$command")
|
|
|
|
}
|
2019-06-27 12:44:33 +00:00
|
|
|
}
|
|
|
|
##########################################################
|
|
|
|
|
2019-12-31 02:05:06 +00:00
|
|
|
win32 {
|
|
|
|
CONFIG += force_debug_info
|
|
|
|
}
|
|
|
|
|
2019-06-12 14:38:47 +00:00
|
|
|
win32 {
|
2020-07-24 05:12:40 +00:00
|
|
|
RC_FILE = $${SOURCE_ROOT}dust3d.rc
|
2019-06-12 14:38:47 +00:00
|
|
|
}
|
|
|
|
|
2018-12-26 11:18:02 +00:00
|
|
|
macx {
|
2020-07-24 05:12:40 +00:00
|
|
|
ICON = $${SOURCE_ROOT}dust3d.icns
|
2018-12-26 11:18:02 +00:00
|
|
|
|
|
|
|
RESOURCE_FILES.files = $$ICON
|
|
|
|
RESOURCE_FILES.path = Contents/Resources
|
|
|
|
QMAKE_BUNDLE_DATA += RESOURCE_FILES
|
|
|
|
}
|
|
|
|
|
2018-04-18 03:42:45 +00:00
|
|
|
isEmpty(HUMAN_VERSION) {
|
2020-04-12 12:03:40 +00:00
|
|
|
HUMAN_VERSION = "1.0.0-rc.7"
|
2018-04-18 03:42:45 +00:00
|
|
|
}
|
|
|
|
isEmpty(VERSION) {
|
2020-04-12 12:03:40 +00:00
|
|
|
VERSION = 1.0.0.37
|
2018-04-18 03:42:45 +00:00
|
|
|
}
|
|
|
|
|
2019-03-10 01:56:54 +00:00
|
|
|
HOMEPAGE_URL = "https://dust3d.org/"
|
2018-04-10 07:59:20 +00:00
|
|
|
REPOSITORY_URL = "https://github.com/huxingyi/dust3d"
|
|
|
|
ISSUES_URL = "https://github.com/huxingyi/dust3d/issues"
|
2020-03-14 05:43:56 +00:00
|
|
|
REFERENCE_GUIDE_URL = "https://docs.dust3d.org"
|
2019-07-24 12:41:55 +00:00
|
|
|
UPDATES_CHECKER_URL = "https://dust3d.org/dust3d-updateinfo.xml"
|
|
|
|
|
|
|
|
PLATFORM = "Unknown"
|
|
|
|
macx {
|
|
|
|
PLATFORM = "MacOS"
|
|
|
|
}
|
|
|
|
win32 {
|
|
|
|
PLATFORM = "Win32"
|
|
|
|
}
|
|
|
|
unix:!macx {
|
|
|
|
PLATFORM = "Linux"
|
|
|
|
}
|
2018-04-18 03:42:45 +00:00
|
|
|
|
2018-04-10 07:59:20 +00:00
|
|
|
QMAKE_TARGET_COMPANY = Dust3D
|
|
|
|
QMAKE_TARGET_PRODUCT = Dust3D
|
2018-12-02 12:32:34 +00:00
|
|
|
QMAKE_TARGET_DESCRIPTION = "Dust3D is a cross-platform open-source 3D modeling software"
|
2020-04-04 00:54:05 +00:00
|
|
|
QMAKE_TARGET_COPYRIGHT = "Copyright (C) 2018-2020 Dust3D Project. All Rights Reserved."
|
2018-04-10 07:59:20 +00:00
|
|
|
|
2018-10-17 03:06:45 +00:00
|
|
|
DEFINES += "PROJECT_DEFINED_APP_COMPANY=\"\\\"$$QMAKE_TARGET_COMPANY\\\"\""
|
2018-04-11 08:34:51 +00:00
|
|
|
DEFINES += "PROJECT_DEFINED_APP_NAME=\"\\\"$$QMAKE_TARGET_PRODUCT\\\"\""
|
|
|
|
DEFINES += "PROJECT_DEFINED_APP_VER=\"\\\"$$VERSION\\\"\""
|
|
|
|
DEFINES += "PROJECT_DEFINED_APP_HUMAN_VER=\"\\\"$$HUMAN_VERSION\\\"\""
|
2019-03-10 01:56:54 +00:00
|
|
|
DEFINES += "PROJECT_DEFINED_APP_HOMEPAGE_URL=\"\\\"$$HOMEPAGE_URL\\\"\""
|
2018-04-11 08:34:51 +00:00
|
|
|
DEFINES += "PROJECT_DEFINED_APP_REPOSITORY_URL=\"\\\"$$REPOSITORY_URL\\\"\""
|
|
|
|
DEFINES += "PROJECT_DEFINED_APP_ISSUES_URL=\"\\\"$$ISSUES_URL\\\"\""
|
2018-04-18 13:18:10 +00:00
|
|
|
DEFINES += "PROJECT_DEFINED_APP_REFERENCE_GUIDE_URL=\"\\\"$$REFERENCE_GUIDE_URL\\\"\""
|
2019-07-24 12:41:55 +00:00
|
|
|
DEFINES += "PROJECT_DEFINED_APP_UPDATES_CHECKER_URL=\"\\\"$$UPDATES_CHECKER_URL\\\"\""
|
|
|
|
DEFINES += "PROJECT_DEFINED_APP_PLATFORM=\"\\\"$$PLATFORM\\\"\""
|
2018-04-10 07:59:20 +00:00
|
|
|
|
2020-10-13 13:52:03 +00:00
|
|
|
CONFIG += c++14
|
|
|
|
|
2019-10-06 04:21:45 +00:00
|
|
|
macx {
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O1
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O2
|
|
|
|
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -O3
|
|
|
|
}
|
|
|
|
|
|
|
|
unix:!macx {
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O1
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O2
|
|
|
|
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -O3
|
|
|
|
}
|
2018-08-27 08:50:40 +00:00
|
|
|
|
2019-10-06 04:21:45 +00:00
|
|
|
win32 {
|
2020-10-18 10:31:40 +00:00
|
|
|
QMAKE_CXXFLAGS += /MP
|
2020-01-01 04:31:43 +00:00
|
|
|
QMAKE_CXXFLAGS += /O2
|
2020-01-04 10:29:10 +00:00
|
|
|
QMAKE_CXXFLAGS += /bigobj
|
2019-10-06 04:21:45 +00:00
|
|
|
}
|
2018-10-15 15:02:31 +00:00
|
|
|
|
2020-10-13 13:52:03 +00:00
|
|
|
DEFINES += NOMINMAX
|
|
|
|
|
2018-04-07 08:44:39 +00:00
|
|
|
include(thirdparty/QtAwesome/QtAwesome/QtAwesome.pri)
|
2020-04-04 00:54:05 +00:00
|
|
|
include(thirdparty/qtsingleapplication/src/qtsingleapplication.pri)
|
2020-10-18 05:03:15 +00:00
|
|
|
include(thirdparty/Qt-Color-Widgets/color_widgets.pri)
|
2018-03-10 06:57:14 +00:00
|
|
|
|
2018-04-07 08:44:39 +00:00
|
|
|
INCLUDEPATH += src
|
2018-03-10 06:57:14 +00:00
|
|
|
|
2020-04-14 11:50:19 +00:00
|
|
|
SOURCES += src/fixholes.cpp
|
|
|
|
HEADERS += src/fixholes.h
|
|
|
|
|
2020-04-08 10:09:16 +00:00
|
|
|
SOURCES += src/toonline.cpp
|
|
|
|
HEADERS += src/toonline.h
|
|
|
|
|
2020-04-07 23:15:20 +00:00
|
|
|
SOURCES += src/meshstroketifier.cpp
|
|
|
|
HEADERS += src/meshstroketifier.h
|
|
|
|
|
2020-04-03 13:53:54 +00:00
|
|
|
SOURCES += src/autosaver.cpp
|
|
|
|
HEADERS += src/autosaver.h
|
|
|
|
|
|
|
|
SOURCES += src/documentsaver.cpp
|
|
|
|
HEADERS += src/documentsaver.h
|
|
|
|
|
2020-04-02 10:39:57 +00:00
|
|
|
SOURCES += src/normalanddepthmapsgenerator.cpp
|
|
|
|
HEADERS += src/normalanddepthmapsgenerator.h
|
|
|
|
|
2020-04-07 23:15:20 +00:00
|
|
|
SOURCES += src/modeloffscreenrender.cpp
|
|
|
|
HEADERS += src/modeloffscreenrender.h
|
2020-04-02 10:39:57 +00:00
|
|
|
|
2018-04-02 06:05:06 +00:00
|
|
|
SOURCES += src/modelshaderprogram.cpp
|
|
|
|
HEADERS += src/modelshaderprogram.h
|
|
|
|
|
|
|
|
SOURCES += src/modelmeshbinder.cpp
|
|
|
|
HEADERS += src/modelmeshbinder.h
|
|
|
|
|
2018-03-20 07:56:49 +00:00
|
|
|
SOURCES += src/modelwidget.cpp
|
|
|
|
HEADERS += src/modelwidget.h
|
2018-03-10 06:57:14 +00:00
|
|
|
|
2018-10-25 00:19:38 +00:00
|
|
|
SOURCES += src/document.cpp
|
|
|
|
HEADERS += src/document.h
|
2018-04-07 08:44:39 +00:00
|
|
|
|
2018-10-25 00:19:38 +00:00
|
|
|
SOURCES += src/documentwindow.cpp
|
|
|
|
HEADERS += src/documentwindow.h
|
2018-03-11 16:02:15 +00:00
|
|
|
|
2018-04-07 08:44:39 +00:00
|
|
|
SOURCES += src/skeletongraphicswidget.cpp
|
|
|
|
HEADERS += src/skeletongraphicswidget.h
|
2018-03-11 16:02:15 +00:00
|
|
|
|
2018-10-25 00:19:38 +00:00
|
|
|
SOURCES += src/parttreewidget.cpp
|
|
|
|
HEADERS += src/parttreewidget.h
|
2018-08-27 08:50:40 +00:00
|
|
|
|
2018-10-25 00:19:38 +00:00
|
|
|
SOURCES += src/partwidget.cpp
|
|
|
|
HEADERS += src/partwidget.h
|
2018-04-07 08:44:39 +00:00
|
|
|
|
2018-04-10 07:59:20 +00:00
|
|
|
SOURCES += src/aboutwidget.cpp
|
|
|
|
HEADERS += src/aboutwidget.h
|
|
|
|
|
2018-04-07 08:44:39 +00:00
|
|
|
SOURCES += src/meshgenerator.cpp
|
|
|
|
HEADERS += src/meshgenerator.h
|
|
|
|
|
2018-10-25 00:19:38 +00:00
|
|
|
SOURCES += src/util.cpp
|
|
|
|
HEADERS += src/util.h
|
2018-03-11 16:02:15 +00:00
|
|
|
|
2018-03-13 06:39:36 +00:00
|
|
|
SOURCES += src/turnaroundloader.cpp
|
|
|
|
HEADERS += src/turnaroundloader.h
|
|
|
|
|
2018-10-25 00:19:38 +00:00
|
|
|
SOURCES += src/snapshot.cpp
|
|
|
|
HEADERS += src/snapshot.h
|
2018-03-26 12:41:46 +00:00
|
|
|
|
2018-10-25 00:19:38 +00:00
|
|
|
SOURCES += src/snapshotxml.cpp
|
|
|
|
HEADERS += src/snapshotxml.h
|
2018-03-26 12:41:46 +00:00
|
|
|
|
2018-03-15 15:40:30 +00:00
|
|
|
SOURCES += src/ds3file.cpp
|
|
|
|
HEADERS += src/ds3file.h
|
2018-03-14 15:22:00 +00:00
|
|
|
|
2018-10-25 09:18:04 +00:00
|
|
|
SOURCES += src/glbfile.cpp
|
|
|
|
HEADERS += src/glbfile.h
|
2018-04-30 11:31:09 +00:00
|
|
|
|
2018-03-12 09:41:16 +00:00
|
|
|
SOURCES += src/theme.cpp
|
|
|
|
HEADERS += src/theme.h
|
|
|
|
|
2020-04-07 23:15:20 +00:00
|
|
|
SOURCES += src/model.cpp
|
|
|
|
HEADERS += src/model.h
|
2018-03-10 06:57:14 +00:00
|
|
|
|
2018-05-07 16:08:19 +00:00
|
|
|
SOURCES += src/texturegenerator.cpp
|
|
|
|
HEADERS += src/texturegenerator.h
|
2018-04-26 02:23:22 +00:00
|
|
|
|
2020-11-17 14:31:51 +00:00
|
|
|
SOURCES += src/object.cpp
|
|
|
|
HEADERS += src/object.h
|
2018-04-26 02:23:22 +00:00
|
|
|
|
2018-05-07 16:08:19 +00:00
|
|
|
SOURCES += src/meshresultpostprocessor.cpp
|
|
|
|
HEADERS += src/meshresultpostprocessor.h
|
|
|
|
|
2018-04-07 08:44:39 +00:00
|
|
|
SOURCES += src/logbrowser.cpp
|
|
|
|
HEADERS += src/logbrowser.h
|
|
|
|
|
|
|
|
SOURCES += src/logbrowserdialog.cpp
|
|
|
|
HEADERS += src/logbrowserdialog.h
|
|
|
|
|
2018-04-17 13:13:32 +00:00
|
|
|
SOURCES += src/floatnumberwidget.cpp
|
|
|
|
HEADERS += src/floatnumberwidget.h
|
|
|
|
|
2018-05-24 01:44:40 +00:00
|
|
|
SOURCES += src/ccdikresolver.cpp
|
|
|
|
HEADERS += src/ccdikresolver.h
|
|
|
|
|
|
|
|
SOURCES += src/skeletonikmover.cpp
|
|
|
|
HEADERS += src/skeletonikmover.h
|
|
|
|
|
2018-08-27 08:50:40 +00:00
|
|
|
SOURCES += src/spinnableawesomebutton.cpp
|
|
|
|
HEADERS += src/spinnableawesomebutton.h
|
2018-06-28 13:17:21 +00:00
|
|
|
|
2018-08-27 08:50:40 +00:00
|
|
|
SOURCES += src/infolabel.cpp
|
|
|
|
HEADERS += src/infolabel.h
|
2018-06-30 10:46:23 +00:00
|
|
|
|
2018-08-27 08:50:40 +00:00
|
|
|
SOURCES += src/graphicscontainerwidget.cpp
|
|
|
|
HEADERS += src/graphicscontainerwidget.h
|
2018-05-07 16:08:19 +00:00
|
|
|
|
2018-09-14 09:45:05 +00:00
|
|
|
SOURCES += src/rigwidget.cpp
|
|
|
|
HEADERS += src/rigwidget.h
|
|
|
|
|
|
|
|
SOURCES += src/markiconcreator.cpp
|
|
|
|
HEADERS += src/markiconcreator.h
|
|
|
|
|
2018-10-25 00:19:38 +00:00
|
|
|
SOURCES += src/bonemark.cpp
|
|
|
|
HEADERS += src/bonemark.h
|
|
|
|
|
|
|
|
SOURCES += src/skeletonside.cpp
|
|
|
|
HEADERS += src/skeletonside.h
|
2018-09-14 09:45:05 +00:00
|
|
|
|
|
|
|
SOURCES += src/meshsplitter.cpp
|
|
|
|
HEADERS += src/meshsplitter.h
|
|
|
|
|
2020-11-22 07:42:33 +00:00
|
|
|
SOURCES += src/rig.cpp
|
|
|
|
HEADERS += src/rig.h
|
2018-09-14 09:45:05 +00:00
|
|
|
|
|
|
|
SOURCES += src/rigtype.cpp
|
|
|
|
HEADERS += src/rigtype.h
|
|
|
|
|
|
|
|
SOURCES += src/riggenerator.cpp
|
|
|
|
HEADERS += src/riggenerator.h
|
|
|
|
|
2018-09-18 03:17:35 +00:00
|
|
|
SOURCES += src/skinnedmeshcreator.cpp
|
|
|
|
HEADERS += src/skinnedmeshcreator.h
|
|
|
|
|
|
|
|
SOURCES += src/jointnodetree.cpp
|
|
|
|
HEADERS += src/jointnodetree.h
|
|
|
|
|
2019-06-01 13:12:53 +00:00
|
|
|
SOURCES += src/preferenceswidget.cpp
|
|
|
|
HEADERS += src/preferenceswidget.h
|
2018-09-22 10:31:02 +00:00
|
|
|
|
2018-10-02 04:59:30 +00:00
|
|
|
SOURCES += src/motionmanagewidget.cpp
|
|
|
|
HEADERS += src/motionmanagewidget.h
|
|
|
|
|
|
|
|
SOURCES += src/motionlistwidget.cpp
|
|
|
|
HEADERS += src/motionlistwidget.h
|
|
|
|
|
|
|
|
SOURCES += src/motionwidget.cpp
|
|
|
|
HEADERS += src/motionwidget.h
|
|
|
|
|
2018-10-23 14:57:47 +00:00
|
|
|
SOURCES += src/motionsgenerator.cpp
|
|
|
|
HEADERS += src/motionsgenerator.h
|
2018-10-02 04:59:30 +00:00
|
|
|
|
2018-10-09 02:19:12 +00:00
|
|
|
SOURCES += src/texturetype.cpp
|
|
|
|
HEADERS += src/texturetype.h
|
|
|
|
|
|
|
|
SOURCES += src/imageforever.cpp
|
|
|
|
HEADERS += src/imageforever.h
|
|
|
|
|
|
|
|
SOURCES += src/materialeditwidget.cpp
|
|
|
|
HEADERS += src/materialeditwidget.h
|
|
|
|
|
|
|
|
SOURCES += src/materiallistwidget.cpp
|
|
|
|
HEADERS += src/materiallistwidget.h
|
|
|
|
|
|
|
|
SOURCES += src/materialmanagewidget.cpp
|
|
|
|
HEADERS += src/materialmanagewidget.h
|
|
|
|
|
|
|
|
SOURCES += src/materialpreviewsgenerator.cpp
|
|
|
|
HEADERS += src/materialpreviewsgenerator.h
|
|
|
|
|
|
|
|
SOURCES += src/materialwidget.cpp
|
|
|
|
HEADERS += src/materialwidget.h
|
|
|
|
|
2018-10-09 09:17:44 +00:00
|
|
|
SOURCES += src/material.cpp
|
|
|
|
HEADERS += src/material.h
|
|
|
|
|
2018-10-17 03:06:45 +00:00
|
|
|
SOURCES += src/fbxfile.cpp
|
|
|
|
HEADERS += src/fbxfile.h
|
|
|
|
|
2018-10-23 14:57:47 +00:00
|
|
|
SOURCES += src/tabwidget.cpp
|
|
|
|
HEADERS += src/tabwidget.h
|
|
|
|
|
|
|
|
SOURCES += src/flowlayout.cpp
|
|
|
|
HEADERS += src/flowlayout.h
|
|
|
|
|
2018-10-24 13:44:21 +00:00
|
|
|
SOURCES += src/shortcuts.cpp
|
|
|
|
HEADERS += src/shortcuts.h
|
|
|
|
|
2018-10-26 23:04:45 +00:00
|
|
|
SOURCES += src/trianglesourcenoderesolve.cpp
|
|
|
|
HEADERS += src/trianglesourcenoderesolve.h
|
|
|
|
|
|
|
|
SOURCES += src/uvunwrap.cpp
|
|
|
|
HEADERS += src/uvunwrap.h
|
|
|
|
|
|
|
|
SOURCES += src/triangletangentresolve.cpp
|
|
|
|
HEADERS += src/triangletangentresolve.h
|
|
|
|
|
2018-11-03 08:09:42 +00:00
|
|
|
SOURCES += src/skeletondocument.cpp
|
|
|
|
HEADERS += src/skeletondocument.h
|
|
|
|
|
2018-11-14 13:21:45 +00:00
|
|
|
SOURCES += src/combinemode.cpp
|
|
|
|
HEADERS += src/combinemode.h
|
2020-01-04 14:50:10 +00:00
|
|
|
|
|
|
|
SOURCES += src/polycount.cpp
|
|
|
|
HEADERS += src/polycount.h
|
2018-11-14 13:21:45 +00:00
|
|
|
|
2019-02-24 13:42:23 +00:00
|
|
|
SOURCES += src/cutdocument.cpp
|
|
|
|
HEADERS += src/cutdocument.h
|
|
|
|
|
2019-05-05 12:49:26 +00:00
|
|
|
SOURCES += src/cutface.cpp
|
|
|
|
HEADERS += src/cutface.h
|
2019-02-24 13:42:23 +00:00
|
|
|
|
2019-05-19 03:21:38 +00:00
|
|
|
SOURCES += src/parttarget.cpp
|
|
|
|
HEADERS += src/parttarget.h
|
|
|
|
|
2019-05-20 13:38:01 +00:00
|
|
|
SOURCES += src/partbase.cpp
|
|
|
|
HEADERS += src/partbase.h
|
|
|
|
|
2019-05-19 03:21:38 +00:00
|
|
|
SOURCES += src/cutfacewidget.cpp
|
|
|
|
HEADERS += src/cutfacewidget.h
|
|
|
|
|
|
|
|
SOURCES += src/cutfacelistwidget.cpp
|
|
|
|
HEADERS += src/cutfacelistwidget.h
|
|
|
|
|
2019-06-01 13:12:53 +00:00
|
|
|
SOURCES += src/preferences.cpp
|
|
|
|
HEADERS += src/preferences.h
|
|
|
|
|
2019-07-04 09:36:50 +00:00
|
|
|
HEADERS += src/shadervertex.h
|
|
|
|
|
2020-01-16 13:07:16 +00:00
|
|
|
SOURCES += src/scripteditwidget.cpp
|
|
|
|
HEADERS += src/scripteditwidget.h
|
|
|
|
|
|
|
|
SOURCES += src/scriptvariableswidget.cpp
|
|
|
|
HEADERS += src/scriptvariableswidget.h
|
|
|
|
|
|
|
|
SOURCES += src/scriptwidget.cpp
|
|
|
|
HEADERS += src/scriptwidget.h
|
|
|
|
|
|
|
|
SOURCES += src/scriptrunner.cpp
|
|
|
|
HEADERS += src/scriptrunner.h
|
|
|
|
|
|
|
|
SOURCES += src/variablesxml.cpp
|
|
|
|
HEADERS += src/variablesxml.h
|
|
|
|
|
2019-07-24 12:41:55 +00:00
|
|
|
SOURCES += src/updateschecker.cpp
|
|
|
|
HEADERS += src/updateschecker.h
|
|
|
|
|
|
|
|
SOURCES += src/updatescheckwidget.cpp
|
|
|
|
HEADERS += src/updatescheckwidget.h
|
|
|
|
|
2019-07-26 01:20:32 +00:00
|
|
|
SOURCES += src/intnumberwidget.cpp
|
|
|
|
HEADERS += src/intnumberwidget.h
|
|
|
|
|
2019-08-03 10:21:27 +00:00
|
|
|
SOURCES += src/imagepreviewwidget.cpp
|
|
|
|
HEADERS += src/imagepreviewwidget.h
|
|
|
|
|
2020-11-17 14:31:51 +00:00
|
|
|
SOURCES += src/texturepainter.cpp
|
|
|
|
HEADERS += src/texturepainter.h
|
2019-08-08 11:24:33 +00:00
|
|
|
|
2019-08-17 10:13:11 +00:00
|
|
|
SOURCES += src/paintmode.cpp
|
|
|
|
HEADERS += src/paintmode.h
|
|
|
|
|
2019-09-21 14:30:27 +00:00
|
|
|
SOURCES += src/proceduralanimation.cpp
|
|
|
|
HEADERS += src/proceduralanimation.h
|
|
|
|
|
|
|
|
SOURCES += src/boundingboxmesh.cpp
|
|
|
|
HEADERS += src/boundingboxmesh.h
|
|
|
|
|
2019-12-14 13:28:14 +00:00
|
|
|
SOURCES += src/regionfiller.cpp
|
|
|
|
HEADERS += src/regionfiller.h
|
|
|
|
|
|
|
|
SOURCES += src/cyclefinder.cpp
|
|
|
|
HEADERS += src/cyclefinder.h
|
|
|
|
|
|
|
|
SOURCES += src/shortestpath.cpp
|
|
|
|
HEADERS += src/shortestpath.h
|
|
|
|
|
|
|
|
SOURCES += src/meshwrapper.cpp
|
|
|
|
HEADERS += src/meshwrapper.h
|
|
|
|
|
|
|
|
SOURCES += src/meshstitcher.cpp
|
|
|
|
HEADERS += src/meshstitcher.h
|
|
|
|
|
|
|
|
SOURCES += src/strokemeshbuilder.cpp
|
|
|
|
HEADERS += src/strokemeshbuilder.h
|
|
|
|
|
|
|
|
SOURCES += src/meshcombiner.cpp
|
|
|
|
HEADERS += src/meshcombiner.h
|
|
|
|
|
|
|
|
SOURCES += src/positionkey.cpp
|
|
|
|
HEADERS += src/positionkey.h
|
|
|
|
|
|
|
|
SOURCES += src/strokemodifier.cpp
|
|
|
|
HEADERS += src/strokemodifier.h
|
|
|
|
|
|
|
|
SOURCES += src/boxmesh.cpp
|
|
|
|
HEADERS += src/boxmesh.h
|
|
|
|
|
|
|
|
SOURCES += src/meshrecombiner.cpp
|
|
|
|
HEADERS += src/meshrecombiner.h
|
|
|
|
|
2019-12-14 23:57:51 +00:00
|
|
|
SOURCES += src/triangulatefaces.cpp
|
|
|
|
HEADERS += src/triangulatefaces.h
|
2019-12-14 13:28:14 +00:00
|
|
|
|
|
|
|
SOURCES += src/booleanmesh.cpp
|
|
|
|
HEADERS += src/booleanmesh.h
|
|
|
|
|
2019-12-21 06:50:36 +00:00
|
|
|
SOURCES += src/imageskeletonextractor.cpp
|
|
|
|
HEADERS += src/imageskeletonextractor.h
|
|
|
|
|
2019-12-24 23:24:49 +00:00
|
|
|
SOURCES += src/contourtopartconverter.cpp
|
|
|
|
HEADERS += src/contourtopartconverter.h
|
|
|
|
|
2019-12-28 05:21:59 +00:00
|
|
|
SOURCES += src/remesher.cpp
|
|
|
|
HEADERS += src/remesher.h
|
|
|
|
|
2020-01-08 14:16:56 +00:00
|
|
|
SOURCES += src/clothsimulator.cpp
|
|
|
|
HEADERS += src/clothsimulator.h
|
|
|
|
|
|
|
|
SOURCES += src/componentlayer.cpp
|
|
|
|
HEADERS += src/componentlayer.h
|
|
|
|
|
2020-01-08 23:07:14 +00:00
|
|
|
SOURCES += src/isotropicremesh.cpp
|
|
|
|
HEADERS += src/isotropicremesh.h
|
|
|
|
|
2020-01-12 12:48:44 +00:00
|
|
|
SOURCES += src/clothforce.cpp
|
|
|
|
HEADERS += src/clothforce.h
|
|
|
|
|
|
|
|
SOURCES += src/projectfacestonodes.cpp
|
|
|
|
HEADERS += src/projectfacestonodes.h
|
|
|
|
|
2020-01-13 13:24:09 +00:00
|
|
|
SOURCES += src/simulateclothmeshes.cpp
|
|
|
|
HEADERS += src/simulateclothmeshes.h
|
|
|
|
|
2020-03-18 14:17:09 +00:00
|
|
|
SOURCES += src/ddsfile.cpp
|
|
|
|
HEADERS += src/ddsfile.h
|
|
|
|
|
2020-03-24 22:24:29 +00:00
|
|
|
SOURCES += src/fileforever.cpp
|
|
|
|
HEADERS += src/fileforever.h
|
|
|
|
|
2020-10-15 10:06:28 +00:00
|
|
|
SOURCES += src/partpreviewimagesgenerator.cpp
|
|
|
|
HEADERS += src/partpreviewimagesgenerator.h
|
|
|
|
|
2020-10-18 12:42:47 +00:00
|
|
|
SOURCES += src/remeshhole.cpp
|
|
|
|
HEADERS += src/remeshhole.h
|
|
|
|
|
2020-10-20 11:18:08 +00:00
|
|
|
SOURCES += src/centripetalcatmullromspline.cpp
|
|
|
|
HEADERS += src/centripetalcatmullromspline.h
|
|
|
|
|
2020-11-09 10:46:06 +00:00
|
|
|
SOURCES += src/simpleshadermesh.cpp
|
|
|
|
HEADERS += src/simpleshadermesh.h
|
|
|
|
|
|
|
|
SOURCES += src/simpleshadermeshbinder.cpp
|
|
|
|
HEADERS += src/simpleshadermeshbinder.h
|
|
|
|
|
|
|
|
SOURCES += src/simpleshaderwidget.cpp
|
|
|
|
HEADERS += src/simpleshaderwidget.h
|
|
|
|
|
|
|
|
SOURCES += src/blockmesh.cpp
|
|
|
|
HEADERS += src/blockmesh.h
|
|
|
|
|
|
|
|
SOURCES += src/planemesh.cpp
|
|
|
|
HEADERS += src/planemesh.h
|
|
|
|
|
|
|
|
SOURCES += src/hermitecurveinterpolation.cpp
|
|
|
|
HEADERS += src/hermitecurveinterpolation.h
|
|
|
|
|
|
|
|
SOURCES += src/genericspineandpseudophysics.cpp
|
|
|
|
HEADERS += src/genericspineandpseudophysics.h
|
|
|
|
|
|
|
|
SOURCES += src/chainsimulator.cpp
|
|
|
|
HEADERS += src/chainsimulator.h
|
|
|
|
|
2020-12-09 12:52:07 +00:00
|
|
|
SOURCES += src/vertebratamovemotionbuilder.cpp
|
|
|
|
HEADERS += src/vertebratamovemotionbuilder.h
|
2020-11-09 10:46:06 +00:00
|
|
|
|
|
|
|
SOURCES += src/simplerendermeshgenerator.cpp
|
|
|
|
HEADERS += src/simplerendermeshgenerator.h
|
|
|
|
|
|
|
|
SOURCES += src/motioneditwidget.cpp
|
|
|
|
HEADERS += src/motioneditwidget.h
|
|
|
|
|
2020-12-09 12:52:07 +00:00
|
|
|
SOURCES += src/vertebratamovemotionparameterswidget.cpp
|
|
|
|
HEADERS += src/vertebratamovemotionparameterswidget.h
|
2020-11-09 10:46:06 +00:00
|
|
|
|
2020-11-17 14:31:51 +00:00
|
|
|
SOURCES += src/objectxml.cpp
|
|
|
|
HEADERS += src/objectxml.h
|
|
|
|
|
2020-11-22 07:42:33 +00:00
|
|
|
SOURCES += src/rigxml.cpp
|
|
|
|
HEADERS += src/rigxml.h
|
|
|
|
|
2020-12-09 12:52:07 +00:00
|
|
|
SOURCES += src/ragdoll.cpp
|
|
|
|
HEADERS += src/ragdoll.h
|
|
|
|
|
|
|
|
SOURCES += src/motionbuilder.cpp
|
|
|
|
HEADERS += src/motionbuilder.h
|
|
|
|
|
2020-12-12 13:59:13 +00:00
|
|
|
SOURCES += src/statusbarlabel.cpp
|
|
|
|
HEADERS += src/statusbarlabel.h
|
|
|
|
|
2020-12-13 13:21:45 +00:00
|
|
|
SOURCES += src/silhouetteimagegenerator.cpp
|
|
|
|
HEADERS += src/silhouetteimagegenerator.h
|
|
|
|
|
2018-03-10 06:57:14 +00:00
|
|
|
SOURCES += src/main.cpp
|
|
|
|
|
2018-04-11 08:34:51 +00:00
|
|
|
HEADERS += src/version.h
|
|
|
|
|
2020-01-08 14:16:56 +00:00
|
|
|
INCLUDEPATH += thirdparty/FastMassSpring/ClothApp
|
|
|
|
SOURCES += thirdparty/FastMassSpring/ClothApp/MassSpringSolver.cpp
|
|
|
|
HEADERS += thirdparty/FastMassSpring/ClothApp/MassSpringSolver.h
|
|
|
|
|
2020-01-04 10:29:10 +00:00
|
|
|
INCLUDEPATH += thirdparty/instant-meshes
|
|
|
|
INCLUDEPATH += thirdparty/instant-meshes/instant-meshes-dust3d/src
|
|
|
|
INCLUDEPATH += thirdparty/instant-meshes/instant-meshes-dust3d/ext/tbb/include
|
|
|
|
INCLUDEPATH += thirdparty/instant-meshes/instant-meshes-dust3d/ext/dset
|
|
|
|
INCLUDEPATH += thirdparty/instant-meshes/instant-meshes-dust3d/ext/pss
|
|
|
|
INCLUDEPATH += thirdparty/instant-meshes/instant-meshes-dust3d/ext/pcg32
|
|
|
|
INCLUDEPATH += thirdparty/instant-meshes/instant-meshes-dust3d/ext/rply
|
|
|
|
INCLUDEPATH += thirdparty/instant-meshes/instant-meshes-dust3d/ext/half
|
|
|
|
unix {
|
|
|
|
SOURCES += thirdparty/instant-meshes/instant-meshes-api.cpp
|
2020-07-24 05:12:40 +00:00
|
|
|
LIBS += -L$${SOURCE_ROOT}thirdparty/instant-meshes/build -linstant-meshes
|
|
|
|
LIBS += -L$${SOURCE_ROOT}thirdparty/instant-meshes/build/ext_build/tbb -ltbb_static
|
2020-01-04 10:29:10 +00:00
|
|
|
unix:!macx {
|
|
|
|
LIBS += -ldl
|
2020-01-01 07:51:44 +00:00
|
|
|
}
|
|
|
|
}
|
2019-12-28 07:36:15 +00:00
|
|
|
win32 {
|
2020-01-04 10:29:10 +00:00
|
|
|
DEFINES += _USE_MATH_DEFINES
|
2020-07-24 05:12:40 +00:00
|
|
|
LIBS += -L$${SOURCE_ROOT}thirdparty/instant-meshes/build/RelWithDebInfo -linstant-meshes
|
|
|
|
LIBS += -L$${SOURCE_ROOT}thirdparty/instant-meshes/build/ext_build/tbb/RelWithDebInfo -ltbb
|
2019-12-28 07:36:15 +00:00
|
|
|
}
|
|
|
|
|
2020-01-16 13:07:16 +00:00
|
|
|
INCLUDEPATH += thirdparty/quickjs/quickjs-2019-07-09-dust3d
|
|
|
|
|
|
|
|
DEFINES += "CONFIG_VERSION=\"\\\"2019-07-09\\\"\""
|
|
|
|
|
|
|
|
SOURCES += thirdparty/quickjs/quickjs-2019-07-09-dust3d/quickjs.c
|
|
|
|
HEADERS += thirdparty/quickjs/quickjs-2019-07-09-dust3d/quickjs.h
|
|
|
|
|
|
|
|
SOURCES += thirdparty/quickjs/quickjs-2019-07-09-dust3d/cutils.c
|
|
|
|
HEADERS += thirdparty/quickjs/quickjs-2019-07-09-dust3d/cutils.h
|
|
|
|
|
|
|
|
SOURCES += thirdparty/quickjs/quickjs-2019-07-09-dust3d/libunicode.c
|
|
|
|
HEADERS += thirdparty/quickjs/quickjs-2019-07-09-dust3d/libunicode.h
|
|
|
|
|
|
|
|
SOURCES += thirdparty/quickjs/quickjs-2019-07-09-dust3d/libregexp.c
|
|
|
|
HEADERS += thirdparty/quickjs/quickjs-2019-07-09-dust3d/libregexp.h
|
|
|
|
|
2018-10-25 06:27:59 +00:00
|
|
|
INCLUDEPATH += thirdparty/crc64
|
|
|
|
|
|
|
|
SOURCES += thirdparty/crc64/crc64.c
|
|
|
|
HEADERS += thirdparty/crc64/crc64.h
|
|
|
|
|
2018-10-17 03:06:45 +00:00
|
|
|
INCLUDEPATH += thirdparty/miniz
|
|
|
|
|
|
|
|
SOURCES += thirdparty/miniz/miniz.c
|
|
|
|
HEADERS += thirdparty/miniz/miniz.h
|
|
|
|
|
|
|
|
INCLUDEPATH += thirdparty/fbx/src
|
|
|
|
|
|
|
|
SOURCES += thirdparty/fbx/src/fbxdocument.cpp
|
|
|
|
HEADERS += thirdparty/fbx/src/fbxdocument.h
|
|
|
|
|
|
|
|
SOURCES += thirdparty/fbx/src/fbxnode.cpp
|
|
|
|
HEADERS += thirdparty/fbx/src/fbxnode.h
|
|
|
|
|
|
|
|
SOURCES += thirdparty/fbx/src/fbxproperty.cpp
|
|
|
|
HEADERS += thirdparty/fbx/src/fbxproperty.h
|
|
|
|
|
|
|
|
SOURCES += thirdparty/fbx/src/fbxutil.cpp
|
|
|
|
HEADERS += thirdparty/fbx/src/fbxutil.h
|
|
|
|
|
2018-10-15 15:02:31 +00:00
|
|
|
INCLUDEPATH += thirdparty/simpleuv
|
|
|
|
INCLUDEPATH += thirdparty/simpleuv/thirdparty/libigl/include
|
|
|
|
INCLUDEPATH += thirdparty/simpleuv/thirdparty/eigen
|
|
|
|
INCLUDEPATH += thirdparty/simpleuv/thirdparty/squeezer
|
2018-05-07 16:08:19 +00:00
|
|
|
|
2018-10-15 15:02:31 +00:00
|
|
|
SOURCES += thirdparty/simpleuv/simpleuv/uvunwrapper.cpp
|
|
|
|
HEADERS += thirdparty/simpleuv/simpleuv/uvunwrapper.h
|
2018-05-07 16:08:19 +00:00
|
|
|
|
2018-10-15 15:02:31 +00:00
|
|
|
SOURCES += thirdparty/simpleuv/simpleuv/parametrize.cpp
|
|
|
|
HEADERS += thirdparty/simpleuv/simpleuv/parametrize.h
|
2018-05-07 16:08:19 +00:00
|
|
|
|
2018-10-15 15:02:31 +00:00
|
|
|
SOURCES += thirdparty/simpleuv/simpleuv/chartpacker.cpp
|
|
|
|
HEADERS += thirdparty/simpleuv/simpleuv/chartpacker.h
|
2018-05-07 16:08:19 +00:00
|
|
|
|
2018-10-15 15:02:31 +00:00
|
|
|
SOURCES += thirdparty/simpleuv/simpleuv/triangulate.cpp
|
|
|
|
HEADERS += thirdparty/simpleuv/simpleuv/triangulate.h
|
2018-05-07 16:08:19 +00:00
|
|
|
|
2018-10-15 15:02:31 +00:00
|
|
|
HEADERS += thirdparty/simpleuv/simpleuv/meshdatatype.h
|
2019-08-10 13:42:08 +00:00
|
|
|
SOURCES += thirdparty/simpleuv/simpleuv/meshdatatype.cpp
|
2018-05-07 16:08:19 +00:00
|
|
|
|
2018-10-15 15:02:31 +00:00
|
|
|
SOURCES += thirdparty/simpleuv/thirdparty/squeezer/maxrects.c
|
|
|
|
HEADERS += thirdparty/simpleuv/thirdparty/squeezer/maxrects.h
|
2018-05-07 16:08:19 +00:00
|
|
|
|
2018-10-15 15:02:31 +00:00
|
|
|
INCLUDEPATH += thirdparty/QtWaitingSpinner
|
2018-05-07 16:08:19 +00:00
|
|
|
|
2018-10-15 15:02:31 +00:00
|
|
|
SOURCES += thirdparty/QtWaitingSpinner/waitingspinnerwidget.cpp
|
|
|
|
HEADERS += thirdparty/QtWaitingSpinner/waitingspinnerwidget.h
|
2018-05-07 16:08:19 +00:00
|
|
|
|
2018-10-15 15:02:31 +00:00
|
|
|
INCLUDEPATH += thirdparty/json
|
2018-06-19 15:49:25 +00:00
|
|
|
|
|
|
|
win32 {
|
|
|
|
LIBS += -luser32
|
|
|
|
LIBS += -lopengl32
|
2018-09-28 02:45:39 +00:00
|
|
|
|
2018-06-19 15:49:25 +00:00
|
|
|
isEmpty(BOOST_INCLUDEDIR) {
|
|
|
|
BOOST_INCLUDEDIR = $$(BOOST_INCLUDEDIR)
|
|
|
|
}
|
|
|
|
isEmpty(CGAL_DIR) {
|
|
|
|
CGAL_DIR = $$(CGAL_DIR)
|
|
|
|
}
|
2018-09-28 02:45:39 +00:00
|
|
|
|
2018-06-19 15:49:25 +00:00
|
|
|
isEmpty(BOOST_INCLUDEDIR) {
|
2020-09-11 13:31:00 +00:00
|
|
|
error("No BOOST_INCLUDEDIR define found in environment variables")
|
2018-06-19 15:49:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
isEmpty(CGAL_DIR) {
|
2020-09-11 13:31:00 +00:00
|
|
|
error("No CGAL_DIR define found in environment variables")
|
2018-06-19 15:49:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GMP_LIBNAME = libgmp-10
|
|
|
|
MPFR_LIBNAME = libmpfr-4
|
|
|
|
CGAL_INCLUDEDIR = $$CGAL_DIR\include
|
|
|
|
GMP_INCLUDEDIR = $$CGAL_DIR\auxiliary\gmp\include
|
|
|
|
GMP_LIBDIR = $$CGAL_DIR\auxiliary\gmp\lib
|
|
|
|
MPFR_INCLUDEDIR = $$GMP_INCLUDEDIR
|
|
|
|
MPFR_LIBDIR = $$GMP_LIBDIR
|
|
|
|
}
|
|
|
|
|
|
|
|
macx {
|
|
|
|
GMP_LIBNAME = gmp
|
|
|
|
MPFR_LIBNAME = mpfr
|
|
|
|
BOOST_INCLUDEDIR = /usr/local/opt/boost/include
|
|
|
|
CGAL_INCLUDEDIR = /usr/local/opt/cgal/include
|
|
|
|
GMP_INCLUDEDIR = /usr/local/opt/gmp/include
|
|
|
|
GMP_LIBDIR = /usr/local/opt/gmp/lib
|
|
|
|
MPFR_INCLUDEDIR = /usr/local/opt/mpfr/include
|
|
|
|
MPFR_LIBDIR = /usr/local/opt/mpfr/lib
|
|
|
|
}
|
|
|
|
|
|
|
|
unix:!macx {
|
|
|
|
GMP_LIBNAME = gmp
|
|
|
|
MPFR_LIBNAME = mpfr
|
|
|
|
BOOST_INCLUDEDIR = /usr/local/include
|
|
|
|
CGAL_INCLUDEDIR = /usr/local/include
|
|
|
|
GMP_INCLUDEDIR = /usr/local/include
|
|
|
|
GMP_LIBDIR = /usr/local/lib
|
|
|
|
MPFR_INCLUDEDIR = /usr/local/include
|
|
|
|
MPFR_LIBDIR = /usr/local/lib
|
|
|
|
}
|
|
|
|
|
2018-04-13 13:03:42 +00:00
|
|
|
INCLUDEPATH += $$BOOST_INCLUDEDIR
|
|
|
|
|
|
|
|
INCLUDEPATH += $$GMP_INCLUDEDIR
|
|
|
|
LIBS += -L$$GMP_LIBDIR -l$$GMP_LIBNAME
|
|
|
|
|
|
|
|
INCLUDEPATH += $$MPFR_INCLUDEDIR
|
|
|
|
LIBS += -L$$MPFR_LIBDIR -l$$MPFR_LIBNAME
|
|
|
|
|
|
|
|
INCLUDEPATH += $$CGAL_INCLUDEDIR
|
2018-03-17 23:43:04 +00:00
|
|
|
|
2018-03-10 06:57:14 +00:00
|
|
|
target.path = ./
|
2020-07-24 05:12:40 +00:00
|
|
|
INSTALLS += target
|