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_tv_dir = ../../../adaptors/tv
88 include ../../../adaptors/tv/file.list
92 adaptor_public_api_dir = ../../../adaptors/public-api
93 include ../../../adaptors/public-api/file.list
95 # Devel API ( for use by Toolkit)
96 adaptor_devel_api_dir = ../../../adaptors/devel-api
97 include ../../../adaptors/devel-api/file.list
101 static_libraries_libunibreak_src_dir = ../../../text/dali/internal/libunibreak
102 include ../../../text/dali/internal/libunibreak/file.list
105 package_doxy_dir = ../../../doc
106 include ../../../doc/file.list
108 ############# source files #############
110 # FRAMEWORK FILES for adaptor
111 # Either use ecore mainloop + appcore / uiman
112 # Or libuv main loop with no appcore / uimain
114 adaptor_internal_src_files = $(adaptor_tizen_framework_efl_src_files) \
115 $(adaptor_ecore_common_internal_src_files)
117 adaptor_internal_src_files = $(adaptor_tizen_framework_libuv_src_files)
123 adaptor_internal_src_files += $(adaptor_common_internal_src_files) \
124 $(adaptor_common_internal_default_profile_src_files) \
125 $(adaptor_tizen_internal_src_files) \
126 $(adaptor_tizen_internal_non_mobile_src_files) \
127 $(static_libraries_libunibreak_src_files)
131 adaptor_internal_src_files += $(adaptor_ecore_wayland_tizen_internal_src_files) \
132 $(adaptor_ecore_wayland_internal_default_profile_src_files)
134 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
135 endif # USE_ECORE_WAYLAND
137 adaptor_internal_src_files += $(adaptor_tizen_internal_egl_extension_src_files)\
138 $(adaptor_tizen_internal_native_image_src_files)
140 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
141 $(adaptor_common_internal_egl_extension_src_files) \
142 $(adaptor_x11_internal_default_profile_src_files)
144 endif # COMMON_PROFILE
150 adaptor_internal_src_files += $(adaptor_common_internal_src_files) \
151 $(adaptor_common_internal_default_profile_src_files) \
152 $(adaptor_ubuntu_internal_src_files) \
153 $(adaptor_x11_ubuntu_internal_src_files) \
154 $(adaptor_x11_internal_default_profile_src_files) \
155 $(static_libraries_libunibreak_src_files) \
156 $(adaptor_common_internal_egl_extension_src_files)
158 endif # UBUNTU_PROFILE
164 adaptor_internal_src_files += $(adaptor_common_internal_src_files) \
165 $(adaptor_common_internal_mobile_profile_src_files) \
166 $(adaptor_tizen_internal_src_files) \
167 $(static_libraries_libunibreak_src_files)
171 adaptor_internal_src_files += $(adaptor_ecore_wayland_tizen_internal_src_files)
173 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
174 endif # USE_ECORE_WAYLAND
176 adaptor_internal_src_files += $(adaptor_tizen_internal_egl_extension_src_files)\
177 $(adaptor_tizen_internal_native_image_src_files)
180 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
181 $(adaptor_common_internal_egl_extension_src_files)
184 endif # MOBILE_PROFILE
189 adaptor_internal_src_files += $(adaptor_common_internal_src_files) \
190 $(adaptor_common_internal_mobile_profile_src_files) \
191 $(adaptor_tizen_internal_src_files) \
192 $(static_libraries_libunibreak_src_files)
195 adaptor_internal_src_files += $(adaptor_ecore_wayland_tizen_internal_src_files)
197 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
198 endif # USE_ECORE_WAYLAND
200 adaptor_internal_src_files += $(adaptor_tizen_internal_egl_extension_src_files)\
201 $(adaptor_tizen_internal_native_image_src_files)
204 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
205 $(adaptor_common_internal_egl_extension_src_files)
214 adaptor_internal_src_files += $(adaptor_common_internal_src_files) \
215 $(adaptor_common_internal_tv_profile_src_files) \
216 $(adaptor_tizen_internal_src_files) \
217 $(adaptor_tizen_internal_non_mobile_src_files) \
218 $(static_libraries_libunibreak_src_files)
221 adaptor_internal_src_files += $(adaptor_ecore_wayland_tizen_internal_src_files)
223 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
224 endif # USE_ECORE_WAYLAND
226 adaptor_internal_src_files += $(adaptor_tizen_internal_egl_extension_src_files)\
227 $(adaptor_tizen_internal_native_image_src_files)
230 adaptor_internal_src_files += $(adaptor_x11_tv_internal_src_files) \
231 $(adaptor_x11_internal_tv_profile_key_src_files) \
232 $(adaptor_common_internal_egl_extension_src_files)
240 adaptor_internal_src_files += $(adaptor_common_internal_src_files) \
241 $(adaptor_common_internal_mobile_profile_src_files) \
242 $(adaptor_tizen_internal_src_files) \
243 $(static_libraries_libunibreak_src_files)
247 adaptor_internal_src_files += $(adaptor_ecore_wayland_tizen_internal_src_files)
249 adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
250 endif # USE_ECORE_WAYLAND
252 adaptor_internal_src_files += $(adaptor_tizen_internal_egl_extension_src_files)\
253 $(adaptor_tizen_internal_native_image_src_files)
256 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
257 $(adaptor_common_internal_egl_extension_src_files)
263 # Node JS support for using an external libuv main loop. If not enabled then just use e-core as normal
264 # Used for things like callbacks, file-monintors, x input handling
266 main_loop_integration_src_files = $(adaptor_common_internal_uv_src_files)
267 input_event_handler_src_files = $(adaptor_uv_x_event_handler_internal_src_files)
269 main_loop_integration_src_files = $(adaptor_common_internal_ecore_src_files)
270 input_event_handler_src_files = $(adaptor_ecore_x_event_handler_internal_src_files)
274 pkgconfigdir = $(libdir)/pkgconfig
275 pkgconfig_DATA = dali-adaptor-uv.pc
277 lib_LTLIBRARIES = libdali-adaptor-uv.la
279 libdali_adaptor_uv_la_SOURCES = \
280 $(base_adaptor_src_files) \
281 $(main_loop_integration_src_files) \
282 $(tizen_platform_abstraction_src_files) \
283 $(text_abstraction_src_files) \
284 $(devel_api_src_files) \
285 $(public_api_src_files) \
286 $(adaptor_internal_src_files) \
287 $(input_event_handler_src_files)
290 if ENABLE_NETWORK_LOGGING
291 libdali_adaptor_uv_la_SOURCES += \
292 $(base_adaptor_networking_src_files)
295 libdali_adaptor_uv_la_DEPENDENCIES =
297 # List include directories with more platform-specific (tizen) before portable root:
298 libdali_adaptor_uv_la_includes = \
300 -I../../../platform-abstractions/tizen \
301 -I../../../platform-abstractions/tizen/resource-loader \
302 -I../../../platform-abstractions/portable \
303 -I../../../platform-abstractions/ \
304 -I../../../adaptors/public-api \
305 -I../../../adaptors/integration-api \
306 -I../../../adaptors/public-api/adaptor-framework \
307 -I../../../adaptors/devel-api/adaptor-framework \
308 -I../../../adaptors/common \
309 -I../../../adaptors/base/interfaces \
310 -I../../../adaptors/ \
312 -I../../../text/dali/internal/libunibreak
315 libdali_adaptor_uv_la_includes += -I../../../adaptors/integration-api/wayland
317 libdali_adaptor_uv_la_includes += \
318 -I../../../adaptors/ecore/common \
319 -I../../../adaptors/ecore/wayland
321 libdali_adaptor_uv_la_includes += -I../../../adaptors/wayland \
322 -I../../../adaptors/wayland/input/text/imf \
323 -I../../../adaptors/wayland/clipboard \
324 -I../../../adaptors/wayland/native-image
325 endif # USE_ECORE_WAYLAND
327 libdali_adaptor_uv_la_includes += \
328 -I../../../adaptors/tizen
331 libdali_adaptor_uv_la_includes += \
332 -I../../../adaptors/ecore/common \
333 -I../../../adaptors/x11 \
334 -I../../../adaptors/integration-api/x11
338 libdali_adaptor_uv_la_includes += \
339 -I../../../adaptors/ubuntu
341 libdali_adaptor_uv_la_includes += \
342 -I../../../adaptors/tizen
345 daliDefaultThemeDir = ${dataReadWriteDir}/theme/
346 daliShaderbinCacheDir = ${dataReadOnlyDir}/core/shaderbin/
348 libdali_adaptor_uv_la_CXXFLAGS = \
349 -DDALI_DATA_RW_DIR="\"${daliReadWriteDir}\"" \
350 -DDALI_DATA_RO_DIR="\"${daliReadOnlyDir}\"" \
351 -DDALI_DEFAULT_FONT_CACHE_DIR="\"${daliDefaultFontCacheDir}\"" \
352 -DDALI_USER_FONT_CACHE_DIR="\"${daliUserFontCacheDir}\"" \
353 -DDALI_SHADERBIN_DIR="\"${daliShaderbinCacheDir}\"" \
354 -DDALI_DEFAULT_THEME_DIR="\"${daliDefaultThemeDir}\"" \
355 -DFONT_PRELOADED_PATH="\"${fontPreloadedPath}\"" \
356 -DFONT_DOWNLOADED_PATH="\"${fontDownloadedPath}\"" \
357 -DFONT_APPLICATION_PATH="\"${fontApplicationPath}\"" \
358 -DFONT_CONFIGURATION_FILE="\"${fontConfigurationFile}\"" \
359 -DNON_POWER_OF_TWO_TEXTURES \
360 -DDALI_COMPILATION -DDALI_ADAPTOR_COMPILATION \
361 -DWAYLAND_EXTENSIONS_SUPPORTED \
362 -Werror -Wall -lgcc \
363 $(libdali_adaptor_uv_la_includes) \
364 $(DALI_ADAPTOR_CFLAGS) \
366 $(OPENGLES20_CFLAGS) \
368 $(FONTCONFIG_CFLAGS) \
380 libdali_adaptor_uv_la_CFLAGS = $(libdali_adaptor_uv_la_CXXFLAGS)
382 libdali_adaptor_uv_la_LIBADD = \
402 # EVAS used indicator
403 libdali_adaptor_uv_la_CXXFLAGS += $(ELEMENTARY_CFLAGS) \
406 $(ECORE_IPC_CFLAGS) \
411 libdali_adaptor_uv_la_LIBADD += $(ELEMENTARY_LIBS) \
418 libdali_adaptor_uv_la_CXXFLAGS += $(ECORE_WAYLAND_CFLAGS)
419 libdali_adaptor_uv_la_LIBADD += $(ECORE_WAYLAND_LIBS)
420 endif # !UBUNTU_PROFILE
426 libdali_adaptor_uv_la_CXXFLAGS += $(CAPI_APPFW_APPLICATION_CFLAGS) \
427 $(CAPI_SYSTEM_SYSTEM_SETTINGS_CFLAGS) \
428 $(CAPI_SYSTEM_INFO_CFLAGS) \
430 $(CAPI_SYSTEM_SENSOR_CFLAGS)
432 libdali_adaptor_uv_la_LIBADD += $(CAPI_APPFW_APPLICATION_LIBS) \
433 $(CAPI_SYSTEM_SYSTEM_SETTINGS_LIBS) \
434 $(CAPI_SYSTEM_INFO_LIBS) \
436 $(CAPI_SYSTEM_SENSOR_LIBS)
440 # This is to avoid having to include wayland-egl.h everywhere
441 libdali_adaptor_uv_la_CXXFLAGS += -DWL_EGL_PLATFORM
442 libdali_adaptor_uv_la_CXXFLAGS += $(WAYLAND_CFLAGS)
443 libdali_adaptor_uv_la_CXXFLAGS += $(WAYLAND_EXTENSION_CFLAGS)
445 libdali_adaptor_uv_la_LIBADD += $(WAYLAND_LIBS)
446 libdali_adaptor_uv_la_LIBADD += $(WAYLAND_EXTENSION_LIBS)
449 libdali_adaptor_uv_la_CXXFLAGS += $(X11_CFLAGS)
450 libdali_adaptor_uv_la_LIBADD += $(X11_LIBS)
451 libdali_adaptor_uv_la_LIBADD += $(ECORE_X_LIBS)
455 libdali_adaptor_uv_la_CXXFLAGS += $(HAPTIC_CFLAGS)
459 libdali_adaptor_uv_la_CXXFLAGS += \
461 $(EFL_ASSIST_CFLAGS) \
462 $(NATIVE_BUFFER_CFLAGS) \
463 $(NATIVE_BUFFER_POOL_CFLAGS)
465 libdali_adaptor_uv_la_LIBADD += \
467 $(NATIVE_BUFFER_LIBS) \
468 $(NATIVE_BUFFER_POOL_LIBS)
472 libdali_adaptor_uv_la_CXXFLAGS += \
478 libdali_adaptor_uv_la_CXXFLAGS += $(HAPTIC_CFLAGS)
479 libdali_adaptor_uv_la_LIBADD +=
483 libdali_adaptor_uv_la_CXXFLAGS += \
485 $(EFL_ASSIST_CFLAGS) \
486 $(NATIVE_BUFFER_CFLAGS) \
487 $(NATIVE_BUFFER_POOL_CFLAGS)
489 libdali_adaptor_uv_la_LIBADD += \
491 $(NATIVE_BUFFER_LIBS) \
492 $(NATIVE_BUFFER_POOL_LIBS)
496 libdali_adaptor_uv_la_LIBADD += -ljpeg
500 tizenadaptorpublicapidir = $(devincludepath)/dali/public-api
501 tizenadaptorpublicapi_HEADERS = $(public_api_header_files)
503 tizenadaptordevelapidir= $(devincludepath)/dali/devel-api
505 tizenadaptorintegrationapidir = $(devincludepath)/dali/integration-api/adaptors
506 tizenadaptorintegrationapi_HEADERS = $(adaptor_integration_api_header_files)
509 tizenadaptorintegrationwaylandapidir = $(devincludepath)/dali/integration-api/adaptors
510 tizenadaptorintegrationwaylandapi_HEADERS = $(adaptor_integration_wayland_api_header_files)
512 tizenadaptorintegrationx11apidir = $(devincludepath)/dali/integration-api/adaptors
513 tizenadaptorintegrationx11api_HEADERS = $(adaptor_integration_x11_api_header_files)
516 tizenadaptorframeworkpublicapidir = $(tizenadaptorpublicapidir)/adaptor-framework
517 tizenadaptorframeworkpublicapi_HEADERS = $(public_api_adaptor_framework_header_files)
519 tizenadaptorframeworkdevelapidir = $(tizenadaptordevelapidir)/adaptor-framework
520 tizenadaptorframeworkdevelapi_HEADERS = $(devel_api_adaptor_framework_header_files)
522 tizentextabstractiondevelapidir = $(tizenadaptordevelapidir)/text-abstraction
523 tizentextabstractiondevelapi_HEADERS = $(text_abstraction_header_files)
528 tizenadaptorframeworkdevelapi_HEADERS += $(devel_api_adaptor_tizen_x11_header_files)
531 endif # NOT UBUNTU_PROFILE
533 tizenadaptordaliheaderdir = $(devincludepath)/dali
534 tizenadaptordaliheader_HEADERS = $(adaptor_dali_header_file)
537 $(MKDIR_P) ${DESTDIR}/${daliUserFontCacheDir} ${DESTDIR}/${daliShaderbinCacheDir}
539 # Install resource log analyzer script
540 bin_SCRIPTS = ../../../adaptors/scripts/dalireslog.sh
542 # package doxygen file (contains doxygen grouping information)
543 packagedoxydir = $(devincludepath)/dali/doc
544 packagedoxy_HEADERS = $(package_doxy_files)
548 # turn off the linker test if were building for libuv
549 # We can't link to LibUV becase it is statically linked to Node.JS (by default)
550 if !LIB_UV_EVENT_LOOP
551 noinst_PROGRAMS = linker.test
552 endif # NOT LIB_UV_EVENT_LOOP
554 linker_test_SOURCES = linker-test.cpp
556 linker_test_CXXFLAGS = \
557 -DDALI_ADAPTOR_COMPILATION \
558 -I../../../adaptors/common \
559 -I../../../adaptors/public-api \
560 -I../../../adaptors/integration-api \
561 -I../../../adaptors/base/interfaces \
562 -I../../../adaptors/public-api/adaptor-framework \
563 -I../../../adaptors/devel-api/adaptor-framework \
564 $(DALI_ADAPTOR_CFLAGS) \
571 linker_test_CXXFLAGS += \
572 -I../../../adaptors/integration-api/wayland
575 linker_test_CXXFLAGS += \
576 -I../../../adaptors/integration-api/x11
580 linker_test_DEPENDENCIES = libdali-adaptor-uv.la
581 linker_test_LDADD = \
584 libdali-adaptor-uv.la \