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 adaptor_common_dir = ../../../adaptors/common
33 include ../../../adaptors/common/file.list
37 adaptor_wayland_dir = ../../../adaptors/wayland
38 include ../../../adaptors/wayland/file.list
41 adaptor_x11_dir = ../../../adaptors/x11
42 include ../../../adaptors/x11/file.list
47 adaptor_ubuntu_dir = ../../../adaptors/ubuntu
48 include ../../../adaptors/ubuntu/file.list
51 adaptor_tizen_dir = ../../../adaptors/tizen
52 include ../../../adaptors/tizen/file.list
56 adaptor_mobile_dir = ../../../adaptors/mobile
57 include ../../../adaptors/mobile/file.list
61 adaptor_tv_dir = ../../../adaptors/tv
62 include ../../../adaptors/tv/file.list
66 adaptor_public_api_dir = ../../../adaptors/public-api
67 include ../../../adaptors/public-api/file.list
70 ############# source files #############
73 slp_platform_abstraction_src_files += $(slp_assimp_src_files)
75 slp_platform_abstraction_src_files += $(slp_assimp_stubs_src_files)
76 endif # ASSIMP_ENABLED
81 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
82 $(adaptor_common_internal_default_profile_src_files) \
83 $(adaptor_tizen_internal_src_files)
86 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files) \
87 $(adaptor_wayland_internal_default_profile_src_files)
89 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
90 $(adaptor_x11_internal_default_profile_src_files)
92 endif # COMMON_PROFILE
98 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
99 $(adaptor_common_internal_default_profile_src_files) \
100 $(adaptor_ubuntu_internal_src_files) \
101 $(adaptor_x11_ubuntu_internal_src_files) \
102 $(adaptor_x11_internal_default_profile_src_files)
104 endif # UBUNTU_PROFILE
110 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
111 $(adaptor_common_internal_mobile_profile_src_files) \
112 $(adaptor_tizen_internal_src_files)
115 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
117 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files)
120 endif # MOBILE_PROFILE
125 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
126 $(adaptor_common_internal_mobile_profile_src_files) \
127 $(adaptor_tizen_internal_src_files) \
128 $(adaptor_x11_tizen_internal_src_files)
135 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
136 $(adaptor_common_internal_mobile_profile_src_files) \
137 $(adaptor_tizen_internal_src_files)
139 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
141 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files)
150 adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
151 $(adaptor_common_internal_tv_profile_src_files) \
152 $(adaptor_tizen_internal_src_files)
154 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
156 adaptor_internal_src_files += $(adaptor_x11_tv_internal_src_files) \
157 $(adaptor_x11_internal_tv_profile_key_src_files)
164 plugin_themes_dir = ../../../adaptors/common/feedback
165 dali_plugin_theme_files = $(plugin_themes_dir)/default-feedback-theme.json
166 dalifeedbackthemedir = ${dataReadOnlyDir}/themes/feedback-themes/
167 dalifeedbacktheme_DATA = ${dali_plugin_theme_files}
171 slp_platform_abstraction_src_files += $(slp_turbo_jpeg_loader)
173 slp_platform_abstraction_src_files += $(slp_jpeg_loader)
176 lib_LTLIBRARIES = libdali-adaptor.la
178 libdali_adaptor_la_SOURCES = \
179 $(base_adaptor_src_files) \
180 $(slp_platform_abstraction_src_files) \
181 $(public_api_src_files) \
182 $(adaptor_internal_src_files)
184 libdali_adaptor_la_DEPENDENCIES =
186 # List include directories with more platform-specific (slp) before portable root:
187 libdali_adaptor_la_includes = \
189 -I../../../platform-abstractions/slp \
190 -I../../../platform-abstractions/slp/resource-loader \
191 -I../../../platform-abstractions/portable \
192 -I../../../platform-abstractions/ \
193 -I../../../adaptors/public-api \
194 -I../../../adaptors/public-api/adaptor-framework \
195 -I../../../adaptors/common \
198 libdali_adaptor_la_includes += \
199 -I../../../adaptors/wayland
201 libdali_adaptor_la_includes += \
202 -I../../../adaptors/x11
206 libdali_adaptor_la_includes += \
207 -I../../../adaptors/ubuntu
209 libdali_adaptor_la_includes += \
210 -I../../../adaptors/tizen
213 daliDefaultFontCacheDir = ${dataReadOnlyDir}/glyphcache/
214 daliUserFontCacheDir = ${dataReadWriteDir}/glyphcache/
215 daliDefaultThemeDir = ${dataReadWriteDir}/theme/
216 daliShaderbinCacheDir = ${dataReadOnlyDir}/core/shaderbin/
218 libdali_adaptor_la_CXXFLAGS = \
219 -DDALI_DATA_RW_DIR="\"${daliReadWriteDir}\"" \
220 -DDALI_DATA_RO_DIR="\"${daliReadOnlyDir}\"" \
221 -DDALI_DEFAULT_FONT_CACHE_DIR="\"${daliDefaultFontCacheDir}\"" \
222 -DDALI_USER_FONT_CACHE_DIR="\"${daliUserFontCacheDir}\"" \
223 -DDALI_SHADERBIN_DIR="\"${daliShaderbinCacheDir}\"" \
224 -DDALI_DEFAULT_THEME_DIR="\"${daliDefaultThemeDir}\"" \
225 -DFONT_PRELOADED_PATH="\"${fontPreloadedPath}\"" \
226 -DFONT_DOWNLOADED_PATH="\"${fontDownloadedPath}\"" \
227 -DFONT_APPLICATION_PATH="\"${fontApplicationPath}\"" \
228 -DFONT_CONFIGURATION_FILE_PATH="\"${fontConfigurationFilePath}\"" \
229 -DDALI_FEEDBACK_THEME_DIR="\"${dalifeedbackthemedir}\"" \
230 -DNON_POWER_OF_TWO_TEXTURES \
231 -DDALI_COMPILATION -DDALI_ADAPTOR_COMPILATION \
232 -Werror -Wall -lgcc \
233 $(libdali_adaptor_la_includes) \
234 $(DALI_ADAPTOR_CFLAGS) \
236 $(OPENGLES20_CFLAGS) \
238 $(FONTCONFIG_CFLAGS) \
240 $(CAPI_APPFW_APPLICATION_CFLAGS) \
241 $(ELEMENTARY_CFLAGS) \
244 $(ECORE_IPC_CFLAGS) \
256 $(CAPI_SYSTEM_SYSTEM_SETTINGS_CFLAGS)
258 libdali_adaptor_la_LIBADD = \
275 $(CAPI_SYSTEM_SYSTEM_SETTINGS_LIBS) \
276 $(CAPI_APPFW_APPLICATION_LIBS) \
281 libdali_adaptor_la_CXXFLAGS += $(WAYLAND_CFLAGS)
282 libdali_adaptor_la_LIBADD += $(WAYLAND_LIBS)
284 libdali_adaptor_la_CXXFLAGS += $(X11_CFLAGS)
285 libdali_adaptor_la_LIBADD += $(X11_LIBS)
286 libdali_adaptor_la_LIBADD += $(ECORE_X_LIBS)
290 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
294 libdali_adaptor_la_CXXFLAGS += \
296 $(EFL_ASSIST_CFLAGS) \
297 $(NATIVE_BUFFER_CFLAGS) \
298 $(NATIVE_BUFFER_POOL_CFLAGS)
300 libdali_adaptor_la_LIBADD += \
302 $(NATIVE_BUFFER_LIBS) \
303 $(NATIVE_BUFFER_POOL_LIBS)
307 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
311 libdali_adaptor_la_CXXFLAGS += \
317 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
318 libdali_adaptor_la_LIBADD +=
322 libdali_adaptor_la_LIBADD += -lturbojpeg
323 CFLAGS += -D_TURBO_JPEG_LOADER
325 libdali_adaptor_la_LIBADD += -ljpeg
329 libdali_adaptor_la_LIBADD += -ljpeg
332 tizenadaptorpublicapidir = $(devincludepath)/dali/public-api
333 tizenadaptorpublicapi_HEADERS = $(public_api_header_files)
335 tizenadaptorframeworkpublicapidir = $(tizenadaptorpublicapidir)/adaptor-framework
336 tizenadaptorframeworkpublicapi_HEADERS = $(public_api_adaptor_framework_header_files)
338 tizenadaptordaliheaderdir = $(devincludepath)/dali
339 tizenadaptordaliheader_HEADERS = $(adaptor_dali_header_file)
342 $(MKDIR_P) ${DESTDIR}/${daliUserFontCacheDir} ${DESTDIR}/${daliShaderbinCacheDir}
344 # Install resource log analyzer script
345 bin_SCRIPTS = ../../../adaptors/scripts/dalireslog.sh
349 noinst_PROGRAMS = linker.test
351 linker_test_SOURCES = linker-test.cpp
353 linker_test_CXXFLAGS = \
354 -I../../../adaptors/common \
355 -I../../../adaptors/public-api \
356 -I../../../adaptors/public-api/adaptor-framework \
357 $(DALI_ADAPTOR_CFLAGS) \
363 linker_test_DEPENDENCIES = libdali-adaptor.la
364 linker_test_LDADD = \