Merge branch 'devel/master' into tizen
[platform/core/uifw/dali-adaptor.git] / build / tizen / profiles / mobile-profile.cmake
1 # PROFILE: UBUNTU
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_common_src_files}
12         ${adaptor_clipboard_tizen_wayland_src_files}
13         ${adaptor_drag_and_drop_tizen_wayland_src_files}
14         ${adaptor_framework_generic_src_files}
15         ${devel_api_src_files}
16         ${adaptor_devel_api_text_abstraction_src_files}
17         ${adaptor_graphics_common_src_files}
18         ${adaptor_graphics_gles_src_files}
19         ${adaptor_graphics_tizen_src_files}
20         ${adaptor_haptics_common_src_files}
21         ${adaptor_imaging_common_src_files}
22         ${adaptor_imaging_tizen_src_files}
23         ${adaptor_input_common_src_files}
24         ${adaptor_input_tizen_wayland_src_files}
25         ${adaptor_integration_api_src_files}
26         ${adaptor_legacy_common_src_files}
27         ${adaptor_network_common_src_files}
28         ${adaptor_offscreen_common_src_files}
29         ${adaptor_public_api_src_files}
30         ${adaptor_sensor_common_src_files}
31         ${adaptor_sensor_tizen_src_files}
32         ${adaptor_styling_common_src_files}
33         ${adaptor_system_common_src_files}
34         ${adaptor_system_linux_src_files}
35         ${adaptor_system_tizen_wayland_src_files}
36         ${adaptor_text_common_src_files}
37         ${adaptor_resampler_src_files}
38         ${adaptor_vector_animation_common_src_files}
39         ${adaptor_vector_image_common_src_files}
40         ${adaptor_video_common_src_files}
41         ${adaptor_camera_common_src_files}
42         ${adaptor_web_engine_common_src_files}
43         ${adaptor_window_system_common_src_files}
44         ${adaptor_window_system_tizen_src_files}
45         ${adaptor_window_system_tizen_wayland_src_files}
46         ${adaptor_trace_common_src_files}
47         ${adaptor_thread_common_src_files}
48         ${adaptor_addons_common_src_files}
49         ${adaptor_addons_tizen_src_files}
50         ${devel_api_text_abstraction_src_files}
51         ${static_libraries_glyphy_src_files}
52         ${static_libraries_libunibreak_src_files}
53         ${static_libraries_nanosvg_src_files}
54 )
55 IF( enable_ecore_wayland2 )
56     SET( SOURCES ${SOURCES}
57          ${adaptor_window_system_ecore_wl2_src_files}
58          )
59 ELSE()
60     SET( SOURCES ${SOURCES}
61          ${adaptor_window_system_ecore_wl_src_files}
62          )
63 ENDIF()
64
65 IF( ENABLE_NETWORK_LOGGING )
66     SET( SOURCES ${SOURCES}
67           ${adaptor_performance_logging_src_files}
68     )
69 ENDIF()
70
71 IF( ENABLE_TRACE )
72     SET( SOURCES ${SOURCES}
73         ${adaptor_trace_tizen_src_files}
74       )
75 ENDIF()
76
77 IF( COMPONENT_APPLICATION_SUPPORT )
78     SET( SOURCES ${SOURCES}
79         ${adaptor_adaptor_component_application_src_files}
80       )
81 ENDIF()
82
83 # Set the linker flags
84 SET(REQUIRED_LIBS
85   -lhyphen
86 )
87
88 FIND_LIBRARY( HYPHEN_LIBRARY NAMES hyphen )
89 IF (${HYPHEN_LIBRARY} MATCHES "HYPHEN_LIBRARY-NOTFOUND")
90   UNSET (HYPHEN_LIBRARY_AVAILABLE)
91 ELSE()
92   SET (HYPHEN_LIBRARY_AVAILABLE "HYPHEN_LIBRARY_AVAILABLE")
93   ADD_DEFINITIONS(-DHYPHEN_LIBRARY_AVAILABLE="${HYPHEN_LIBRARY_AVAILABLE}")
94
95   #The path of hyphen library dictionary
96   IF (NOT "${HYPHEN_DIC}")
97   FIND_PATH(HYPHEN_DIC hyph_en_US.dic HINTS "/usr/local/share/hyphen" "/usr/share/hyphen" )
98   IF ( NOT HYPHEN_DIC MATCHES  "HYPHEN_DIC-NOTFOUND")
99     ADD_DEFINITIONS(-DHYPHEN_DIC="${HYPHEN_DIC}")
100   ENDIF()
101   ENDIF()
102   MESSAGE (HYPHEN_DIC: "${HYPHEN_DIC}")
103
104 ENDIF()