8305c244e1220b5bd9ae564acbf65cddad7f3923
[platform/core/uifw/dali-adaptor.git] / build / tizen / profiles / tv-profile.cmake
1 # PROFILE: IVI
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_tv_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_thread_linux_src_files}
49     ${devel_api_text_abstraction_src_files}
50     ${adaptor_addons_common_src_files}
51     ${adaptor_addons_tizen_src_files}
52     ${static_libraries_libunibreak_src_files}
53      )
54
55 IF( ENABLE_VECTOR_BASED_TEXT_RENDERING )
56     SET( SOURCES ${SOURCES}
57          ${static_libraries_glyphy_src_files}
58          )
59 ENDIF()
60
61 IF( NOT thorvg_support)
62     SET( SOURCES ${SOURCES}
63          ${static_libraries_nanosvg_src_files}
64          )
65 ENDIF()
66
67 IF( enable_ecore_wayland2 )
68     SET( SOURCES ${SOURCES}
69          ${adaptor_window_system_ecore_wl2_src_files}
70          )
71 ELSE()
72     SET( SOURCES ${SOURCES}
73          ${adaptor_window_system_ecore_wl_src_files}
74          )
75 ENDIF()
76
77 IF( ENABLE_NETWORK_LOGGING )
78     SET( SOURCES ${SOURCES}
79          ${adaptor_performance_logging_src_files}
80          )
81 ENDIF()
82
83 IF( ENABLE_TRACE )
84     SET( SOURCES ${SOURCES}
85          ${adaptor_trace_tizen_src_files}
86          )
87 ENDIF()
88
89 IF( COMPONENT_APPLICATION_SUPPORT )
90     SET( SOURCES ${SOURCES}
91         ${adaptor_adaptor_component_application_src_files}
92       )
93 ENDIF()
94
95 # Set the linker flags
96 SET(REQUIRED_LIBS
97   -lhyphen
98 )
99
100 FIND_LIBRARY( HYPHEN_LIBRARY NAMES hyphen )
101 IF (${HYPHEN_LIBRARY} MATCHES "HYPHEN_LIBRARY-NOTFOUND")
102   UNSET (HYPHEN_LIBRARY_AVAILABLE)
103 ELSE()
104   SET (HYPHEN_LIBRARY_AVAILABLE "HYPHEN_LIBRARY_AVAILABLE")
105   ADD_DEFINITIONS(-DHYPHEN_LIBRARY_AVAILABLE="${HYPHEN_LIBRARY_AVAILABLE}")
106
107   #The path of hyphen library dictionary
108   IF (NOT "${HYPHEN_DIC}")
109   FIND_PATH(HYPHEN_DIC hyph_en_US.dic HINTS "/usr/local/share/hyphen" "/usr/share/hyphen" )
110   IF ( NOT HYPHEN_DIC MATCHES  "HYPHEN_DIC-NOTFOUND")
111     ADD_DEFINITIONS(-DHYPHEN_DIC="${HYPHEN_DIC}")
112   ENDIF()
113   ENDIF()
114   MESSAGE (HYPHEN_DIC: "${HYPHEN_DIC}")
115
116 ENDIF()
117