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 slp_platform_abstraction_src_dir = ../../../platform-abstractions/slp
28 portable_platform_abstraction_src_dir = ../../../platform-abstractions/portable
29 include ../../../platform-abstractions/slp/file.list
32 text_src_dir = ../../../text
33 include ../../../text/file.list
36 adaptor_common_dir = ../../../adaptors/common
37 include ../../../adaptors/common/file.list
41 adaptor_wayland_dir = ../../../adaptors/wayland
42 include ../../../adaptors/wayland/file.list
45 adaptor_x11_dir = ../../../adaptors/x11
46 include ../../../adaptors/x11/file.list
51 adaptor_ubuntu_dir = ../../../adaptors/ubuntu
52 include ../../../adaptors/ubuntu/file.list
55 adaptor_tizen_dir = ../../../adaptors/tizen
56 include ../../../adaptors/tizen/file.list
60 adaptor_mobile_dir = ../../../adaptors/mobile
61 include ../../../adaptors/mobile/file.list
65 adaptor_tv_dir = ../../../adaptors/tv
66 include ../../../adaptors/tv/file.list
70 adaptor_public_api_dir = ../../../adaptors/public-api
71 include ../../../adaptors/public-api/file.list
74 static_libraries_libunibreak_src_dir = ../../../text/dali/internal/libunibreak
75 include ../../../text/dali/internal/libunibreak/file.list
77 ############# source files #############
80 slp_platform_abstraction_src_files += $(slp_assimp_src_files)
82 slp_platform_abstraction_src_files += $(slp_assimp_stubs_src_files)
83 endif # ASSIMP_ENABLED
88 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
89 $(adaptor_common_internal_default_profile_src_files) \
90 $(adaptor_tizen_internal_src_files) \
91 $(static_libraries_libunibreak_src_files)
94 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files) \
95 $(adaptor_wayland_internal_default_profile_src_files)
97 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
98 $(adaptor_x11_internal_default_profile_src_files)
100 endif # COMMON_PROFILE
106 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
107 $(adaptor_common_internal_default_profile_src_files) \
108 $(adaptor_ubuntu_internal_src_files) \
109 $(adaptor_x11_ubuntu_internal_src_files) \
110 $(adaptor_x11_internal_default_profile_src_files) \
111 $(static_libraries_libunibreak_src_files)
113 endif # UBUNTU_PROFILE
119 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
120 $(adaptor_common_internal_mobile_profile_src_files) \
121 $(adaptor_tizen_internal_src_files) \
122 $(adaptor_x11_tizen_internal_src_files) \
123 $(static_libraries_libunibreak_src_files)
131 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
132 $(adaptor_common_internal_mobile_profile_src_files) \
133 $(adaptor_tizen_internal_src_files) \
134 $(adaptor_x11_tizen_internal_src_files) \
135 $(static_libraries_libunibreak_src_files)
142 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
143 $(adaptor_common_internal_mobile_profile_src_files) \
144 $(adaptor_tizen_internal_src_files) \
145 $(adaptor_x11_tizen_internal_src_files) \
146 $(static_libraries_libunibreak_src_files)
153 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
154 $(adaptor_common_internal_tv_profile_src_files) \
155 $(adaptor_tizen_internal_src_files) \
156 $(adaptor_x11_tv_internal_src_files) \
157 $(static_libraries_libunibreak_src_files)
162 plugin_themes_dir = ../../../adaptors/common/feedback
163 dali_plugin_theme_files = $(plugin_themes_dir)/default-feedback-theme.json
164 dalifeedbackthemedir = ${dataReadOnlyDir}/themes/feedback-themes/
165 dalifeedbacktheme_DATA = ${dali_plugin_theme_files}
169 slp_platform_abstraction_src_files += $(slp_turbo_jpeg_loader)
171 slp_platform_abstraction_src_files += $(slp_jpeg_loader)
174 lib_LTLIBRARIES = libdali-adaptor.la
176 libdali_adaptor_la_SOURCES = \
177 $(base_adaptor_src_files) \
178 $(slp_platform_abstraction_src_files) \
179 $(text_abstraction_src_files) \
180 $(public_api_src_files) \
181 $(adaptor_internal_src_files)
183 libdali_adaptor_la_DEPENDENCIES =
185 # List include directories with more platform-specific (slp) before portable root:
186 libdali_adaptor_la_includes = \
188 -I../../../platform-abstractions/slp \
189 -I../../../platform-abstractions/slp/resource-loader \
190 -I../../../platform-abstractions/portable \
191 -I../../../platform-abstractions/ \
192 -I../../../adaptors/ \
193 -I../../../adaptors/public-api \
194 -I../../../adaptors/public-api/adaptor-framework \
195 -I../../../adaptors/common \
197 -I../../../text/dali/internal/libunibreak
200 libdali_adaptor_la_includes += \
201 -I../../../adaptors/wayland
203 libdali_adaptor_la_includes += \
204 -I../../../adaptors/x11
208 libdali_adaptor_la_includes += \
209 -I../../../adaptors/ubuntu
211 libdali_adaptor_la_includes += \
212 -I../../../adaptors/tizen
215 daliDefaultFontCacheDir = ${dataReadOnlyDir}/glyphcache/
216 daliUserFontCacheDir = ${dataReadWriteDir}/glyphcache/
217 daliDefaultThemeDir = ${dataReadWriteDir}/theme/
218 daliUserShaderCacheDir = ${dataReadWriteDir}/core/shaderbin/
220 libdali_adaptor_la_CXXFLAGS = \
221 -DDALI_DATA_RW_DIR="\"${daliReadWriteDir}\"" \
222 -DDALI_DATA_RO_DIR="\"${daliReadOnlyDir}\"" \
223 -DDALI_DEFAULT_FONT_CACHE_DIR="\"${daliDefaultFontCacheDir}\"" \
224 -DDALI_USER_FONT_CACHE_DIR="\"${daliUserFontCacheDir}\"" \
225 -DDALI_DEFAULT_THEME_DIR="\"${daliDefaultThemeDir}\"" \
226 -DFONT_PRELOADED_PATH="\"${fontPreloadedPath}\"" \
227 -DFONT_DOWNLOADED_PATH="\"${fontDownloadedPath}\"" \
228 -DFONT_APPLICATION_PATH="\"${fontApplicationPath}\"" \
229 -DFONT_CONFIGURATION_FILE_PATH="\"${fontConfigurationFilePath}\"" \
230 -DDALI_FEEDBACK_THEME_DIR="\"${dalifeedbackthemedir}\"" \
231 -DNON_POWER_OF_TWO_TEXTURES \
232 -DDALI_COMPILATION -DDALI_ADAPTOR_COMPILATION \
233 -Werror -Wall -lgcc \
234 $(libdali_adaptor_la_includes) \
235 $(DALI_ADAPTOR_CFLAGS) \
237 $(OPENGLES20_CFLAGS) \
239 $(FONTCONFIG_CFLAGS) \
241 $(CAPI_APPFW_APPLICATION_CFLAGS) \
242 $(ELEMENTARY_CFLAGS) \
245 $(ECORE_IPC_CFLAGS) \
257 $(CAPI_SYSTEM_SYSTEM_SETTINGS_CFLAGS)
259 libdali_adaptor_la_LIBADD = \
276 $(CAPI_SYSTEM_SYSTEM_SETTINGS_LIBS) \
277 $(CAPI_APPFW_APPLICATION_LIBS) \
283 libdali_adaptor_la_CXXFLAGS += $(WAYLAND_CFLAGS)
284 libdali_adaptor_la_LIBADD += $(WAYLAND_LIBS)
286 libdali_adaptor_la_CXXFLAGS += $(X11_CFLAGS)
287 libdali_adaptor_la_LIBADD += $(X11_LIBS)
288 libdali_adaptor_la_LIBADD += $(ECORE_X_LIBS)
292 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
296 libdali_adaptor_la_CXXFLAGS += \
298 $(EFL_ASSIST_CFLAGS) \
299 $(NATIVE_BUFFER_CFLAGS) \
300 $(NATIVE_BUFFER_POOL_CFLAGS)
302 libdali_adaptor_la_LIBADD += \
304 $(NATIVE_BUFFER_LIBS) \
305 $(NATIVE_BUFFER_POOL_LIBS)
309 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
313 libdali_adaptor_la_CXXFLAGS += \
319 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
320 libdali_adaptor_la_LIBADD +=
324 libdali_adaptor_la_LIBADD += -lturbojpeg
325 CFLAGS += -D_TURBO_JPEG_LOADER
327 libdali_adaptor_la_LIBADD += -ljpeg
331 libdali_adaptor_la_LIBADD += -ljpeg
334 tizenadaptorpublicapidir = $(devincludepath)/dali/public-api
335 tizenadaptorpublicapi_HEADERS = $(public_api_header_files)
337 tizenadaptorframeworkpublicapidir = $(tizenadaptorpublicapidir)/adaptor-framework
338 tizenadaptorframeworkpublicapi_HEADERS = $(public_api_adaptor_framework_header_files)
340 tizentextabstractionpublicapidir = $(tizenadaptorpublicapidir)/text-abstraction
341 tizentextabstractionpublicapi_HEADERS = $(text_abstraction_header_files)
343 tizenadaptordaliheaderdir = $(devincludepath)/dali
344 tizenadaptordaliheader_HEADERS = $(adaptor_dali_header_file)
347 $(MKDIR_P) ${DESTDIR}/${daliUserFontCacheDir} ${DESTDIR}/${daliUserShaderCacheDir}
349 # Install resource log analyzer script
350 bin_SCRIPTS = ../../../adaptors/scripts/dalireslog.sh
354 noinst_PROGRAMS = linker.test
356 linker_test_SOURCES = linker-test.cpp
358 linker_test_CXXFLAGS = \
359 -I../../../adaptors/common \
360 -I../../../adaptors/public-api \
361 -I../../../adaptors/public-api/adaptor-framework \
362 $(DALI_ADAPTOR_CFLAGS) \
368 linker_test_DEPENDENCIES = libdali-adaptor.la
369 linker_test_LDADD = \