summaryrefslogtreecommitdiffstats
path: root/src/plugins/styles/mac/mac.pro
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-02-27 18:39:44 -0800
committerJake Petroules <jake.petroules@qt.io>2017-04-14 17:07:54 +0000
commit4f3249f32dbe5c20aabbfd9b4f9c558aaf449e48 (patch)
tree42fabff161ec455e2e5eeb0e4182c86f0abc82bb /src/plugins/styles/mac/mac.pro
parent571eb37ac95a5cf9d566e8c6c965838ee274f950 (diff)
Pluginize the platform styles
This enforces decoupling and in the case of QMacStyle, isolates QtWidgets and therefore end user applications, from Carbon/HITheme. Windows and Fusion are platform independent, so they remain built-in (but mostly because the Windows style is tightly coupled to other styles like QStylesheetStyle). Task-number: QTBUG-59428 Change-Id: Id6519fe0c5269c1bce5b5921f9db06257032a1c9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'src/plugins/styles/mac/mac.pro')
-rw-r--r--src/plugins/styles/mac/mac.pro19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/plugins/styles/mac/mac.pro b/src/plugins/styles/mac/mac.pro
new file mode 100644
index 0000000000..bf9660eed3
--- /dev/null
+++ b/src/plugins/styles/mac/mac.pro
@@ -0,0 +1,19 @@
+TARGET = qmacstyle
+
+QT += widgets-private
+
+SOURCES += \
+ main.mm \
+ qmacstyle_mac.mm
+
+HEADERS += \
+ qmacstyle_mac_p.h \
+ qmacstyle_mac_p_p.h
+
+LIBS_PRIVATE += -framework AppKit -framework Carbon
+
+DISTFILES += macstyle.json
+
+PLUGIN_TYPE = styles
+PLUGIN_CLASS_NAME = QMacStylePlugin
+load(qt_plugin)