Fixing network logging build
[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_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_addons_common_src_files}
48         ${adaptor_addons_tizen_src_files}
49         ${devel_api_text_abstraction_src_files}
50         ${static_libraries_glyphy_src_files}
51         ${static_libraries_libunibreak_src_files}
52         ${static_libraries_nanosvg_src_files}
53 )
54 IF( enable_ecore_wayland2 )
55     SET( SOURCES ${SOURCES}
56          ${adaptor_window_system_ecore_wl2_src_files}
57          )
58 ELSE()
59     SET( SOURCES ${SOURCES}
60          ${adaptor_window_system_ecore_wl_src_files}
61          )
62 ENDIF()
63
64 IF( ENABLE_NETWORK_LOGGING )
65     SET( SOURCES ${SOURCES}
66           ${adaptor_performance_logging_src_files}
67     )
68 ENDIF()
69
70 IF( ENABLE_TRACE )
71     SET( SOURCES ${SOURCES}
72         ${adaptor_trace_tizen_src_files}
73       )
74 ENDIF()
75
76 IF( COMPONENT_APPLICATION_SUPPORT )
77     SET( SOURCES ${SOURCES}
78         ${adaptor_adaptor_component_application_src_files}
79       )
80 ENDIF()
81
82 # Set the linker flags
83 SET(REQUIRED_LIBS
84   -lhyphen
85 )
86
87 FIND_LIBRARY( HYPHEN_LIBRARY NAMES hyphen )
88 IF (${HYPHEN_LIBRARY} MATCHES "HYPHEN_LIBRARY-NOTFOUND")
89   UNSET (HYPHEN_LIBRARY_AVAILABLE)
90 ELSE()
91   SET (HYPHEN_LIBRARY_AVAILABLE "HYPHEN_LIBRARY_AVAILABLE")
92   ADD_DEFINITIONS(-DHYPHEN_LIBRARY_AVAILABLE="${HYPHEN_LIBRARY_AVAILABLE}")
93
94   #The path of hyphen library dictionary
95   IF (NOT "${HYPHEN_DIC}")
96   FIND_PATH(HYPHEN_DIC hyph_en_US.dic HINTS "/usr/local/share/hyphen" "/usr/share/hyphen" )
97   IF ( NOT HYPHEN_DIC MATCHES  "HYPHEN_DIC-NOTFOUND")
98     ADD_DEFINITIONS(-DHYPHEN_DIC="${HYPHEN_DIC}")
99   ENDIF()
100   ENDIF()
101   MESSAGE (HYPHEN_DIC: "${HYPHEN_DIC}")
102
103 ENDIF()