Re-enable Color Emoji on platforms which have FreeType >= 2.0
[platform/core/uifw/dali-adaptor.git] / build / tizen / adaptor / Makefile.am
1 #
2 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 # Build the Dali Adaptor library
18
19
20 ############# INCLUDE FILE LISTS #############
21
22 # Base Adaptor
23 base_adaptor_src_dir = ../../../adaptors/base
24 include ../../../adaptors/base/file.list
25
26 # Platform Abstraction
27 tizen_platform_abstraction_src_dir = ../../../platform-abstractions/tizen
28 portable_platform_abstraction_src_dir = ../../../platform-abstractions/portable
29 include ../../../platform-abstractions/tizen/file.list
30
31 # Text Abstraction
32 text_src_dir = ../../../text
33 include ../../../text/file.list
34
35 # Integration
36 adaptor_integration_api_dir = ../../../adaptors/integration-api
37 include ../../../adaptors/integration-api/file.list
38
39 # Internal Common
40 adaptor_common_dir = ../../../adaptors/common
41 include ../../../adaptors/common/file.list
42
43 # Wayland
44 if WAYLAND
45 adaptor_wayland_dir = ../../../adaptors/wayland
46 include ../../../adaptors/wayland/file.list
47 else
48 # X11
49 adaptor_x11_dir = ../../../adaptors/x11
50 include ../../../adaptors/x11/file.list
51 endif
52
53 # Ubuntu
54 if UBUNTU_PROFILE
55 adaptor_ubuntu_dir = ../../../adaptors/ubuntu
56 include ../../../adaptors/ubuntu/file.list
57 else
58 # Tizen
59 adaptor_tizen_dir = ../../../adaptors/tizen
60 include ../../../adaptors/tizen/file.list
61 endif
62
63 # Mobile
64 adaptor_mobile_dir = ../../../adaptors/mobile
65 include ../../../adaptors/mobile/file.list
66
67 # TV
68 if TV_PROFILE
69 adaptor_tv_dir = ../../../adaptors/tv
70 include ../../../adaptors/tv/file.list
71 endif
72
73 # Public API
74 adaptor_public_api_dir = ../../../adaptors/public-api
75 include ../../../adaptors/public-api/file.list
76
77 # Static libraries
78 static_libraries_libunibreak_src_dir = ../../../text/dali/internal/libunibreak
79 include ../../../text/dali/internal/libunibreak/file.list
80
81 ############# source files #############
82
83 if ASSIMP_ENABLED
84 tizen_platform_abstraction_src_files += $(tizen_assimp_src_files)
85 else
86 tizen_platform_abstraction_src_files += $(tizen_assimp_stubs_src_files)
87 endif # ASSIMP_ENABLED
88
89 # COMMON
90 if COMMON_PROFILE
91
92 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
93                              $(adaptor_common_internal_default_profile_src_files) \
94                              $(adaptor_tizen_internal_src_files) \
95                              $(static_libraries_libunibreak_src_files)
96
97 if WAYLAND
98 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files) \
99                               $(adaptor_wayland_internal_default_profile_src_files)
100 else
101 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
102                               $(adaptor_x11_internal_default_profile_src_files)
103 endif # WAYLAND
104 endif # COMMON_PROFILE
105
106
107 # UBUNTU
108 if UBUNTU_PROFILE
109
110 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
111                              $(adaptor_common_internal_default_profile_src_files) \
112                              $(adaptor_ubuntu_internal_src_files) \
113                              $(adaptor_x11_ubuntu_internal_src_files) \
114                              $(adaptor_x11_internal_default_profile_src_files) \
115                              $(static_libraries_libunibreak_src_files)
116
117 endif # UBUNTU_PROFILE
118
119
120 # MOBILE
121 if MOBILE_PROFILE
122
123 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
124                              $(adaptor_common_internal_mobile_profile_src_files) \
125                              $(adaptor_tizen_internal_src_files) \
126                              $(static_libraries_libunibreak_src_files)
127
128 if WAYLAND
129 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
130 else
131 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files)
132 endif # WAYLAND
133
134 endif # MOBILE_PROFILE
135
136 # WEARABLE
137 if WEARABLE_PROFILE
138
139 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
140                              $(adaptor_common_internal_mobile_profile_src_files) \
141                              $(adaptor_tizen_internal_src_files) \
142                              $(static_libraries_libunibreak_src_files)
143 if WAYLAND
144 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
145 else
146 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files)
147 endif # WAYLAND
148
149 endif # WEARABLE
150
151
152 # TV
153 if TV_PROFILE
154
155 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
156                              $(adaptor_common_internal_tv_profile_src_files) \
157                              $(adaptor_tizen_internal_src_files) \
158                              $(static_libraries_libunibreak_src_files)
159 if WAYLAND
160 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
161 else
162 adaptor_internal_src_files += $(adaptor_x11_tv_internal_src_files) \
163                              $(adaptor_x11_internal_tv_profile_key_src_files)
164 endif # WAYLAND
165
166 endif
167
168 pkgconfigdir = $(libdir)/pkgconfig
169 pkgconfig_DATA = dali-adaptor-integration.pc
170
171 # Feedback Plugin
172 if USE_FEEDBACK
173 plugin_themes_dir = ../../../adaptors/common/feedback
174 dali_plugin_theme_files = $(plugin_themes_dir)/default-feedback-theme.json
175 dalifeedbackthemedir = ${dataReadOnlyDir}/themes/feedback-themes/
176 dalifeedbacktheme_DATA = ${dali_plugin_theme_files}
177 endif
178
179 if TURBO_JPEG_IS_ON
180   tizen_platform_abstraction_src_files += $(tizen_turbo_jpeg_loader)
181 else
182   tizen_platform_abstraction_src_files += $(tizen_jpeg_loader)
183 endif
184
185 lib_LTLIBRARIES = libdali-adaptor.la
186
187 libdali_adaptor_la_SOURCES = \
188                      $(base_adaptor_src_files) \
189                      $(tizen_platform_abstraction_src_files) \
190                      $(text_abstraction_src_files) \
191                      $(public_api_src_files) \
192                      $(adaptor_internal_src_files)
193
194 libdali_adaptor_la_DEPENDENCIES =
195
196 # List include directories with more platform-specific (tizen) before portable root:
197 libdali_adaptor_la_includes = \
198                       -I../../.. \
199                       -I../../../platform-abstractions/tizen \
200                       -I../../../platform-abstractions/tizen/resource-loader \
201                       -I../../../platform-abstractions/portable \
202                       -I../../../platform-abstractions/ \
203                       -I../../../adaptors/public-api \
204                       -I../../../adaptors/integration-api \
205                       -I../../../adaptors/public-api/adaptor-framework \
206                       -I../../../adaptors/common \
207                       -I../../../adaptors/base/interfaces \
208                       -I../../../adaptors/ \
209                       -I../../../text \
210                       -I../../../text/dali/internal/libunibreak
211
212 if WAYLAND
213 libdali_adaptor_la_includes += \
214                       -I../../../adaptors/wayland \
215                       -I../../../adaptors/integration-api/wayland
216 else
217 libdali_adaptor_la_includes += \
218                       -I../../../adaptors/x11 \
219                       -I../../../adaptors/integration-api/x11
220 endif
221
222 if UBUNTU_PROFILE
223 libdali_adaptor_la_includes += \
224                       -I../../../adaptors/ubuntu
225 else
226 libdali_adaptor_la_includes += \
227                       -I../../../adaptors/tizen
228 endif
229
230 daliDefaultFontCacheDir = ${dataReadOnlyDir}/glyphcache/
231 daliUserFontCacheDir = ${dataReadWriteDir}/glyphcache/
232 daliDefaultThemeDir  = ${dataReadWriteDir}/theme/
233 daliShaderbinCacheDir = ${dataReadOnlyDir}/core/shaderbin/
234
235 libdali_adaptor_la_CXXFLAGS = \
236                       -DDALI_DATA_RW_DIR="\"${daliReadWriteDir}\"" \
237                       -DDALI_DATA_RO_DIR="\"${daliReadOnlyDir}\"" \
238                       -DDALI_DEFAULT_FONT_CACHE_DIR="\"${daliDefaultFontCacheDir}\"" \
239                       -DDALI_USER_FONT_CACHE_DIR="\"${daliUserFontCacheDir}\"" \
240                       -DDALI_SHADERBIN_DIR="\"${daliShaderbinCacheDir}\"" \
241                       -DDALI_DEFAULT_THEME_DIR="\"${daliDefaultThemeDir}\"" \
242                       -DFONT_PRELOADED_PATH="\"${fontPreloadedPath}\"" \
243                       -DFONT_DOWNLOADED_PATH="\"${fontDownloadedPath}\"" \
244                       -DFONT_APPLICATION_PATH="\"${fontApplicationPath}\"" \
245                       -DFONT_CONFIGURATION_FILE_PATH="\"${fontConfigurationFilePath}\"" \
246                       -DDALI_FEEDBACK_THEME_DIR="\"${dalifeedbackthemedir}\"" \
247                       -DNON_POWER_OF_TWO_TEXTURES \
248                       -DDALI_COMPILATION -DDALI_ADAPTOR_COMPILATION \
249                       -Werror -Wall -lgcc \
250                       $(libdali_adaptor_la_includes) \
251                       $(DALI_ADAPTOR_CFLAGS) \
252                       $(DALICORE_CFLAGS) \
253                       $(OPENGLES20_CFLAGS) \
254                       $(FREETYPE_CFLAGS) \
255                       $(FONTCONFIG_CFLAGS) \
256                       $(PNG_CFLAGS) \
257                       $(CAPI_APPFW_APPLICATION_CFLAGS) \
258                       $(CAPI_SYSTEM_INFO_CFLAGS) \
259                       $(ELEMENTARY_CFLAGS) \
260                       $(EVAS_CFLAGS) \
261                       $(ECORE_CFLAGS) \
262                       $(ECORE_IPC_CFLAGS) \
263                       $(DLOG_CFLAGS) \
264                       $(XML_CFLAGS) \
265                       $(VCONF_CFLAGS) \
266                       $(EXIF_CFLAGS) \
267                       $(MMFSOUND_CFLAGS) \
268                       $(TTS_CFLAGS) \
269                       $(SENSOR_CFLAGS) \
270                       $(LIBDRM_CFLAGS) \
271                       $(LIBEXIF_CFLAGS) \
272                       $(LIBCURL_CFLAGS) \
273                       $(ASSIMP_CFLAGS) \
274                       $(CAPI_SYSTEM_SYSTEM_SETTINGS_CFLAGS)
275
276 libdali_adaptor_la_LIBADD = \
277                       $(DALICORE_LIBS) \
278                       $(OPENGLES20_LIBS) \
279                       $(FREETYPE_LIBS) \
280                       $(FONTCONFIG_LIBS) \
281                       $(PNG_LIBS) \
282                       $(ELEMENTARY_LIBS) \
283                       $(ECORE_IPC_LIBS) \
284                       $(DLOG_LIBS) \
285                       $(XML_LIBS) \
286                       $(VCONF_LIBS) \
287                       $(EXIF_LIBS) \
288                       $(TTS_LIBS) \
289                       $(SENSOR_LIBS) \
290                       $(LIBDRM_LIBS) \
291                       $(LIBEXIF_LIBS) \
292                       $(LIBCURL_LIBS) \
293                       $(CAPI_SYSTEM_SYSTEM_SETTINGS_LIBS) \
294                       $(CAPI_APPFW_APPLICATION_LIBS) \
295                       $(HARFBUZZ_LIBS) \
296                       $(CAPI_SYSTEM_INFO_LIBS) \
297                       -lgif \
298                       -lboost_thread
299
300 if WAYLAND
301 libdali_adaptor_la_CXXFLAGS += $(WAYLAND_CFLAGS)
302 libdali_adaptor_la_LIBADD += $(WAYLAND_LIBS)
303 else
304 libdali_adaptor_la_CXXFLAGS += $(X11_CFLAGS)
305 libdali_adaptor_la_LIBADD += $(X11_LIBS)
306 libdali_adaptor_la_LIBADD += $(ECORE_X_LIBS)
307 endif
308
309 if COMMON_PROFILE
310 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
311 endif
312
313 if MOBILE_PROFILE
314 libdali_adaptor_la_CXXFLAGS += \
315                       $(DEVICED_CFLAGS) \
316                       $(EFL_ASSIST_CFLAGS) \
317                       $(NATIVE_BUFFER_CFLAGS) \
318                       $(NATIVE_BUFFER_POOL_CFLAGS) \
319                       -DFREETYPE_BITMAP_SUPPORT
320
321 libdali_adaptor_la_LIBADD += \
322                       $(EFL_ASSIST_LIBS) \
323                       $(NATIVE_BUFFER_LIBS) \
324                       $(NATIVE_BUFFER_POOL_LIBS)
325 endif
326
327 if WEARABLE_PROFILE
328 libdali_adaptor_la_CXXFLAGS += \
329                       $(HAPTIC_CFLAGS) \
330                       $(EFL_ASSIST_CFLAGS) \
331                       -DFREETYPE_BITMAP_SUPPORT
332 endif
333
334 if TV_PROFILE
335 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS) \
336                                -DFREETYPE_BITMAP_SUPPORT
337 libdali_adaptor_la_LIBADD +=
338 endif
339
340 if TURBO_JPEG_IS_ON
341 libdali_adaptor_la_LIBADD += -lturbojpeg
342 CFLAGS += -D_TURBO_JPEG_LOADER
343 if UBUNTU_PROFILE
344 libdali_adaptor_la_LIBADD += -ljpeg
345 CFLAGS += -fPIC
346 endif
347 else
348 libdali_adaptor_la_LIBADD += -ljpeg
349 endif
350
351 if UBUNTU_PROFILE
352 libdali_adaptor_la_CXXFLAGS += -DFREETYPE_BITMAP_SUPPORT
353 endif
354
355 tizenadaptorpublicapidir = $(devincludepath)/dali/public-api
356 tizenadaptorpublicapi_HEADERS = $(public_api_header_files)
357
358 tizenadaptorintegrationapidir = $(devincludepath)/dali/integration-api/adaptors
359 tizenadaptorintegrationapi_HEADERS = $(adaptor_integration_api_header_files)
360
361 if WAYLAND
362 tizenadaptorintegrationwaylandapidir = $(devincludepath)/dali/integration-api/adaptors
363 tizenadaptorintegrationwaylandapi_HEADERS = $(adaptor_integration_wayland_api_header_files)
364 else
365 tizenadaptorintegrationx11apidir = $(devincludepath)/dali/integration-api/adaptors
366 tizenadaptorintegrationx11api_HEADERS = $(adaptor_integration_x11_api_header_files)
367 endif
368
369 tizenadaptorframeworkpublicapidir = $(tizenadaptorpublicapidir)/adaptor-framework
370 tizenadaptorframeworkpublicapi_HEADERS = $(public_api_adaptor_framework_header_files)
371
372 tizentextabstractionpublicapidir = $(tizenadaptorpublicapidir)/text-abstraction
373 tizentextabstractionpublicapi_HEADERS = $(text_abstraction_header_files)
374
375 if !UBUNTU_PROFILE
376
377 if !WAYLAND
378 tizenadaptorframeworkpublicapi_HEADERS += $(public_api_adaptor_tizen_x11_header_files)
379 endif # NOT WAYLAND
380
381 endif # NOT UBUNTU_PROFILE
382
383 tizenadaptordaliheaderdir = $(devincludepath)/dali
384 tizenadaptordaliheader_HEADERS = $(adaptor_dali_header_file)
385
386 install-data-local:
387         $(MKDIR_P) ${DESTDIR}/${daliUserFontCacheDir} ${DESTDIR}/${daliShaderbinCacheDir}
388
389 # Install resource log analyzer script
390 bin_SCRIPTS = ../../../adaptors/scripts/dalireslog.sh
391
392 # linking test
393
394 noinst_PROGRAMS = linker.test
395
396 linker_test_SOURCES = linker-test.cpp
397
398 linker_test_CXXFLAGS = \
399   -I../../../adaptors/common \
400   -I../../../adaptors/public-api \
401   -I../../../adaptors/integration-api \
402   -I../../../adaptors/base/interfaces \
403   -I../../../adaptors/public-api/adaptor-framework \
404   $(DALI_ADAPTOR_CFLAGS) \
405   $(DALICORE_CFLAGS) \
406   $(VCONF_CFLAGS) \
407   $(DALIX11_CFLAGS) \
408   -Werror -Wall
409
410 if WAYLAND
411 linker_test_CXXFLAGS += \
412   -I../../../adaptors/integration-api/wayland
413 else
414
415 linker_test_CXXFLAGS += \
416   -I../../../adaptors/integration-api/x11
417 endif
418
419
420 linker_test_DEPENDENCIES = libdali-adaptor.la
421 linker_test_LDADD = \
422   $(DALICORE_LIBS) \
423   $(VCONF_LIBS) \
424   libdali-adaptor.la \
425   $(HARFBUZZ_LIBS) \
426   -L${prefix}/lib