[dali_2.3.39] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / build / tizen / profiles / mobile-profile.cmake
1 # PROFILE: MOBILE
2
3 # Set the sources
4 SET( SOURCES
5         ${adaptor_accessibility_common_src_files}
6         ${adaptor_accessibility_tizen_wayland_src_files}
7         ${adaptor_accessibility_tizen_mobile_src_files}
8         ${adaptor_adaptor_common_src_files}
9         ${adaptor_adaptor_tizen_wayland_src_files}
10         ${adaptor_canvas_renderer_tizen_src_files}
11         ${adaptor_clipboard_tizen_wayland_src_files}
12         ${adaptor_drag_and_drop_tizen_wayland_src_files}
13         ${adaptor_framework_generic_src_files}
14         ${devel_api_src_files}
15         ${adaptor_devel_api_text_abstraction_src_files}
16         ${adaptor_graphics_common_src_files}
17         ${adaptor_graphics_gles_src_files}
18         ${adaptor_graphics_tizen_src_files}
19         ${adaptor_haptics_common_src_files}
20         ${adaptor_imaging_common_src_files}
21         ${adaptor_imaging_tizen_src_files}
22         ${adaptor_input_common_src_files}
23         ${adaptor_input_tizen_wayland_src_files}
24         ${adaptor_integration_api_src_files}
25         ${adaptor_legacy_common_src_files}
26         ${adaptor_network_common_src_files}
27         ${adaptor_offscreen_common_src_files}
28         ${adaptor_public_api_src_files}
29         ${adaptor_sensor_common_src_files}
30         ${adaptor_sensor_tizen_src_files}
31         ${adaptor_styling_common_src_files}
32         ${adaptor_system_common_src_files}
33         ${adaptor_system_linux_src_files}
34         ${adaptor_system_tizen_wayland_src_files}
35         ${adaptor_text_common_src_files}
36         ${adaptor_resampler_src_files}
37         ${adaptor_vector_animation_common_src_files}
38         ${adaptor_vector_image_common_src_files}
39         ${adaptor_video_common_src_files}
40         ${adaptor_camera_common_src_files}
41         ${adaptor_web_engine_common_src_files}
42         ${adaptor_window_system_common_src_files}
43         ${adaptor_window_system_tizen_src_files}
44         ${adaptor_window_system_tizen_wayland_src_files}
45         ${adaptor_trace_common_src_files}
46         ${adaptor_thread_common_src_files}
47         ${adaptor_thread_linux_src_files}
48         ${adaptor_addons_common_src_files}
49         ${adaptor_addons_tizen_src_files}
50         ${devel_api_text_abstraction_src_files}
51         ${static_libraries_libunibreak_src_files}
52 )
53
54 IF(NOT ENABLE_VULKAN)
55   SET(SOURCES ${SOURCES}
56     ${adaptor_public_api_egl_src_files}
57     ${adaptor_devel_api_egl_src_files}
58     ${adaptor_system_common_egl_src_files}
59     ${adaptor_window_system_common_egl_src_files}
60   )
61 ENDIF()
62
63 IF( ENABLE_VECTOR_BASED_TEXT_RENDERING )
64     SET( SOURCES ${SOURCES}
65          ${static_libraries_glyphy_src_files}
66          )
67 ENDIF()
68
69 IF( NOT thorvg_support)
70     SET( SOURCES ${SOURCES}
71          ${static_libraries_nanosvg_src_files}
72          )
73 ENDIF()
74
75 IF( enable_ecore_wayland2 )
76     SET( SOURCES ${SOURCES}
77          ${adaptor_window_system_ecore_wl2_src_files}
78          )
79 ELSE()
80     SET( SOURCES ${SOURCES}
81          ${adaptor_window_system_ecore_wl_src_files}
82          )
83 ENDIF()
84
85 IF( ENABLE_NETWORK_LOGGING )
86     SET( SOURCES ${SOURCES}
87           ${adaptor_performance_logging_src_files}
88     )
89 ENDIF()
90
91 IF( ENABLE_TRACE_STREAMLINE )
92     SET( SOURCES ${SOURCES}
93          ${adaptor_trace_tizen_streamline_src_files}
94          )
95 ELSEIF( ENABLE_TRACE )
96     SET( SOURCES ${SOURCES}
97          ${adaptor_trace_tizen_src_files}
98          )
99 ENDIF()
100
101 IF( COMPONENT_APPLICATION_SUPPORT )
102     SET( SOURCES ${SOURCES}
103         ${adaptor_adaptor_component_application_src_files}
104       )
105 ENDIF()
106
107 # Set the linker flags
108 SET(REQUIRED_LIBS
109   -lhyphen
110 )
111
112 FIND_LIBRARY( HYPHEN_LIBRARY NAMES hyphen )
113 IF (${HYPHEN_LIBRARY} MATCHES "HYPHEN_LIBRARY-NOTFOUND")
114   UNSET (HYPHEN_LIBRARY_AVAILABLE)
115 ELSE()
116   SET (HYPHEN_LIBRARY_AVAILABLE "HYPHEN_LIBRARY_AVAILABLE")
117   ADD_DEFINITIONS(-DHYPHEN_LIBRARY_AVAILABLE="${HYPHEN_LIBRARY_AVAILABLE}")
118
119   #The path of hyphen library dictionary
120   IF (NOT "${HYPHEN_DIC}")
121   FIND_PATH(HYPHEN_DIC hyph_en_US.dic HINTS "/usr/local/share/hyphen" "/usr/share/hyphen" )
122   IF ( NOT HYPHEN_DIC MATCHES  "HYPHEN_DIC-NOTFOUND")
123     ADD_DEFINITIONS(-DHYPHEN_DIC="${HYPHEN_DIC}")
124   ENDIF()
125   ENDIF()
126   MESSAGE (HYPHEN_DIC: "${HYPHEN_DIC}")
127
128 ENDIF()