Simplify a bit
[LibreOffice.git] / vcl / Library_vclplug_osx.mk
blobe0adee810a303c2be959ea7fdfdeeabb7c0e8905
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 $(eval $(call gb_Library_Library,vclplug_osx))
22 $(eval $(call gb_Library_set_include,vclplug_osx,\
23 $$(INCLUDE) \
24 -I$(SRCDIR)/vcl/inc \
27 $(eval $(call gb_Library_use_sdk_api,vclplug_osx))
29 $(eval $(call gb_Library_use_custom_headers,vclplug_osx,\
30 officecfg/registry \
33 # TODO: arguably the private CoreUI framework should never be used, no matter whether building
34 # a sandboxed version or a "regular" desktop version
35 $(eval $(call gb_Library_add_libs,vclplug_osx,\
36 -framework IOKit \
37 $(if $(ENABLE_MACOSX_SANDBOX),,\
38 -F/System/Library/PrivateFrameworks \
39 -framework CoreUI \
40 ) \
41 -lobjc \
44 $(eval $(call gb_Library_add_cxxflags,vclplug_osx,\
45 $(gb_OBJCXXFLAGS) \
48 $(eval $(call gb_Library_use_libraries,vclplug_osx,\
49 basegfx \
50 comphelper \
51 cppu \
52 cppuhelper \
53 i18nlangtag \
54 i18nutil \
55 sal \
56 salhelper \
57 tl \
58 vcl \
61 $(eval $(call gb_Library_use_externals,vclplug_osx,\
62 boost_headers \
63 harfbuzz \
64 $(if $(filter SKIA,$(BUILD_TYPE)), \
65 skia \
66 ) \
69 ifeq ($(DISABLE_GUI),)
70 $(eval $(call gb_Library_use_externals,vclplug_osx,\
71 epoxy \
73 endif
75 $(eval $(call gb_Library_add_defs,vclplug_osx,\
76 -DMACOSX_BUNDLE_IDENTIFIER=\"$(MACOSX_BUNDLE_IDENTIFIER)\" \
77 -DVCL_INTERNALS \
80 $(eval $(call gb_Library_add_objcxxobjects,vclplug_osx,\
81 vcl/osx/a11yactionwrapper \
82 vcl/osx/a11ycomponentwrapper \
83 vcl/osx/a11yfactory \
84 vcl/osx/a11yrolehelper \
85 vcl/osx/a11yselectionwrapper \
86 vcl/osx/a11ytablewrapper \
87 vcl/osx/a11ytextattributeswrapper \
88 vcl/osx/a11ytextwrapper \
89 vcl/osx/a11yutil \
90 vcl/osx/a11yvaluewrapper \
91 vcl/osx/a11ywrapper \
92 vcl/osx/a11ywrapperbutton \
93 vcl/osx/a11ywrappercheckbox \
94 vcl/osx/a11ywrappercombobox \
95 vcl/osx/a11ywrappergroup \
96 vcl/osx/a11ywrapperlist \
97 vcl/osx/a11ywrapperradiobutton \
98 vcl/osx/a11ywrapperradiogroup \
99 vcl/osx/a11ywrapperrow \
100 vcl/osx/a11ywrapperscrollarea \
101 vcl/osx/a11ywrapperscrollbar \
102 vcl/osx/a11ywrappersplitter \
103 vcl/osx/a11ywrapperstatictext \
104 vcl/osx/a11ywrappertabgroup \
105 vcl/osx/a11ywrappertextarea \
106 vcl/osx/a11ywrappertoolbar \
107 vcl/osx/printaccessoryview \
108 vcl/osx/printview \
109 vcl/osx/salframeview \
110 vcl/osx/salnsmenu \
111 vcl/osx/salnstimer \
112 vcl/osx/vclnsapp \
115 $(eval $(call gb_Library_add_exception_objects,vclplug_osx,\
116 vcl/osx/DataFlavorMapping \
117 vcl/osx/DragActionConversion \
118 vcl/osx/DragSource \
119 vcl/osx/DragSourceContext \
120 vcl/osx/DropTarget \
121 vcl/osx/HtmlFmtFlt \
122 vcl/osx/OSXTransferable \
123 vcl/osx/PictToBmpFlt \
124 vcl/osx/a11yfocuslistener \
125 vcl/osx/a11yfocustracker \
126 vcl/osx/a11ylistener \
127 vcl/osx/clipboard \
128 vcl/osx/documentfocuslistener \
129 vcl/osx/saldata \
130 vcl/osx/salframe \
131 vcl/osx/salgdiutils \
132 vcl/osx/salinst \
133 vcl/osx/salmacos \
134 vcl/osx/salmenu \
135 vcl/osx/salnativewidgets \
136 vcl/osx/salobj \
137 vcl/osx/salprn \
138 vcl/osx/salsys \
139 vcl/osx/saltimer \
140 vcl/osx/service_entry \
141 vcl/quartz/ctfonts \
142 vcl/quartz/salbmp \
143 vcl/quartz/salgdi \
144 vcl/quartz/salgdicommon \
145 vcl/quartz/salvd \
146 vcl/quartz/utils \
147 vcl/quartz/AquaGraphicsBackend \
148 $(if $(filter SKIA,$(BUILD_TYPE)), \
149 vcl/skia/osx/bitmap \
150 vcl/skia/osx/gdiimpl \
154 $(eval $(call gb_Library_use_system_darwin_frameworks,vclplug_osx,\
155 ApplicationServices \
156 Cocoa \
157 Carbon \
158 CoreFoundation \
161 ifneq ($(ENABLE_MACOSX_SANDBOX),TRUE)
162 $(eval $(call gb_Library_use_libraries,vclplug_osx,\
163 AppleRemote \
165 endif
167 # vim: set noet sw=4 ts=4: