2 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 # Build the Dali Adaptor library
20 ############# INCLUDE FILE LISTS #############
23 base_adaptor_src_dir = ../../../adaptors/base
24 include ../../../adaptors/base/file.list
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
32 text_src_dir = ../../../text
33 include ../../../text/file.list
36 adaptor_integration_api_dir = ../../../adaptors/integration-api
37 include ../../../adaptors/integration-api/file.list
40 adaptor_common_dir = ../../../adaptors/common
41 include ../../../adaptors/common/file.list
45 adaptor_wayland_dir = ../../../adaptors/wayland
46 include ../../../adaptors/wayland/file.list
49 adaptor_x11_dir = ../../../adaptors/x11
50 include ../../../adaptors/x11/file.list
55 adaptor_ubuntu_dir = ../../../adaptors/ubuntu
56 include ../../../adaptors/ubuntu/file.list
59 adaptor_tizen_dir = ../../../adaptors/tizen
60 include ../../../adaptors/tizen/file.list
64 adaptor_mobile_dir = ../../../adaptors/mobile
65 include ../../../adaptors/mobile/file.list
69 adaptor_tv_dir = ../../../adaptors/tv
70 include ../../../adaptors/tv/file.list
74 adaptor_public_api_dir = ../../../adaptors/public-api
75 include ../../../adaptors/public-api/file.list
78 static_libraries_libunibreak_src_dir = ../../../text/dali/internal/libunibreak
79 include ../../../text/dali/internal/libunibreak/file.list
81 ############# source files #############
84 tizen_platform_abstraction_src_files += $(tizen_assimp_src_files)
86 tizen_platform_abstraction_src_files += $(tizen_assimp_stubs_src_files)
87 endif # ASSIMP_ENABLED
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)
98 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files) \
99 $(adaptor_wayland_internal_default_profile_src_files)
101 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
102 $(adaptor_x11_internal_default_profile_src_files)
104 endif # COMMON_PROFILE
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)
117 endif # UBUNTU_PROFILE
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)
129 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
131 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files)
134 endif # MOBILE_PROFILE
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)
144 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
146 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files)
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)
160 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
162 adaptor_internal_src_files += $(adaptor_x11_tv_internal_src_files) \
163 $(adaptor_x11_internal_tv_profile_key_src_files)
168 pkgconfigdir = $(libdir)/pkgconfig
169 pkgconfig_DATA = dali-adaptor-integration.pc
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}
180 tizen_platform_abstraction_src_files += $(tizen_turbo_jpeg_loader)
182 tizen_platform_abstraction_src_files += $(tizen_jpeg_loader)
185 lib_LTLIBRARIES = libdali-adaptor.la
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)
194 libdali_adaptor_la_DEPENDENCIES =
196 # List include directories with more platform-specific (tizen) before portable root:
197 libdali_adaptor_la_includes = \
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/ \
210 -I../../../text/dali/internal/libunibreak
213 libdali_adaptor_la_includes += \
214 -I../../../adaptors/wayland \
215 -I../../../adaptors/integration-api/wayland
217 libdali_adaptor_la_includes += \
218 -I../../../adaptors/x11 \
219 -I../../../adaptors/integration-api/x11
223 libdali_adaptor_la_includes += \
224 -I../../../adaptors/ubuntu
226 libdali_adaptor_la_includes += \
227 -I../../../adaptors/tizen
230 daliDefaultFontCacheDir = ${dataReadOnlyDir}/glyphcache/
231 daliUserFontCacheDir = ${dataReadWriteDir}/glyphcache/
232 daliDefaultThemeDir = ${dataReadWriteDir}/theme/
233 daliShaderbinCacheDir = ${dataReadOnlyDir}/core/shaderbin/
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) \
253 $(OPENGLES20_CFLAGS) \
255 $(FONTCONFIG_CFLAGS) \
257 $(CAPI_APPFW_APPLICATION_CFLAGS) \
258 $(CAPI_SYSTEM_INFO_CFLAGS) \
259 $(ELEMENTARY_CFLAGS) \
262 $(ECORE_IPC_CFLAGS) \
274 $(CAPI_SYSTEM_SYSTEM_SETTINGS_CFLAGS)
276 libdali_adaptor_la_LIBADD = \
293 $(CAPI_SYSTEM_SYSTEM_SETTINGS_LIBS) \
294 $(CAPI_APPFW_APPLICATION_LIBS) \
296 $(CAPI_SYSTEM_INFO_LIBS) \
301 libdali_adaptor_la_CXXFLAGS += $(WAYLAND_CFLAGS)
302 libdali_adaptor_la_LIBADD += $(WAYLAND_LIBS)
304 libdali_adaptor_la_CXXFLAGS += $(X11_CFLAGS)
305 libdali_adaptor_la_LIBADD += $(X11_LIBS)
306 libdali_adaptor_la_LIBADD += $(ECORE_X_LIBS)
310 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
314 libdali_adaptor_la_CXXFLAGS += \
316 $(EFL_ASSIST_CFLAGS) \
317 $(NATIVE_BUFFER_CFLAGS) \
318 $(NATIVE_BUFFER_POOL_CFLAGS) \
319 -DFREETYPE_BITMAP_SUPPORT
321 libdali_adaptor_la_LIBADD += \
323 $(NATIVE_BUFFER_LIBS) \
324 $(NATIVE_BUFFER_POOL_LIBS)
328 libdali_adaptor_la_CXXFLAGS += \
330 $(EFL_ASSIST_CFLAGS) \
331 -DFREETYPE_BITMAP_SUPPORT
335 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS) \
336 -DFREETYPE_BITMAP_SUPPORT
337 libdali_adaptor_la_LIBADD +=
341 libdali_adaptor_la_LIBADD += -lturbojpeg
342 CFLAGS += -D_TURBO_JPEG_LOADER
344 libdali_adaptor_la_LIBADD += -ljpeg
348 libdali_adaptor_la_LIBADD += -ljpeg
352 libdali_adaptor_la_CXXFLAGS += -DFREETYPE_BITMAP_SUPPORT
355 tizenadaptorpublicapidir = $(devincludepath)/dali/public-api
356 tizenadaptorpublicapi_HEADERS = $(public_api_header_files)
358 tizenadaptorintegrationapidir = $(devincludepath)/dali/integration-api/adaptors
359 tizenadaptorintegrationapi_HEADERS = $(adaptor_integration_api_header_files)
362 tizenadaptorintegrationwaylandapidir = $(devincludepath)/dali/integration-api/adaptors
363 tizenadaptorintegrationwaylandapi_HEADERS = $(adaptor_integration_wayland_api_header_files)
365 tizenadaptorintegrationx11apidir = $(devincludepath)/dali/integration-api/adaptors
366 tizenadaptorintegrationx11api_HEADERS = $(adaptor_integration_x11_api_header_files)
369 tizenadaptorframeworkpublicapidir = $(tizenadaptorpublicapidir)/adaptor-framework
370 tizenadaptorframeworkpublicapi_HEADERS = $(public_api_adaptor_framework_header_files)
372 tizentextabstractionpublicapidir = $(tizenadaptorpublicapidir)/text-abstraction
373 tizentextabstractionpublicapi_HEADERS = $(text_abstraction_header_files)
378 tizenadaptorframeworkpublicapi_HEADERS += $(public_api_adaptor_tizen_x11_header_files)
381 endif # NOT UBUNTU_PROFILE
383 tizenadaptordaliheaderdir = $(devincludepath)/dali
384 tizenadaptordaliheader_HEADERS = $(adaptor_dali_header_file)
387 $(MKDIR_P) ${DESTDIR}/${daliUserFontCacheDir} ${DESTDIR}/${daliShaderbinCacheDir}
389 # Install resource log analyzer script
390 bin_SCRIPTS = ../../../adaptors/scripts/dalireslog.sh
394 noinst_PROGRAMS = linker.test
396 linker_test_SOURCES = linker-test.cpp
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) \
411 linker_test_CXXFLAGS += \
412 -I../../../adaptors/integration-api/wayland
415 linker_test_CXXFLAGS += \
416 -I../../../adaptors/integration-api/x11
420 linker_test_DEPENDENCIES = libdali-adaptor.la
421 linker_test_LDADD = \