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_ecore_common_dir = ../../../adaptors/ecore/common
46 include ../../../adaptors/ecore/common/file.list
48 # If we're not using any EFL, then we need to use libuv mainloop
50 adaptor_libuv_dir = ../../../adaptors/libuv
51 include ../../../adaptors/libuv/file.list
58 adaptor_ecore_wayland_dir = ../../../adaptors/ecore/wayland
59 include ../../../adaptors/ecore/wayland/file.list
62 adaptor_wayland_dir = ../../../adaptors/wayland
63 include ../../../adaptors/wayland/file.list
67 adaptor_x11_dir = ../../../adaptors/x11
68 include ../../../adaptors/x11/file.list
73 adaptor_ubuntu_dir = ../../../adaptors/ubuntu
74 include ../../../adaptors/ubuntu/file.list
77 adaptor_tizen_dir = ../../../adaptors/tizen
78 include ../../../adaptors/tizen/file.list
82 adaptor_mobile_dir = ../../../adaptors/mobile
83 include ../../../adaptors/mobile/file.list
87 adaptor_wearable_dir = ../../../adaptors/wearable
88 include ../../../adaptors/wearable/file.list
93 adaptor_tv_dir = ../../../adaptors/tv
94 include ../../../adaptors/tv/file.list
98 adaptor_public_api_dir = ../../../adaptors/public-api
99 include ../../../adaptors/public-api/file.list
101 # Devel API ( for use by Toolkit)
102 adaptor_devel_api_dir = ../../../adaptors/devel-api
103 include ../../../adaptors/devel-api/file.list
107 static_libraries_libunibreak_src_dir = ../../../text/dali/internal/libunibreak
108 include ../../../text/dali/internal/libunibreak/file.list
110 static_libraries_glyphy_src_dir = ../../../text/dali/internal/glyphy
111 include ../../../text/dali/internal/glyphy/file.list
114 package_doxy_dir = ../../../doc
115 include ../../../doc/file.list
117 ############# source files #############
119 # FRAMEWORK FILES for adaptor
120 # Either use ecore mainloop + appcore / uiman
121 # Or libuv main loop with no appcore / uimain
123 adaptor_internal_src_files = $(adaptor_tizen_framework_efl_src_files) \
124 $(adaptor_ecore_common_internal_src_files)
126 adaptor_internal_src_files = $(adaptor_tizen_framework_libuv_src_files)
132 adaptor_internal_src_files += $(adaptor_common_internal_src_files) \
133 $(adaptor_common_internal_default_profile_src_files) \
134 $(adaptor_tizen_internal_src_files) \
135 $(adaptor_tizen_internal_non_mobile_src_files) \
136 $(static_libraries_libunibreak_src_files)
141 adaptor_internal_src_files += $(adaptor_ecore_wayland_tizen_internal_src_files) \
142 $(adaptor_ecore_wayland_internal_default_profile_src_files)
144 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
145 endif # USE_ECORE_WAYLAND
147 adaptor_internal_src_files += $(adaptor_tizen_internal_egl_extension_src_files) \
148 $(adaptor_tizen_internal_native_image_src_files)
150 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
151 $(adaptor_common_internal_egl_extension_src_files) \
152 $(adaptor_x11_internal_default_profile_src_files)
154 endif # COMMON_PROFILE
160 adaptor_internal_src_files += $(adaptor_common_internal_src_files) \
161 $(adaptor_common_internal_default_profile_src_files) \
162 $(adaptor_ubuntu_internal_src_files) \
163 $(adaptor_x11_ubuntu_internal_src_files) \
164 $(adaptor_x11_internal_default_profile_src_files) \
165 $(static_libraries_libunibreak_src_files) \
166 $(adaptor_common_internal_egl_extension_src_files)
168 endif # UBUNTU_PROFILE
174 adaptor_internal_src_files += $(adaptor_common_internal_src_files) \
175 $(adaptor_common_internal_mobile_profile_src_files) \
176 $(adaptor_tizen_internal_src_files) \
177 $(static_libraries_libunibreak_src_files)
182 adaptor_internal_src_files += $(adaptor_ecore_wayland_tizen_internal_src_files)
184 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
185 endif # USE_ECORE_WAYLAND
187 adaptor_internal_src_files += $(adaptor_tizen_internal_egl_extension_src_files) \
188 $(adaptor_tizen_internal_native_image_src_files)
190 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
191 $(adaptor_common_internal_egl_extension_src_files)
194 endif # MOBILE_PROFILE
199 adaptor_internal_src_files += $(adaptor_common_internal_src_files) \
200 $(adaptor_common_internal_mobile_profile_src_files) \
201 $(adaptor_tizen_internal_src_files) \
202 $(static_libraries_libunibreak_src_files)
206 adaptor_internal_src_files += $(adaptor_ecore_wayland_tizen_internal_src_files)
208 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
209 endif # USE_ECORE_WAYLAND
211 adaptor_internal_src_files += $(adaptor_tizen_internal_egl_extension_src_files) \
212 $(adaptor_tizen_internal_native_image_src_files) \
213 $(adaptor_internal_wearable_profile_src_files)
215 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
216 $(adaptor_common_internal_egl_extension_src_files)
225 adaptor_internal_src_files += $(adaptor_common_internal_src_files) \
226 $(adaptor_common_internal_tv_profile_src_files) \
227 $(adaptor_tizen_internal_src_files) \
228 $(adaptor_tizen_internal_non_mobile_src_files) \
229 $(static_libraries_libunibreak_src_files)
233 adaptor_internal_src_files += $(adaptor_ecore_wayland_tizen_internal_src_files)
235 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
236 endif # USE_ECORE_WAYLAND
238 adaptor_internal_src_files += $(adaptor_tizen_internal_egl_extension_src_files) \
239 $(adaptor_tizen_internal_native_image_src_files)
241 adaptor_internal_src_files += $(adaptor_x11_tv_internal_src_files) \
242 $(adaptor_x11_internal_tv_profile_key_src_files) \
243 $(adaptor_common_internal_egl_extension_src_files)
248 # Node JS support for using an external libuv main loop. If not enabled then just use e-core as normal
249 # Used for things like callbacks, file-monintors, x input handling
251 main_loop_integration_src_files = $(adaptor_common_internal_uv_src_files)
252 input_event_handler_src_files = $(adaptor_uv_x_event_handler_internal_src_files)
254 main_loop_integration_src_files = $(adaptor_common_internal_ecore_src_files)
255 input_event_handler_src_files = $(adaptor_ecore_x_event_handler_internal_src_files)
258 if ENABLE_VECTOR_BASED_TEXT_RENDERING
259 adaptor_internal_src_files += $(static_libraries_glyphy_src_files)
260 DALI_ADAPTOR_CFLAGS += -DENABLE_VECTOR_BASED_TEXT_RENDERING
263 pkgconfigdir = $(libdir)/pkgconfig
264 pkgconfig_DATA = dali-adaptor.pc dali-adaptor-integration.pc
266 lib_LTLIBRARIES = libdali-adaptor.la
268 libdali_adaptor_la_SOURCES = \
269 $(base_adaptor_src_files) \
270 $(main_loop_integration_src_files) \
271 $(tizen_platform_abstraction_src_files) \
272 $(text_abstraction_src_files) \
273 $(devel_api_src_files) \
274 $(public_api_src_files) \
275 $(adaptor_internal_src_files) \
276 $(input_event_handler_src_files)
279 if ENABLE_NETWORK_LOGGING
280 libdali_adaptor_la_SOURCES += \
281 $(base_adaptor_networking_src_files)
284 libdali_adaptor_la_DEPENDENCIES =
286 # List include directories with more platform-specific (tizen) before portable root:
287 libdali_adaptor_la_includes = \
289 -I../../../platform-abstractions/tizen \
290 -I../../../platform-abstractions/tizen/resource-loader \
291 -I../../../platform-abstractions/portable \
292 -I../../../platform-abstractions/ \
293 -I../../../adaptors/public-api \
294 -I../../../adaptors/integration-api \
295 -I../../../adaptors/public-api/adaptor-framework \
296 -I../../../adaptors/devel-api/adaptor-framework \
297 -I../../../adaptors/common \
298 -I../../../adaptors/base/interfaces \
299 -I../../../adaptors/ \
301 -I../../../text/dali/internal/libunibreak
304 libdali_adaptor_la_includes += -I../../../adaptors/integration-api/wayland
307 libdali_adaptor_la_includes += \
308 -I../../../adaptors/ecore/common \
309 -I../../../adaptors/ecore/wayland
311 libdali_adaptor_la_includes += -I../../../adaptors/wayland \
312 -I../../../adaptors/wayland/input/text/imf \
313 -I../../../adaptors/wayland/clipboard
314 endif # USE_ECORE_WAYLADN
316 libdali_adaptor_la_includes += \
317 -I../../../adaptors/tizen
319 libdali_adaptor_la_includes += \
320 -I../../../adaptors/ecore/common \
321 -I../../../adaptors/x11 \
322 -I../../../adaptors/integration-api/x11
326 libdali_adaptor_la_includes += \
327 -I../../../adaptors/ubuntu
329 libdali_adaptor_la_includes += \
330 -I../../../adaptors/tizen
333 daliDefaultThemeDir = ${dataReadWriteDir}/theme/
334 daliShaderbinCacheDir = ${dataReadOnlyDir}/core/shaderbin/
336 libdali_adaptor_la_CXXFLAGS = \
337 -DDALI_DATA_RW_DIR="\"${daliReadWriteDir}\"" \
338 -DDALI_DATA_RO_DIR="\"${daliReadOnlyDir}\"" \
339 -DDALI_DEFAULT_FONT_CACHE_DIR="\"${daliDefaultFontCacheDir}\"" \
340 -DDALI_USER_FONT_CACHE_DIR="\"${daliUserFontCacheDir}\"" \
341 -DDALI_SHADERBIN_DIR="\"${daliShaderbinCacheDir}\"" \
342 -DDALI_DEFAULT_THEME_DIR="\"${daliDefaultThemeDir}\"" \
343 -DFONT_PRELOADED_PATH="\"${fontPreloadedPath}\"" \
344 -DFONT_DOWNLOADED_PATH="\"${fontDownloadedPath}\"" \
345 -DFONT_APPLICATION_PATH="\"${fontApplicationPath}\"" \
346 -DFONT_CONFIGURATION_FILE="\"${fontConfigurationFile}\"" \
347 -DNON_POWER_OF_TWO_TEXTURES \
348 -DDALI_COMPILATION -DDALI_ADAPTOR_COMPILATION \
349 -Werror -Wall -lgcc \
350 $(libdali_adaptor_la_includes) \
351 $(DALI_ADAPTOR_CFLAGS) \
353 $(OPENGLES20_CFLAGS) \
355 $(FONTCONFIG_CFLAGS) \
362 $(CAPI_SYSTEM_SENSOR_CFLAGS) \
366 $(TPKP_CURL_CFLAGS) \
369 # Todo, as soon as common repos are updated on build server remove this.
371 libdali_adaptor_la_CXXFLAGS += -DWAYLAND_EXTENSIONS_SUPPORTED
374 libdali_adaptor_la_CFLAGS = $(libdali_adaptor_la_CXXFLAGS)
376 libdali_adaptor_la_LIBADD = \
386 $(CAPI_SYSTEM_SENSOR_LIBS) \
393 $(APPCORE_WATCH_LIBS) \
400 # EVAS used indicator
401 libdali_adaptor_la_CXXFLAGS += $(ELEMENTARY_CFLAGS) \
404 $(ECORE_IPC_CFLAGS) \
409 libdali_adaptor_la_LIBADD += $(ELEMENTARY_LIBS) \
417 libdali_adaptor_la_CXXFLAGS += $(CAPI_APPFW_APPLICATION_CFLAGS) \
418 $(CAPI_SYSTEM_SYSTEM_SETTINGS_CFLAGS) \
419 $(CAPI_SYSTEM_INFO_CFLAGS) \
423 libdali_adaptor_la_LIBADD += $(CAPI_APPFW_APPLICATION_LIBS) \
424 $(CAPI_SYSTEM_SYSTEM_SETTINGS_LIBS) \
425 $(CAPI_SYSTEM_INFO_LIBS) \
431 # This is to avoid having to include wayland-egl.h everywhere
432 libdali_adaptor_la_CXXFLAGS += -DWL_EGL_PLATFORM
433 libdali_adaptor_la_CXXFLAGS += $(WAYLAND_CFLAGS)
434 libdali_adaptor_la_LIBADD += $(WAYLAND_LIBS)
436 libdali_adaptor_la_CXXFLAGS += $(X11_CFLAGS)
437 libdali_adaptor_la_LIBADD += $(X11_LIBS)
438 libdali_adaptor_la_LIBADD += $(ECORE_X_LIBS)
442 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
446 libdali_adaptor_la_CXXFLAGS += \
448 $(EFL_ASSIST_CFLAGS) \
449 $(NATIVE_BUFFER_CFLAGS) \
450 $(NATIVE_BUFFER_POOL_CFLAGS)
452 libdali_adaptor_la_LIBADD += \
454 $(NATIVE_BUFFER_LIBS) \
455 $(NATIVE_BUFFER_POOL_LIBS)
459 libdali_adaptor_la_CXXFLAGS += \
465 libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
466 libdali_adaptor_la_LIBADD +=
470 libdali_adaptor_la_LIBADD += -ljpeg
478 libdali_adaptor_la_CXXFLAGS += $(UTILX_CFLAGS)
479 libdali_adaptor_la_LIBADD += $(UTILX_LIBS)
483 tizenadaptorpublicapidir = $(devincludepath)/dali/public-api
484 tizenadaptorpublicapi_HEADERS = $(public_api_header_files)
486 tizenadaptordevelapidir= $(devincludepath)/dali/devel-api
488 tizenadaptorintegrationapidir = $(devincludepath)/dali/integration-api/adaptors
489 tizenadaptorintegrationapi_HEADERS = $(adaptor_integration_api_header_files)
492 tizenadaptorintegrationwaylandapidir = $(devincludepath)/dali/integration-api/adaptors
493 tizenadaptorintegrationwaylandapi_HEADERS = $(adaptor_integration_wayland_api_header_files)
495 tizenadaptorintegrationx11apidir = $(devincludepath)/dali/integration-api/adaptors
496 tizenadaptorintegrationx11api_HEADERS = $(adaptor_integration_x11_api_header_files)
499 tizenadaptorframeworkpublicapidir = $(tizenadaptorpublicapidir)/adaptor-framework
500 tizenadaptorframeworkpublicapi_HEADERS = $(public_api_adaptor_framework_header_files)
502 tizenadaptorframeworkdevelapidir = $(tizenadaptordevelapidir)/adaptor-framework
503 tizenadaptorframeworkdevelapi_HEADERS = $(devel_api_adaptor_framework_header_files)
505 tizentextabstractiondevelapidir = $(tizenadaptordevelapidir)/text-abstraction
506 tizentextabstractiondevelapi_HEADERS = $(text_abstraction_header_files)
509 tizenadaptorframeworkpublicapi_HEADERS += $(public_api_adaptor_tizen_header_files)
512 tizenadaptorframeworkdevelapi_HEADERS += $(devel_api_adaptor_tizen_x11_header_files)
515 endif # NOT UBUNTU_PROFILE
517 tizenadaptordaliheaderdir = $(devincludepath)/dali
518 tizenadaptordaliheader_HEADERS = $(adaptor_dali_header_file)
521 tizenadaptorpublicapi_HEADERS += $(adaptor_dali_wearable_header_file)
523 tizenwatchpublicapidir = $(tizenadaptorpublicapidir)/watch
524 tizenwatchpublicapi_HEADERS = $(public_dali_watch_header_files)
528 $(MKDIR_P) ${DESTDIR}/${daliUserFontCacheDir} ${DESTDIR}/${daliShaderbinCacheDir}
530 # Install resource log analyzer script
531 bin_SCRIPTS = ../../../adaptors/scripts/dalireslog.sh
533 # package doxygen file (contains doxygen grouping information)
534 packagedoxydir = $(devincludepath)/dali/doc
535 packagedoxy_HEADERS = $(package_doxy_files)
539 # turn off the linker test if were building for libuv
540 # We can't link to LibUV becase it is statically linked to Node.JS (by default)
541 if !LIB_UV_EVENT_LOOP
542 noinst_PROGRAMS = linker.test
543 endif # NOT LIB_UV_EVENT_LOOP
545 linker_test_SOURCES = linker-test.cpp
547 linker_test_CXXFLAGS = \
548 -DDALI_ADAPTOR_COMPILATION \
549 -I../../../adaptors/common \
550 -I../../../adaptors/public-api \
551 -I../../../adaptors/integration-api \
552 -I../../../adaptors/base/interfaces \
553 -I../../../adaptors/public-api/adaptor-framework \
554 -I../../../adaptors/devel-api/adaptor-framework \
555 $(DALI_ADAPTOR_CFLAGS) \
562 linker_test_CXXFLAGS += \
563 -I../../../adaptors/integration-api/wayland
566 linker_test_CXXFLAGS += \
567 -I../../../adaptors/integration-api/x11
571 linker_test_DEPENDENCIES = libdali-adaptor.la
572 linker_test_LDADD = \