f5171f16794ea7afcf324e6052a07e567e67cc8a
[platform/core/uifw/dali-adaptor.git] / build / tizen / adaptor / Makefile.am
1 #
2 # Copyright (c) 2018 Samsung Electronics Co., Ltd.
3 #
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
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 #
16
17 # Build the Dali Adaptor library
18
19
20 ############# INCLUDE FILE LISTS #############
21
22 # New structure includes
23 include ./module.list
24
25 pkgconfigdir = $(libdir)/pkgconfig
26
27 if ENABLE_CXX03_ABI
28 pkgconfig_DATA = dali-adaptor-cxx03.pc dali-adaptor-integration-cxx03.pc
29 else
30 pkgconfig_DATA = dali-adaptor.pc dali-adaptor-integration.pc
31 endif
32
33 # sources
34 if UBUNTU_PROFILE
35 LIBDALI_ADAPTOR_LA_SOURCES = \
36                   $(adaptor_accessibility_common_src_files) \
37                   $(adaptor_accessibility_ubuntu_src_files) \
38                   $(adaptor_adaptor_common_src_files) \
39                   $(adaptor_adaptor_ubuntu_src_files) \
40                   $(adaptor_clipboard_common_src_files) \
41                   $(adaptor_clipboard_ubuntu_x11_src_files) \
42                   $(devel_api_src_files) \
43                   $(adaptor_devel_api_text_abstraction_src_files) \
44                   $(adaptor_graphics_common_src_files) \
45                   $(adaptor_graphics_gles20_src_files) \
46                   $(adaptor_graphics_ubuntu_gl_src_files) \
47                   $(adaptor_graphics_ubuntu_src_files) \
48                   $(adaptor_haptics_common_src_files) \
49                   $(adaptor_imaging_common_src_files) \
50                   $(adaptor_imaging_ubuntu_x11_src_files) \
51                   $(adaptor_input_common_src_files) \
52                   $(adaptor_input_ubuntu_src_files) \
53                   $(adaptor_input_ubuntu_x11_src_files) \
54                   $(adaptor_legacy_common_src_files) \
55                   $(adaptor_network_common_src_files) \
56                   $(adaptor_public_api_src_files) \
57                   $(adaptor_sensor_common_src_files) \
58                   $(adaptor_sensor_ubuntu_src_files) \
59                   $(adaptor_styling_common_src_files) \
60                   $(adaptor_system_common_src_files) \
61                   $(adaptor_system_ubuntu_src_files) \
62                   $(adaptor_system_ubuntu_x11_src_files) \
63                   $(adaptor_text_common_src_files) \
64                   $(adaptor_text_ubuntu_src_files) \
65                   $(adaptor_resampler_src_files) \
66                   $(adaptor_video_common_src_files) \
67                   $(adaptor_window_system_common_src_files) \
68                   $(adaptor_window_system_ubuntu_x11_src_files) \
69                   $(devel_api_text_abstraction_src_files) \
70                   $(static_libraries_glyphy_src_files) \
71                   $(static_libraries_libunibreak_src_files)
72
73 if ENABLE_NETWORK_LOGGING
74 LIBDALI_ADAPTOR_LA_SOURCES += \
75                   $(adaptor_performance_logging_src_files)
76 endif
77
78 endif
79
80
81 if MOBILE_PROFILE
82 LIBDALI_ADAPTOR_LA_SOURCES = \
83                   $(adaptor_accessibility_common_src_files) \
84                   $(adaptor_accessibility_tizen_mobile_src_files) \
85                   $(adaptor_adaptor_common_src_files) \
86                   $(adaptor_adaptor_tizen_src_files) \
87                   $(adaptor_adaptor_tizen_wayland_src_files) \
88                   $(adaptor_clipboard_common_src_files) \
89                   $(adaptor_clipboard_tizen_wayland_src_files) \
90                   $(devel_api_src_files) \
91                   $(adaptor_devel_api_text_abstraction_src_files) \
92                   $(adaptor_graphics_common_src_files) \
93                   $(adaptor_graphics_gles20_src_files) \
94                   $(adaptor_graphics_tizen_src_files) \
95                   $(adaptor_haptics_common_src_files) \
96                   $(adaptor_imaging_common_src_files) \
97                   $(adaptor_imaging_tizen_src_files) \
98                   $(adaptor_input_common_src_files) \
99                   $(adaptor_input_tizen_wayland_src_files) \
100                   $(adaptor_legacy_common_src_files) \
101                   $(adaptor_network_common_src_files) \
102                   $(adaptor_public_api_src_files) \
103                   $(adaptor_sensor_common_src_files) \
104                   $(adaptor_sensor_tizen_src_files) \
105                   $(adaptor_styling_common_src_files) \
106                   $(adaptor_system_common_src_files) \
107                   $(adaptor_system_tizen_mobile_src_files) \
108                   $(adaptor_text_common_src_files) \
109                   $(adaptor_resampler_src_files) \
110                   $(adaptor_video_common_src_files) \
111                   $(adaptor_window_system_common_src_files) \
112                   $(adaptor_window_system_tizen_mobile_src_files) \
113                   $(adaptor_window_system_tizen_src_files) \
114                   $(adaptor_window_system_tizen_wayland_src_files) \
115                   $(devel_api_text_abstraction_src_files) \
116                   $(static_libraries_glyphy_src_files) \
117                   $(static_libraries_libunibreak_src_files)
118
119 if ENABLE_NETWORK_LOGGING
120 LIBDALI_ADAPTOR_LA_SOURCES += \
121                   $(adaptor_performance_logging_src_files)
122 endif
123
124 endif
125
126
127 if IVI_PROFILE
128 LIBDALI_ADAPTOR_LA_SOURCES = \
129                   $(adaptor_accessibility_common_src_files) \
130                   $(adaptor_accessibility_tizen_ivi_src_files) \
131                   $(adaptor_adaptor_common_src_files) \
132                   $(adaptor_adaptor_tizen_src_files) \
133                   $(adaptor_adaptor_tizen_wayland_src_files) \
134                   $(adaptor_clipboard_common_src_files) \
135                   $(adaptor_clipboard_tizen_wayland_src_files) \
136                   $(devel_api_src_files) \
137                   $(adaptor_devel_api_text_abstraction_src_files) \
138                   $(adaptor_graphics_common_src_files) \
139                   $(adaptor_graphics_gles20_src_files) \
140                   $(adaptor_graphics_tizen_src_files) \
141                   $(adaptor_haptics_common_src_files) \
142                   $(adaptor_haptics_tizen_src_files) \
143                   $(adaptor_imaging_common_src_files) \
144                   $(adaptor_imaging_tizen_src_files) \
145                   $(adaptor_input_common_src_files) \
146                   $(adaptor_input_tizen_wayland_src_files) \
147                   $(adaptor_legacy_common_src_files) \
148                   $(adaptor_network_common_src_files) \
149                   $(adaptor_public_api_src_files) \
150                   $(adaptor_sensor_common_src_files) \
151                   $(adaptor_sensor_tizen_src_files) \
152                   $(adaptor_styling_common_src_files) \
153                   $(adaptor_system_common_src_files) \
154                   $(adaptor_system_tizen_ivi_src_files) \
155                   $(adaptor_text_common_src_files) \
156                   $(adaptor_resampler_src_files) \
157                   $(adaptor_video_common_src_files) \
158                   $(adaptor_window_system_common_src_files) \
159                   $(adaptor_window_system_tizen_src_files) \
160                   $(adaptor_window_system_tizen_wayland_src_files) \
161                   $(devel_api_text_abstraction_src_files) \
162                   $(static_libraries_glyphy_src_files) \
163                   $(static_libraries_libunibreak_src_files)
164
165 if ENABLE_NETWORK_LOGGING
166 LIBDALI_ADAPTOR_LA_SOURCES += \
167                   $(adaptor_performance_logging_src_files)
168 endif
169
170 endif
171
172
173 if TV_PROFILE
174 LIBDALI_ADAPTOR_LA_SOURCES = \
175                   $(adaptor_accessibility_common_src_files) \
176                   $(adaptor_accessibility_tizen_tv_src_files) \
177                   $(adaptor_adaptor_common_src_files) \
178                   $(adaptor_adaptor_tizen_src_files) \
179                   $(adaptor_adaptor_tizen_wayland_src_files) \
180                   $(adaptor_clipboard_common_src_files) \
181                   $(adaptor_clipboard_tizen_wayland_src_files) \
182                   $(devel_api_src_files) \
183                   $(adaptor_devel_api_text_abstraction_src_files) \
184                   $(adaptor_graphics_common_src_files) \
185                   $(adaptor_graphics_gles20_src_files) \
186                   $(adaptor_graphics_tizen_src_files) \
187                   $(adaptor_haptics_common_src_files) \
188                   $(adaptor_imaging_common_src_files) \
189                   $(adaptor_imaging_tizen_src_files) \
190                   $(adaptor_input_common_src_files) \
191                   $(adaptor_input_tizen_wayland_src_files) \
192                   $(adaptor_legacy_common_src_files) \
193                   $(adaptor_network_common_src_files) \
194                   $(adaptor_public_api_src_files) \
195                   $(adaptor_sensor_common_src_files) \
196                   $(adaptor_sensor_tizen_src_files) \
197                   $(adaptor_styling_common_src_files) \
198                   $(adaptor_system_common_src_files) \
199                   $(adaptor_system_tizen_tv_src_files) \
200                   $(adaptor_text_common_src_files) \
201                   $(adaptor_resampler_src_files) \
202                   $(adaptor_video_common_src_files) \
203                   $(adaptor_window_system_common_src_files) \
204                   $(adaptor_window_system_tizen_src_files) \
205                   $(adaptor_window_system_tizen_wayland_src_files) \
206                   $(devel_api_text_abstraction_src_files) \
207                   $(static_libraries_glyphy_src_files) \
208                   $(static_libraries_libunibreak_src_files)
209
210 if ENABLE_NETWORK_LOGGING
211 LIBDALI_ADAPTOR_LA_SOURCES += \
212                   $(adaptor_performance_logging_src_files)
213 endif
214
215 endif
216
217 if COMMON_PROFILE
218 LIBDALI_ADAPTOR_LA_SOURCES = \
219                   $(adaptor_accessibility_common_src_files) \
220                   $(adaptor_accessibility_tizen_common_src_files) \
221                   $(adaptor_adaptor_common_src_files) \
222                   $(adaptor_adaptor_tizen_src_files) \
223                   $(adaptor_adaptor_tizen_wayland_src_files) \
224                   $(adaptor_clipboard_common_src_files) \
225                   $(adaptor_clipboard_tizen_wayland_src_files) \
226                   $(devel_api_src_files) \
227                   $(adaptor_devel_api_text_abstraction_src_files) \
228                   $(adaptor_graphics_common_src_files) \
229                   $(adaptor_graphics_gles20_src_files) \
230                   $(adaptor_graphics_tizen_src_files) \
231                   $(adaptor_haptics_common_src_files) \
232                   $(adaptor_imaging_common_src_files) \
233                   $(adaptor_imaging_tizen_src_files) \
234                   $(adaptor_input_common_src_files) \
235                   $(adaptor_input_tizen_wayland_src_files) \
236                   $(adaptor_legacy_common_src_files) \
237                   $(adaptor_network_common_src_files) \
238                   $(adaptor_public_api_src_files) \
239                   $(adaptor_sensor_common_src_files) \
240                   $(adaptor_sensor_tizen_src_files) \
241                   $(adaptor_styling_common_src_files) \
242                   $(adaptor_system_common_src_files) \
243                   $(adaptor_system_generic_src_files) \
244                   $(adaptor_text_common_src_files) \
245                   $(adaptor_resampler_src_files) \
246                   $(adaptor_video_common_src_files) \
247                   $(adaptor_window_system_common_src_files) \
248                   $(adaptor_window_system_tizen_src_files) \
249                   $(adaptor_window_system_tizen_wayland_src_files) \
250                   $(devel_api_text_abstraction_src_files) \
251                   $(static_libraries_glyphy_src_files) \
252                   $(static_libraries_libunibreak_src_files)
253
254 if ENABLE_NETWORK_LOGGING
255 LIBDALI_ADAPTOR_LA_SOURCES += \
256                   $(adaptor_performance_logging_src_files)
257 endif
258
259 endif
260
261
262
263 if WEARABLE_PROFILE
264 LIBDALI_ADAPTOR_LA_SOURCES = \
265                   $(adaptor_accessibility_common_src_files) \
266                   $(adaptor_accessibility_tizen_wearable_src_files) \
267                   $(adaptor_adaptor_common_src_files) \
268                   $(adaptor_adaptor_tizen_src_files) \
269                   $(adaptor_adaptor_tizen_wayland_src_files) \
270                   $(adaptor_adaptor_tizen_wearable_src_files) \
271                   $(adaptor_clipboard_common_src_files) \
272                   $(adaptor_clipboard_tizen_wayland_src_files) \
273                   $(devel_api_src_files) \
274                   $(adaptor_devel_api_text_abstraction_src_files) \
275                   $(adaptor_graphics_common_src_files) \
276                   $(adaptor_graphics_gles20_src_files) \
277                   $(adaptor_graphics_tizen_src_files) \
278                   $(adaptor_haptics_common_src_files) \
279                   $(adaptor_imaging_common_src_files) \
280                   $(adaptor_imaging_tizen_src_files) \
281                   $(adaptor_input_common_src_files) \
282                   $(adaptor_input_tizen_wayland_src_files) \
283                   $(adaptor_legacy_common_src_files) \
284                   $(adaptor_network_common_src_files) \
285                   $(adaptor_public_api_src_files) \
286                   $(adaptor_sensor_common_src_files) \
287                   $(adaptor_sensor_tizen_src_files) \
288                   $(adaptor_styling_common_src_files) \
289                   $(adaptor_system_common_src_files) \
290                   $(adaptor_system_tizen_wearable_src_files) \
291                   $(adaptor_text_common_src_files) \
292                   $(adaptor_resampler_src_files) \
293                   $(adaptor_video_common_src_files) \
294                   $(adaptor_window_system_common_src_files) \
295                   $(adaptor_window_system_tizen_src_files) \
296                   $(adaptor_window_system_tizen_wayland_src_files) \
297                   $(adaptor_window_system_tizen_wearable_src_files) \
298                   $(devel_api_text_abstraction_src_files) \
299                   $(static_libraries_glyphy_src_files) \
300                   $(static_libraries_libunibreak_src_files)
301
302 if ENABLE_NETWORK_LOGGING
303 LIBDALI_ADAPTOR_LA_SOURCES += \
304                   $(adaptor_performance_logging_src_files)
305 endif
306
307 endif
308
309
310 # Package doc
311 package_doxy_dir = ../../../doc
312 include ../../../doc/file.list
313
314 libdali_adaptor_la_DEPENDENCIES =
315
316 # List include directories with more platform-specific (tizen) before portable root:
317 LIBDALI_ADAPTOR_LA_includes = \
318                        -I../../../
319
320 daliDefaultThemeDir  = ${dataReadWriteDir}/theme/
321 daliShaderbinCacheDir = ${dataReadOnlyDir}/core/shaderbin/
322
323 LIBDALI_ADAPTOR_LA_CXXFLAGS = \
324                       -DDALI_DATA_RW_DIR="\"${daliReadWriteDir}\"" \
325                       -DDALI_DATA_RO_DIR="\"${daliReadOnlyDir}\"" \
326                       -DDALI_DEFAULT_FONT_CACHE_DIR="\"${daliDefaultFontCacheDir}\"" \
327                       -DDALI_USER_FONT_CACHE_DIR="\"${daliUserFontCacheDir}\"" \
328                       -DDALI_SHADERBIN_DIR="\"${daliShaderbinCacheDir}\"" \
329                       -DDALI_DEFAULT_THEME_DIR="\"${daliDefaultThemeDir}\"" \
330                       -DFONT_PRELOADED_PATH="\"${fontPreloadedPath}\"" \
331                       -DFONT_DOWNLOADED_PATH="\"${fontDownloadedPath}\"" \
332                       -DFONT_APPLICATION_PATH="\"${fontApplicationPath}\"" \
333                       -DFONT_CONFIGURATION_FILE="\"${fontConfigurationFile}\"" \
334                       -DTIZEN_PLATFORM_CONFIG_SUPPORTED=${tizenPlatformConfigSupported} \
335                       -DNON_POWER_OF_TWO_TEXTURES \
336                       -DDALI_COMPILATION -DDALI_ADAPTOR_COMPILATION \
337                       -Werror -Wall -lgcc -Wold-style-cast\
338                       $(LIBDALI_ADAPTOR_LA_includes) \
339                       $(DALI_ADAPTOR_CFLAGS) \
340                       $(DALICORE_CFLAGS) \
341                       $(OPENGLES20_CFLAGS) \
342                       $(FREETYPE_CFLAGS) \
343                       $(FONTCONFIG_CFLAGS) \
344                       $(PNG_CFLAGS) \
345                       $(DLOG_CFLAGS) \
346                       $(VCONF_CFLAGS) \
347                       $(EXIF_CFLAGS) \
348                       $(MMFSOUND_CFLAGS) \
349                       $(TTS_CFLAGS) \
350                       $(CAPI_SYSTEM_SENSOR_CFLAGS) \
351                       $(LIBDRM_CFLAGS) \
352                       $(LIBEXIF_CFLAGS) \
353                       $(LIBCURL_CFLAGS) \
354                       $(LIBCRYPTO_CFLAGS) \
355                       $(TPKP_CURL_CFLAGS) \
356                       $(UTILX_CFLAGS)
357
358 # Todo, as soon as common repos are updated on build server remove this.
359 if !COMMON_PROFILE
360 LIBDALI_ADAPTOR_LA_CXXFLAGS += -DWAYLAND_EXTENSIONS_SUPPORTED
361 endif
362
363 LIBDALI_ADAPTOR_LA_CFLAGS = \
364                       -Werror -Wall \
365                       -DDALI_COMPILATION -DDALI_ADAPTOR_COMPILATION \
366                       $(DALI_ADAPTOR_CFLAGS)
367
368 LIBDALI_ADAPTOR_LA_LIBADD = \
369                       $(DALICORE_LIBS) \
370                       $(OPENGLES20_LIBS) \
371                       $(FREETYPE_LIBS) \
372                       $(FONTCONFIG_LIBS) \
373                       $(PNG_LIBS) \
374                       $(DLOG_LIBS) \
375                       $(VCONF_LIBS) \
376                       $(EXIF_LIBS) \
377                       $(TTS_LIBS) \
378                       $(CAPI_SYSTEM_SENSOR_LIBS) \
379                       $(LIBDRM_LIBS) \
380                       $(LIBEXIF_LIBS) \
381                       $(LIBCURL_LIBS) \
382                       $(LIBCRYPTO_LIBS) \
383                       $(HARFBUZZ_LIBS) \
384                       $(TPKP_CURL_LIBS) \
385                       $(UTILX_LIBS) \
386                       -lgif \
387                       -lpthread \
388                       -lturbojpeg \
389                       -ljpeg
390
391 # EVAS used indicator
392 LIBDALI_ADAPTOR_LA_CXXFLAGS += $(EVAS_CFLAGS) \
393                                $(ECORE_CFLAGS) \
394                                $(ECORE_IPC_CFLAGS) \
395                                $(ELDBUS_CFLAGS)
396
397
398 LIBDALI_ADAPTOR_LA_LIBADD += $(ECORE_IPC_LIBS) \
399                              $(ELDBUS_LIBS)
400
401 if USE_APPFW
402
403 LIBDALI_ADAPTOR_LA_CXXFLAGS += $(CAPI_APPFW_APPLICATION_CFLAGS) \
404                                $(CAPI_SYSTEM_SYSTEM_SETTINGS_CFLAGS) \
405                                $(CAPI_SYSTEM_INFO_CFLAGS) \
406                                $(TTS_CFLAGS) \
407                                $(SENSOR_CFLAGS)
408
409 LIBDALI_ADAPTOR_LA_LIBADD += $(CAPI_APPFW_APPLICATION_LIBS) \
410                              $(CAPI_SYSTEM_SYSTEM_SETTINGS_LIBS) \
411                              $(CAPI_SYSTEM_INFO_LIBS) \
412                              $(TTS_LIBS) \
413                              $(SENSOR_LIBS)
414 if USE_APPFW_EFL_BASE
415 LIBDALI_ADAPTOR_LA_CXXFLAGS += $(ELEMENTARY_CFLAGS)
416
417 LIBDALI_ADAPTOR_LA_LIBADD += $(ELEMENTARY_LIBS)
418
419 else
420 LIBDALI_ADAPTOR_LA_CXXFLAGS += $(BUNDLE_CFLAGS) \
421                                $(CAPI_APPFW_COMMON_CFLAGS) \
422                                $(CAPI_APPFW_CONTROL_CFLAGS) \
423                                $(CAPI_APPFW_WIDGET_BASE_CFLAGS) \
424                                $(ECORE_IMF_CFLAGS) \
425                                $(FRIBIDI_CFLAGS) \
426                                -DWIDGET_SUPPOERTED
427
428 LIBDALI_ADAPTOR_LA_LIBADD += $(BUNDLE_LIBS) \
429                              $(CAPI_APPFW_COMMON_LIBS) \
430                              $(CAPI_APPFW_CONTROL_LIBS) \
431                              $(CAPI_APPFW_WIDGET_BASE_LIBS) \
432                              $(ECORE_IMF_LIBS) \
433                              $(FRIBIDI_LIBS)
434 endif
435 else
436 LIBDALI_ADAPTOR_LA_CXXFLAGS += $(ELEMENTARY_CFLAGS)
437
438 LIBDALI_ADAPTOR_LA_LIBADD += $(ELEMENTARY_LIBS)
439 endif
440
441 if WAYLAND
442 # This is to avoid having to include wayland-egl.h everywhere
443 LIBDALI_ADAPTOR_LA_CXXFLAGS += -DWL_EGL_PLATFORM
444 LIBDALI_ADAPTOR_LA_CXXFLAGS += $(WAYLAND_CFLAGS)
445 LIBDALI_ADAPTOR_LA_LIBADD += $(WAYLAND_LIBS)
446 else
447 LIBDALI_ADAPTOR_LA_CXXFLAGS += $(X11_CFLAGS)
448 LIBDALI_ADAPTOR_LA_LIBADD += $(X11_LIBS)
449 LIBDALI_ADAPTOR_LA_LIBADD += $(ECORE_X_LIBS)
450 endif
451
452 if COMMON_PROFILE
453 LIBDALI_ADAPTOR_LA_CXXFLAGS += $(HAPTIC_CFLAGS)
454 endif
455
456 if MOBILE_PROFILE
457 LIBDALI_ADAPTOR_LA_CXXFLAGS += \
458                       $(DEVICED_CFLAGS) \
459                       $(EFL_ASSIST_CFLAGS) \
460                       $(NATIVE_BUFFER_CFLAGS) \
461                       $(NATIVE_BUFFER_POOL_CFLAGS)
462
463 LIBDALI_ADAPTOR_LA_LIBADD += \
464                       $(EFL_ASSIST_LIBS) \
465                       $(NATIVE_BUFFER_LIBS) \
466                       $(NATIVE_BUFFER_POOL_LIBS)
467 endif
468
469 if WEARABLE_PROFILE
470 LIBDALI_ADAPTOR_LA_CXXFLAGS += \
471                       $(HAPTIC_CFLAGS) \
472                       $(EFL_ASSIST_CFLAGS) \
473                       $(SCREENCONNECTORPROVIDER_CFLAGS) \
474                       $(APPCORE_WATCH_CFLAGS)
475
476 LIBDALI_ADAPTOR_LA_LIBADD += \
477                       $(SCREENCONNECTORPROVIDER_LIBS) \
478                       $(APPCORE_WATCH_LIBS)
479 endif
480
481 if TV_PROFILE
482 LIBDALI_ADAPTOR_LA_CXXFLAGS += $(HAPTIC_CFLAGS)
483 LIBDALI_ADAPTOR_LA_LIBADD +=
484 endif
485
486 if IVI_PROFILE
487 LIBDALI_ADAPTOR_LA_CXXFLAGS += \
488                       $(DEVICED_CFLAGS) \
489                       $(EFL_ASSIST_CFLAGS) \
490                       $(NATIVE_BUFFER_CFLAGS) \
491                       $(NATIVE_BUFFER_POOL_CFLAGS)
492
493 LIBDALI_ADAPTOR_LA_LIBADD += \
494                       $(EFL_ASSIST_LIBS) \
495                       $(NATIVE_BUFFER_LIBS) \
496                       $(NATIVE_BUFFER_POOL_LIBS)
497 endif
498
499 if UBUNTU_PROFILE
500 LIBDALI_ADAPTOR_LA_LIBADD += -ljpeg
501 CFLAGS += -fPIC
502 endif
503
504 tizenadaptorpublicapidir = $(devincludepath)/dali/public-api
505 tizenadaptorpublicapi_HEADERS = $(public_api_header_files)
506
507 tizenadaptordevelapidir= $(devincludepath)/dali/devel-api
508
509 tizenadaptorintegrationapidir = $(devincludepath)/dali/integration-api/adaptors
510 tizenadaptorintegrationapi_HEADERS = $(adaptor_integration_api_header_files)
511
512 if WAYLAND
513 tizenadaptorintegrationwaylandapidir = $(devincludepath)/dali/integration-api/adaptors
514 tizenadaptorintegrationwaylandapi_HEADERS = $(adaptor_integration_wayland_api_header_files)
515 tizenadaptorintegrationwaylandapi_HEADERS += $(adaptor_integration_ecore_wayland_api_header_files)
516 else
517 tizenadaptorintegrationx11apidir = $(devincludepath)/dali/integration-api/adaptors
518 tizenadaptorintegrationx11api_HEADERS = $(adaptor_integration_x11_api_header_files)
519 endif
520
521 tizenadaptorframeworkpublicapidir = $(tizenadaptorpublicapidir)/adaptor-framework
522 tizenadaptorframeworkpublicapi_HEADERS = $(public_api_adaptor_framework_header_files)
523
524 tizenadaptorframeworkdevelapidir = $(tizenadaptordevelapidir)/adaptor-framework
525 tizenadaptorframeworkdevelapi_HEADERS = $(devel_api_adaptor_framework_header_files)
526
527 tizentextabstractiondevelapidir = $(tizenadaptordevelapidir)/text-abstraction
528 tizentextabstractiondevelapi_HEADERS = $(text_abstraction_header_files)
529
530 if !UBUNTU_PROFILE
531 tizenadaptorframeworkpublicapi_HEADERS += $(public_api_adaptor_tizen_header_files)
532
533 if !WAYLAND
534 tizenadaptorframeworkdevelapi_HEADERS += $(devel_api_adaptor_tizen_x11_header_files)
535 endif # NOT WAYLAND
536
537 endif # NOT UBUNTU_PROFILE
538
539 tizenadaptordaliheaderdir = $(devincludepath)/dali
540 tizenadaptordaliheader_HEADERS = $(adaptor_dali_header_file)
541
542 tizenadaptorpublicapi_HEADERS += $(adaptor_dali_wearable_header_file)
543
544 tizenwatchpublicapidir = $(tizenadaptorpublicapidir)/watch
545 tizenwatchpublicapi_HEADERS = $(public_dali_watch_header_files)
546
547 tizencapturepublicapidir = $(tizenadaptorpublicapidir)/capture
548 tizencapturepublicapi_HEADERS = $(public_dali_capture_header_files)
549
550 install-data-local:
551         $(MKDIR_P) ${DESTDIR}/${daliUserFontCacheDir} ${DESTDIR}/${daliShaderbinCacheDir}
552
553 # Install resource log analyzer script
554 bin_SCRIPTS = ../../../adaptors/scripts/dalireslog.sh
555
556 # package doxygen file (contains doxygen grouping information)
557 packagedoxydir = $(devincludepath)/dali/doc
558 packagedoxy_HEADERS = $(package_doxy_files)
559
560
561
562 if ENABLE_CXX03_ABI
563
564 lib_LTLIBRARIES = libdali-adaptor.la
565
566 libdali_adaptor_la_SOURCES = $(LIBDALI_ADAPTOR_LA_SOURCES)
567 libdali_adaptor_la_includes = $(LIBDALI_ADAPTOR_LA_INCLUDES)
568 libdali_adaptor_la_CFLAGS = $(LIBDALI_ADAPTOR_LA_CFLAGS)
569 libdali_adaptor_la_CXXFLAGS = $(LIBDALI_ADAPTOR_LA_CXXFLAGS)
570 libdali_adaptor_la_LIBADD = $(LIBDALI_ADAPTOR_LA_LIBADD)
571
572 else
573
574 lib_LTLIBRARIES = libdali-adaptor-cxx11.la
575
576 libdali_adaptor_cxx11_la_SOURCES = $(LIBDALI_ADAPTOR_LA_SOURCES)
577 libdali_adaptor_cxx11_la_includes = $(LIBDALI_ADAPTOR_LA_INCLUDES)
578 libdali_adaptor_cxx11_la_CFLAGS = $(LIBDALI_ADAPTOR_LA_CFLAGS)
579 libdali_adaptor_cxx11_la_CXXFLAGS = $(LIBDALI_ADAPTOR_LA_CXXFLAGS)
580 libdali_adaptor_cxx11_la_LIBADD = $(LIBDALI_ADAPTOR_LA_LIBADD)
581
582 endif
583
584 # linking test
585 noinst_PROGRAMS = linker.test
586
587 linker_test_SOURCES = linker-test.cpp
588
589 linker_test_CXXFLAGS = \
590   -DDALI_ADAPTOR_COMPILATION \
591   -I../../../ \
592   $(DALI_ADAPTOR_CFLAGS) \
593   $(DALICORE_CFLAGS) \
594   $(VCONF_CFLAGS) \
595   $(DALIX11_CFLAGS) \
596   -Werror -Wall
597
598 linker_test_LDADD = \
599   $(DALICORE_LIBS) \
600   $(VCONF_LIBS) \
601   $(HARFBUZZ_LIBS) \
602   -L${prefix}/lib
603
604 if ENABLE_CXX03_ABI
605
606 linker_test_LDADD += libdali-adaptor.la
607 linker_test_DEPENDENCIES = libdali-adaptor.la
608
609 if ENABLE_RENAME_SO
610 #rename
611 install: install-am
612         rm -rf $(libdir)/libdali-adaptor.so
613         rm -rf $(libdir)/libdali-adaptor-cxx03.so
614         ln -s $(libdir)/libdali-adaptor.so.0.0.* $(libdir)/libdali-adaptor-cxx03.so
615 endif
616
617 else
618
619 linker_test_LDADD += libdali-adaptor-cxx11.la
620 linker_test_DEPENDENCIES = libdali-adaptor-cxx11.la
621
622 if ENABLE_RENAME_SO
623 #rename
624 install: install-am
625         rm -rf $(libdir)/libdali-adaptor-cxx11.so
626         rm -rf $(libdir)/libdali-adaptor.so
627         ln -s $(libdir)/libdali-adaptor-cxx11.so.0.0.* $(libdir)/libdali-adaptor.so
628 endif
629
630 endif