forked from qt-creator/qt-creator
AssetExporter: Add plugin to cmake and qbs build system
Change-Id: I2b48a854ed4e5e94cab73883f8b0f41d0ed15697 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -38,6 +38,25 @@ if (APPLE)
|
||||
set(QmlDesignerPluginInstallPrefix "${IDE_PLUGIN_PATH}/QmlDesigner")
|
||||
endif()
|
||||
|
||||
|
||||
add_qtc_plugin(assetexporterplugin
|
||||
CONDITION TARGET QmlDesigner
|
||||
DEPENDS Core ProjectExplorer QmlDesigner Utils Qt5::Qml
|
||||
PUBLIC_INCLUDES assetexporterplugin
|
||||
SOURCES
|
||||
assetexporterplugin/assetexportdialog.h assetexporterplugin/assetexportdialog.cpp assetexporterplugin/assetexportdialog.ui
|
||||
assetexporterplugin/assetexporter.h assetexporterplugin/assetexporter.cpp
|
||||
assetexporterplugin/assetexporterplugin.h assetexporterplugin/assetexporterplugin.cpp
|
||||
assetexporterplugin/assetexporterview.h assetexporterplugin/assetexporterview.cpp
|
||||
assetexporterplugin/assetexportpluginconstants.h
|
||||
assetexporterplugin/componentexporter.h assetexporterplugin/componentexporter.cpp
|
||||
assetexporterplugin/parsers/modelitemnodeparser.h assetexporterplugin/parsers/modelitemnodeparser.cpp
|
||||
assetexporterplugin/parsers/modelnodeparser.h assetexporterplugin/parsers/modelnodeparser.cpp
|
||||
assetexporterplugin/assetexporterplugin.qrc
|
||||
PLUGIN_PATH ${QmlDesignerPluginInstallPrefix}
|
||||
SKIP_DEBUG_CMAKE_FILE_CHECK
|
||||
)
|
||||
|
||||
add_qtc_plugin(componentsplugin
|
||||
CONDITION TARGET QmlDesigner
|
||||
DEPENDS Core QmlDesigner Utils Qt5::Qml
|
||||
|
@@ -0,0 +1,51 @@
|
||||
import qbs
|
||||
|
||||
QtcProduct {
|
||||
name: "assetexporterplugin"
|
||||
type: ["dynamiclibrary"]
|
||||
installDir: qtc.ide_plugin_path + '/' + installDirName
|
||||
property string installDirName: qbs.targetOS.contains("macos") ? "QmlDesigner" : "qmldesigner"
|
||||
|
||||
Depends { name: "Core" }
|
||||
Depends { name: "ProjectExplorer" }
|
||||
Depends { name: "QmlDesigner" }
|
||||
Depends { name: "Utils" }
|
||||
|
||||
cpp.includePaths: base.concat([
|
||||
"./",
|
||||
"../designercore/include",
|
||||
"../../../../share/qtcreator/qml/qmlpuppet/interfaces",
|
||||
"../../../../share/qtcreator/qml/qmlpuppet/types"
|
||||
])
|
||||
|
||||
Properties {
|
||||
condition: qbs.targetOS.contains("unix")
|
||||
cpp.internalVersion: ""
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "plugin metadata"
|
||||
files: ["assetexporterplugin.json"]
|
||||
fileTags: ["qt_plugin_metadata"]
|
||||
}
|
||||
|
||||
files: [
|
||||
"assetexportdialog.cpp",
|
||||
"assetexportdialog.h",
|
||||
"assetexportdialog.ui",
|
||||
"assetexporter.cpp",
|
||||
"assetexporter.h",
|
||||
"assetexporterplugin.cpp",
|
||||
"assetexporterplugin.h",
|
||||
"assetexporterplugin.qrc",
|
||||
"assetexporterview.cpp",
|
||||
"assetexporterview.h",
|
||||
"assetexportpluginconstants.h",
|
||||
"componentexporter.cpp",
|
||||
"componentexporter.h",
|
||||
"parsers/modelitemnodeparser.cpp",
|
||||
"parsers/modelitemnodeparser.h",
|
||||
"parsers/modelnodeparser.cpp",
|
||||
"parsers/modelnodeparser.h"
|
||||
]
|
||||
}
|
@@ -6,5 +6,6 @@ Project {
|
||||
"qmldesignerplugin.qbs",
|
||||
"qtquickplugin/qtquickplugin.qbs",
|
||||
"componentsplugin/componentsplugin.qbs",
|
||||
"assetexporterplugin/assetexporterplugin.qbs"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user