cmake: build minimal platform plugin

Change-Id: Icd80b33e2840ab1d34d2502bfdc3cb9116bdfba4
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Albert Astals Cid 2019-02-11 14:30:29 +01:00
parent ad312879b5
commit 7edcdd7ac0
2 changed files with 41 additions and 0 deletions

View File

@ -1,3 +1,7 @@
if (NOT ANDROID)
add_subdirectory(minimal)
endif()
if(QT_FEATURE_xcb)
add_subdirectory(xcb)
endif()

View File

@ -0,0 +1,37 @@
# Generated from minimal.pro.
find_package(Freetype)
#####################################################################
## qminimal Plugin:
#####################################################################
add_qt_plugin(qminimal
TYPE platforms
SOURCES
main.cpp
qminimalbackingstore.cpp qminimalbackingstore.h
qminimalintegration.cpp qminimalintegration.h
DEFINES
QT_NO_FOREACH
LIBRARIES
Qt::CorePrivate
Qt::GuiPrivate
Qt::EventDispatcherSupportPrivate
Qt::FontDatabaseSupportPrivate
# OTHER_FILES = "minimal.json"
# PLUGIN_CLASS_NAME = "QMinimalIntegrationPlugin"
# _LOADED = "qt_plugin"
)
## Scopes:
#####################################################################
extend_target(qminimal CONDITION QT_FEATURE_freetype
LIBRARIES
Freetype::Freetype
)
#
#extend_target(qminimal CONDITION NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN
# # PLUGIN_EXTENDS = "-"
#)