2021-01-28 17:06:40 +08:00
|
|
|
QT += quick
|
2019-12-04 15:51:46 +08:00
|
|
|
|
|
|
|
CONFIG += c++11
|
|
|
|
|
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
|
|
# any Qt feature that has been marked deprecated (the exact warnings
|
|
|
|
# depend on your compiler). Refer to the documentation for the
|
|
|
|
# deprecated API to know how to port your code away from it.
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
2021-03-22 20:35:45 +08:00
|
|
|
DEFINES += V8_COMPRESS_POINTERS
|
2019-12-04 15:51:46 +08:00
|
|
|
|
|
|
|
# You can also make your code fail to compile if it uses deprecated APIs.
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
|
|
|
SOURCES += \
|
2021-02-04 16:59:58 +08:00
|
|
|
DoricContext.cpp \
|
|
|
|
DoricContextManager.cpp \
|
|
|
|
DoricNativeDriver.cpp \
|
|
|
|
DoricPanel.cpp \
|
|
|
|
DoricRegistry.cpp \
|
|
|
|
async/DoricAsyncResult.cpp \
|
|
|
|
async/DoricSettableFuture.cpp \
|
|
|
|
demo/DoricDemoBridge.cpp \
|
|
|
|
engine/DoricBridgeExtension.cpp \
|
|
|
|
engine/DoricJSEngine.cpp \
|
|
|
|
engine/DoricNativeEmpty.cpp \
|
|
|
|
engine/DoricNativeJSE.cpp \
|
|
|
|
engine/DoricNativeLog.cpp \
|
|
|
|
engine/DoricNativeRequire.cpp \
|
|
|
|
engine/DoricTimerExtension.cpp \
|
2021-03-31 10:36:45 +08:00
|
|
|
engine/native/NativeExecutor.cpp \
|
|
|
|
engine/v8/JSValueHelper.cpp \
|
|
|
|
engine/v8/V8Executor.cpp \
|
2019-12-13 17:45:27 +08:00
|
|
|
main.cpp \
|
2021-02-04 16:59:58 +08:00
|
|
|
plugin/DoricShaderPlugin.cpp \
|
2021-02-09 15:54:22 +08:00
|
|
|
shader/DoricGroupNode.cpp \
|
2021-02-24 10:50:41 +08:00
|
|
|
shader/DoricHLayoutNode.cpp \
|
2021-02-04 16:59:58 +08:00
|
|
|
shader/DoricRootNode.cpp \
|
2021-04-08 19:50:39 +08:00
|
|
|
shader/DoricScrollerNode.cpp \
|
2021-02-09 15:54:22 +08:00
|
|
|
shader/DoricStackNode.cpp \
|
|
|
|
shader/DoricSuperNode.cpp \
|
2021-02-25 19:04:14 +08:00
|
|
|
shader/DoricTextNode.cpp \
|
2021-02-23 14:28:08 +08:00
|
|
|
shader/DoricVLayoutNode.cpp \
|
2021-02-08 11:37:51 +08:00
|
|
|
shader/DoricViewNode.cpp \
|
2021-02-05 18:12:25 +08:00
|
|
|
utils/DoricConstant.cpp \
|
2021-02-26 14:24:23 +08:00
|
|
|
utils/DoricContextHolder.cpp \
|
2021-03-18 11:49:52 +08:00
|
|
|
utils/DoricMouseAreaBridge.cpp \
|
2021-03-01 16:24:40 +08:00
|
|
|
widget/flex/FlexLayout.cpp \
|
|
|
|
widget/flex/FlexLayoutConfig.cpp \
|
|
|
|
widget/flex/FlexLayoutService.cpp \
|
2021-02-26 14:24:23 +08:00
|
|
|
yoga/Utils.cpp \
|
|
|
|
yoga/YGConfig.cpp \
|
|
|
|
yoga/YGEnums.cpp \
|
|
|
|
yoga/YGLayout.cpp \
|
|
|
|
yoga/YGNode.cpp \
|
|
|
|
yoga/YGNodePrint.cpp \
|
|
|
|
yoga/YGStyle.cpp \
|
|
|
|
yoga/YGValue.cpp \
|
|
|
|
yoga/Yoga.cpp \
|
|
|
|
yoga/event/event.cpp \
|
|
|
|
yoga/internal/experiments.cpp \
|
|
|
|
yoga/log.cpp
|
2019-12-04 15:51:46 +08:00
|
|
|
|
|
|
|
RESOURCES += qml.qrc
|
|
|
|
|
|
|
|
# Additional import path used to resolve QML modules in Qt Creator's code model
|
|
|
|
QML_IMPORT_PATH =
|
|
|
|
|
|
|
|
# Additional import path used to resolve QML modules just for Qt Quick Designer
|
|
|
|
QML_DESIGNER_IMPORT_PATH =
|
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
|
|
|
|
HEADERS += \
|
2021-02-04 16:59:58 +08:00
|
|
|
DoricContext.h \
|
|
|
|
DoricContextManager.h \
|
|
|
|
DoricInterfaceDriver.h \
|
|
|
|
DoricNativeDriver.h \
|
|
|
|
DoricPanel.h \
|
|
|
|
DoricRegistry.h \
|
|
|
|
async/DoricAsyncCall.h \
|
|
|
|
async/DoricAsyncResult.h \
|
|
|
|
async/DoricCallback.h \
|
|
|
|
async/DoricSettableFuture.h \
|
|
|
|
demo/DoricDemoBridge.h \
|
|
|
|
engine/DoricBridgeExtension.h \
|
|
|
|
engine/DoricInterfaceJSE.h \
|
|
|
|
engine/DoricJSEngine.h \
|
|
|
|
engine/DoricNativeEmpty.h \
|
|
|
|
engine/DoricNativeJSE.h \
|
|
|
|
engine/DoricNativeLog.h \
|
|
|
|
engine/DoricNativeRequire.h \
|
|
|
|
engine/DoricTimerExtension.h \
|
2021-03-31 10:36:45 +08:00
|
|
|
engine/native/NativeExecutor.h \
|
|
|
|
engine/v8/JSValueHelper.h \
|
|
|
|
engine/v8/V8Executor.h \
|
2021-02-05 18:12:25 +08:00
|
|
|
plugin/DoricNativePlugin.h \
|
2021-02-04 16:59:58 +08:00
|
|
|
plugin/DoricShaderPlugin.h \
|
2021-02-09 15:54:22 +08:00
|
|
|
shader/DoricGroupNode.h \
|
2021-02-24 10:50:41 +08:00
|
|
|
shader/DoricHLayoutNode.h \
|
2021-02-04 16:59:58 +08:00
|
|
|
shader/DoricRootNode.h \
|
2021-04-08 19:50:39 +08:00
|
|
|
shader/DoricScrollerNode.h \
|
2021-02-09 15:54:22 +08:00
|
|
|
shader/DoricStackNode.h \
|
|
|
|
shader/DoricSuperNode.h \
|
2021-02-25 19:04:14 +08:00
|
|
|
shader/DoricTextNode.h \
|
2021-02-23 14:28:08 +08:00
|
|
|
shader/DoricVLayoutNode.h \
|
2021-02-08 11:37:51 +08:00
|
|
|
shader/DoricViewNode.h \
|
2021-02-04 16:59:58 +08:00
|
|
|
template/DoricSingleton.h \
|
|
|
|
utils/DoricConstant.h \
|
2021-02-05 18:12:25 +08:00
|
|
|
utils/DoricContextHolder.h \
|
2021-02-04 16:59:58 +08:00
|
|
|
utils/DoricCountDownLatch.h \
|
2021-03-18 11:49:52 +08:00
|
|
|
utils/DoricMouseAreaBridge.h \
|
2021-02-04 16:59:58 +08:00
|
|
|
utils/DoricObjectFactory.h \
|
2021-02-07 11:21:53 +08:00
|
|
|
utils/DoricThreadMode.h \
|
2021-02-26 14:24:23 +08:00
|
|
|
utils/DoricUtils.h \
|
2021-03-01 16:24:40 +08:00
|
|
|
widget/flex/FlexLayout.h \
|
|
|
|
widget/flex/FlexLayoutConfig.h \
|
|
|
|
widget/flex/FlexLayoutService.h \
|
2021-02-26 14:24:23 +08:00
|
|
|
yoga/Bitfield.h \
|
|
|
|
yoga/CompactValue.h \
|
|
|
|
yoga/Utils.h \
|
|
|
|
yoga/YGConfig.h \
|
|
|
|
yoga/YGEnums.h \
|
|
|
|
yoga/YGFloatOptional.h \
|
|
|
|
yoga/YGLayout.h \
|
|
|
|
yoga/YGMacros.h \
|
|
|
|
yoga/YGNode.h \
|
|
|
|
yoga/YGNodePrint.h \
|
|
|
|
yoga/YGStyle.h \
|
|
|
|
yoga/YGValue.h \
|
|
|
|
yoga/Yoga-internal.h \
|
|
|
|
yoga/Yoga.h \
|
|
|
|
yoga/event/event.h \
|
|
|
|
yoga/internal/experiments-inl.h \
|
|
|
|
yoga/internal/experiments.h \
|
|
|
|
yoga/log.h
|
2021-03-22 20:35:45 +08:00
|
|
|
|
|
|
|
win32:CONFIG(debug, debug|release): {
|
|
|
|
QMAKE_CFLAGS_DEBUG += -MT
|
|
|
|
QMAKE_CXXFLAGS_DEBUG += -MT
|
2021-04-07 09:43:35 +08:00
|
|
|
|
|
|
|
LIBS += -lwinmm
|
|
|
|
LIBS += -lAdvapi32
|
|
|
|
LIBS += -lDbghelp
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/library/v8/win32/include
|
|
|
|
|
|
|
|
LIBS += -L$$PWD/library/v8/win32/release/
|
|
|
|
LIBS += -lv8_monolith
|
2021-03-22 20:35:45 +08:00
|
|
|
}
|
|
|
|
else:win32:CONFIG(release, debug|release): {
|
|
|
|
QMAKE_CFLAGS_RELEASE += -MT
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -MT
|
2021-04-07 09:43:35 +08:00
|
|
|
|
|
|
|
LIBS += -lwinmm
|
|
|
|
LIBS += -lAdvapi32
|
|
|
|
LIBS += -lDbghelp
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/library/v8/win32/include
|
|
|
|
|
|
|
|
LIBS += -L$$PWD/library/v8/win32/release/
|
|
|
|
LIBS += -lv8_monolith
|
|
|
|
}
|
|
|
|
else:unix: {
|
|
|
|
QMAKE_CFLAGS_RELEASE += -MT
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -MT
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/library/v8/darwin/include
|
|
|
|
|
|
|
|
LIBS += -L$$PWD/library/v8/darwin/release/
|
|
|
|
LIBS += -lv8_monolith
|
2021-03-22 20:35:45 +08:00
|
|
|
}
|