2021-01-28 17:06:40 +08:00
|
|
|
QT += quick
|
2019-12-04 15:51:46 +08:00
|
|
|
|
2021-04-26 21:21:59 +08:00
|
|
|
CONFIG += c++14
|
2021-05-19 18:12:01 +08:00
|
|
|
QMAKE_CXXFLAGS += -std=c++14
|
|
|
|
|
2021-05-13 11:31:34 +08:00
|
|
|
TARGET = DoricCore
|
2019-12-04 15:51:46 +08:00
|
|
|
|
2021-04-29 20:12:49 +08:00
|
|
|
TEMPLATE = lib
|
|
|
|
|
2019-12-04 15:51:46 +08:00
|
|
|
# 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-05-18 16:15:28 +08:00
|
|
|
DEFINES += DORIC_LIBRARY
|
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 \
|
|
|
|
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 \
|
2021-04-20 11:46:56 +08:00
|
|
|
plugin/DoricModalPlugin.cpp \
|
2021-04-25 16:44:39 +08:00
|
|
|
plugin/DoricNetworkPlugin.cpp \
|
2021-06-07 17:12:55 +08:00
|
|
|
plugin/DoricNotificationPlugin.cpp \
|
2021-04-22 20:46:00 +08:00
|
|
|
plugin/DoricPopoverPlugin.cpp \
|
2021-02-04 16:59:58 +08:00
|
|
|
plugin/DoricShaderPlugin.cpp \
|
2021-05-06 10:01:56 +08:00
|
|
|
plugin/DoricStoragePlugin.cpp \
|
2021-06-02 10:11:14 +08:00
|
|
|
shader/DoricDraggableNode.cpp \
|
2021-06-02 16:34:38 +08:00
|
|
|
shader/DoricFlexNode.cpp \
|
2021-02-09 15:54:22 +08:00
|
|
|
shader/DoricGroupNode.cpp \
|
2021-02-24 10:50:41 +08:00
|
|
|
shader/DoricHLayoutNode.cpp \
|
2021-04-23 17:56:08 +08:00
|
|
|
shader/DoricImageNode.cpp \
|
2021-05-25 16:51:39 +08:00
|
|
|
shader/DoricInputNode.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-05-27 16:56:57 +08:00
|
|
|
shader/DoricSwitchNode.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-05-10 16:09:29 +08:00
|
|
|
shader/slider/DoricSlideItemNode.cpp \
|
2021-05-07 18:17:07 +08:00
|
|
|
shader/slider/DoricSliderNode.cpp \
|
2021-02-05 18:12:25 +08:00
|
|
|
utils/DoricConstant.cpp \
|
2021-02-26 14:24:23 +08:00
|
|
|
utils/DoricContextHolder.cpp \
|
2021-04-22 13:42:38 +08:00
|
|
|
utils/DoricDialogBridge.cpp \
|
2021-06-02 11:26:11 +08:00
|
|
|
utils/DoricDraggableBridge.cpp \
|
2021-06-07 18:12:31 +08:00
|
|
|
utils/DoricGlobalBroadcast.cpp \
|
2021-04-23 17:56:08 +08:00
|
|
|
utils/DoricImageBridge.cpp \
|
2021-05-27 10:56:58 +08:00
|
|
|
utils/DoricInputBridge.cpp \
|
2021-04-13 21:14:17 +08:00
|
|
|
utils/DoricLayouts.cpp \
|
2021-03-18 11:49:52 +08:00
|
|
|
utils/DoricMouseAreaBridge.cpp \
|
2021-05-31 19:28:45 +08:00
|
|
|
utils/DoricSlideItemBridge.cpp \
|
2021-06-01 19:30:37 +08:00
|
|
|
utils/DoricSliderBridge.cpp \
|
2021-05-27 18:18:30 +08:00
|
|
|
utils/DoricSwitchBridge.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-05-17 16:18:44 +08:00
|
|
|
Doric.h \
|
2021-02-04 16:59:58 +08:00
|
|
|
DoricContext.h \
|
|
|
|
DoricContextManager.h \
|
2021-05-18 16:15:28 +08:00
|
|
|
DoricExport.h \
|
2021-02-04 16:59:58 +08:00
|
|
|
DoricInterfaceDriver.h \
|
2021-05-17 16:18:44 +08:00
|
|
|
DoricLibrary.h \
|
2021-02-04 16:59:58 +08:00
|
|
|
DoricNativeDriver.h \
|
|
|
|
DoricPanel.h \
|
|
|
|
DoricRegistry.h \
|
|
|
|
async/DoricAsyncCall.h \
|
|
|
|
async/DoricAsyncResult.h \
|
|
|
|
engine/DoricBridgeExtension.h \
|
|
|
|
engine/DoricInterfaceJSE.h \
|
|
|
|
engine/DoricJSEngine.h \
|
|
|
|
engine/DoricNativeEmpty.h \
|
|
|
|
engine/DoricNativeJSE.h \
|
|
|
|
engine/DoricNativeLog.h \
|
|
|
|
engine/DoricNativeRequire.h \
|
2021-04-22 11:43:48 +08:00
|
|
|
engine/DoricPromise.h \
|
2021-02-04 16:59:58 +08:00
|
|
|
engine/DoricTimerExtension.h \
|
2021-03-31 10:36:45 +08:00
|
|
|
engine/native/NativeExecutor.h \
|
|
|
|
engine/v8/JSValueHelper.h \
|
|
|
|
engine/v8/V8Executor.h \
|
2021-04-20 11:46:56 +08:00
|
|
|
plugin/DoricModalPlugin.h \
|
2021-02-05 18:12:25 +08:00
|
|
|
plugin/DoricNativePlugin.h \
|
2021-04-25 16:44:39 +08:00
|
|
|
plugin/DoricNetworkPlugin.h \
|
2021-06-07 17:12:55 +08:00
|
|
|
plugin/DoricNotificationPlugin.h \
|
2021-04-22 20:46:00 +08:00
|
|
|
plugin/DoricPopoverPlugin.h \
|
2021-02-04 16:59:58 +08:00
|
|
|
plugin/DoricShaderPlugin.h \
|
2021-05-06 10:01:56 +08:00
|
|
|
plugin/DoricStoragePlugin.h \
|
2021-06-02 10:11:14 +08:00
|
|
|
shader/DoricDraggableNode.h \
|
2021-06-02 16:34:38 +08:00
|
|
|
shader/DoricFlexNode.h \
|
2021-02-09 15:54:22 +08:00
|
|
|
shader/DoricGroupNode.h \
|
2021-02-24 10:50:41 +08:00
|
|
|
shader/DoricHLayoutNode.h \
|
2021-04-23 17:56:08 +08:00
|
|
|
shader/DoricImageNode.h \
|
2021-05-25 16:51:39 +08:00
|
|
|
shader/DoricInputNode.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-05-27 16:56:57 +08:00
|
|
|
shader/DoricSwitchNode.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-05-10 16:09:29 +08:00
|
|
|
shader/slider/DoricSlideItemNode.h \
|
2021-05-07 18:17:07 +08:00
|
|
|
shader/slider/DoricSliderNode.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-04-22 13:42:38 +08:00
|
|
|
utils/DoricDialogBridge.h \
|
2021-06-02 11:26:11 +08:00
|
|
|
utils/DoricDraggableBridge.h \
|
2021-06-07 18:12:31 +08:00
|
|
|
utils/DoricGlobalBroadcast.h \
|
2021-04-23 17:56:08 +08:00
|
|
|
utils/DoricImageBridge.h \
|
2021-05-27 10:56:58 +08:00
|
|
|
utils/DoricInputBridge.h \
|
2021-04-13 21:14:17 +08:00
|
|
|
utils/DoricLayouts.h \
|
2021-03-18 11:49:52 +08:00
|
|
|
utils/DoricMouseAreaBridge.h \
|
2021-04-25 20:40:49 +08:00
|
|
|
utils/DoricNetworkService.h \
|
2021-02-04 16:59:58 +08:00
|
|
|
utils/DoricObjectFactory.h \
|
2021-05-31 19:28:45 +08:00
|
|
|
utils/DoricSlideItemBridge.h \
|
2021-06-01 19:30:37 +08:00
|
|
|
utils/DoricSliderBridge.h \
|
2021-05-27 18:18:30 +08:00
|
|
|
utils/DoricSwitchBridge.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-04-20 10:18:06 +08:00
|
|
|
yoga/BitUtils.h \
|
2021-02-26 14:24:23 +08:00
|
|
|
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): {
|
2021-05-14 17:41:37 +08:00
|
|
|
QMAKE_CFLAGS_DEBUG += -MTd
|
|
|
|
QMAKE_CXXFLAGS_DEBUG += -MTd
|
2021-04-07 09:43:35 +08:00
|
|
|
|
|
|
|
LIBS += -lwinmm
|
|
|
|
LIBS += -lAdvapi32
|
|
|
|
LIBS += -lDbghelp
|
|
|
|
|
2021-04-29 20:12:49 +08:00
|
|
|
INCLUDEPATH += $$PWD/../../v8/v8/win32/include
|
2021-04-07 09:43:35 +08:00
|
|
|
|
2021-05-19 21:56:21 +08:00
|
|
|
LIBS += -L$$PWD/../../v8/v8/win32/debug/ia32/
|
2021-04-07 09:43:35 +08:00
|
|
|
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
|
|
|
|
|
2021-04-29 20:12:49 +08:00
|
|
|
INCLUDEPATH += $$PWD/../../v8/v8/win32/include
|
2021-04-07 09:43:35 +08:00
|
|
|
|
2021-05-19 21:56:21 +08:00
|
|
|
LIBS += -L$$PWD/../../v8/v8/win32/release/ia32/
|
2021-04-07 09:43:35 +08:00
|
|
|
LIBS += -lv8_monolith
|
|
|
|
}
|
|
|
|
else:unix: {
|
|
|
|
QMAKE_CFLAGS_RELEASE += -MT
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -MT
|
|
|
|
|
2021-04-29 20:12:49 +08:00
|
|
|
INCLUDEPATH += $$PWD/../../v8/v8/darwin/include
|
2021-04-07 09:43:35 +08:00
|
|
|
|
2021-04-29 20:12:49 +08:00
|
|
|
LIBS += -L$$PWD/../../v8/v8/darwin/release/
|
2021-04-07 09:43:35 +08:00
|
|
|
LIBS += -lv8_monolith
|
2021-05-18 18:02:38 +08:00
|
|
|
|
|
|
|
DEFINES += V8_COMPRESS_POINTERS
|
2021-03-22 20:35:45 +08:00
|
|
|
}
|