diff options
author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-01-05 13:44:33 +0100 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-08-28 13:09:41 +0200 |
commit | 57900c49362a7f9bf11a72a46e309f8beeb631bb (patch) | |
tree | 2af3e7579d0e5ad4212e3fa2a793a5c15363b19e /src/imports/compositor/compositor.pro | |
parent | dc2ef3ae7435593284906e7cc32d69d97deaaf45 (diff) |
Update compositor api
Change-Id: Id8f1843116ecd3770260b2737527b4c278a849d6
Diffstat (limited to 'src/imports/compositor/compositor.pro')
-rw-r--r-- | src/imports/compositor/compositor.pro | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/imports/compositor/compositor.pro b/src/imports/compositor/compositor.pro index 3c6d5b46f..75fec9bf4 100644 --- a/src/imports/compositor/compositor.pro +++ b/src/imports/compositor/compositor.pro @@ -6,6 +6,35 @@ IMPORT_VERSION = 1.0 SOURCES += \ qwaylandquickcompositorplugin.cpp +COMPOSITOR_QML_FILES += \ + WaylandSurfaceChrome.qml \ + qmldir + +# Create the resource file +GENERATED_RESOURCE_FILE = $$OUT_PWD/compositor.qrc + +RESOURCE_CONTENT = \ + "<RCC>" \ + "<qresource prefix=\"/QtWayland/Compositor\">" + +for(resourcefile, COMPOSITOR_QML_FILES) { + resourcefileabsolutepath = $$absolute_path($$resourcefile) + relativepath_in = $$relative_path($$resourcefileabsolutepath, $$_PRO_FILE_PWD_) + relativepath_out = $$relative_path($$resourcefileabsolutepath, $$OUT_PWD) + RESOURCE_CONTENT += "<file alias=\"$$relativepath_in\">$$relativepath_out</file>" +} + +RESOURCE_CONTENT += \ + "</qresource>" \ + "</RCC>" + +write_file($$GENERATED_RESOURCE_FILE, RESOURCE_CONTENT)|error("Aborting.") + +RESOURCES += $$GENERATED_RESOURCE_FILE + +# In case of a debug build, deploy the QML files too +CONFIG(debug, debug|release): QML_FILES += $$COMPOSITOR_QML_FILES + DEFINES += QT_COMPOSITOR_QUICK QT += quick-private qml-private compositor compositor-private |