55import (" //flutter/shell/platform/common/client_wrapper/publish.gni" )
66import (" //flutter/shell/platform/config.gni" )
77import (" //flutter/shell/platform/tizen/config.gni" )
8+ import (" //flutter/testing/testing.gni" )
89
910# Sets the rpath of dependent targets (shared libs) to $ORIGIN.
1011# We assume that the flutter_engine library exists next to the embedder library
@@ -25,6 +26,37 @@ source_set("flutter_engine") {
2526 deps = [ " //flutter/shell/platform/embedder:flutter_engine" ]
2627}
2728
29+ _flutter_tizen_source = [
30+ " channels/key_event_channel.cc" ,
31+ " channels/lifecycle_channel.cc" ,
32+ " channels/localization_channel.cc" ,
33+ " channels/navigation_channel.cc" ,
34+ " channels/platform_channel.cc" ,
35+ " channels/platform_view_channel.cc" ,
36+ " channels/settings_channel.cc" ,
37+ " channels/text_input_channel.cc" ,
38+ " external_texture_pixel_gl.cc" ,
39+ " external_texture_surface_gl.cc" ,
40+ " flutter_tizen.cc" ,
41+ " flutter_tizen_engine.cc" ,
42+ " flutter_tizen_texture_registrar.cc" ,
43+ " key_event_handler.cc" ,
44+ " tizen_event_loop.cc" ,
45+ " tizen_log.cc" ,
46+ " tizen_renderer.cc" ,
47+ " touch_event_handler.cc" ,
48+ ]
49+
50+ _libs_minimum = [
51+ " ecore" ,
52+ " ecore_imf" ,
53+ " ecore_input" ,
54+ " eina" ,
55+ " EGL" ,
56+ " GLESv2" ,
57+ " wayland-client" ,
58+ ]
59+
2860_public_headers = [
2961 " public/flutter_platform_view.h" ,
3062 " public/flutter_tizen.h" ,
@@ -72,7 +104,6 @@ config("tizen_rootstrap_include_dirs") {
72104 local_prefix + " /include/elementary-1" ,
73105 local_prefix + " /include/ethumb-1" ,
74106 local_prefix + " /include/ethumb-client-1" ,
75- local_prefix + " /include/evas-1" ,
76107 ]
77108 lib_dirs = [ local_prefix + " /lib" ]
78109}
@@ -92,54 +123,19 @@ template("embedder_for_profile") {
92123 shared_library (" flutter_tizen_${ target_name } " ) {
93124 public = _public_headers
94125
95- sources = [
96- " channels/key_event_channel.cc" ,
97- " channels/lifecycle_channel.cc" ,
98- " channels/localization_channel.cc" ,
99- " channels/navigation_channel.cc" ,
100- " channels/platform_channel.cc" ,
101- " channels/platform_view_channel.cc" ,
102- " channels/settings_channel.cc" ,
103- " channels/text_input_channel.cc" ,
104- " external_texture_pixel_gl.cc" ,
105- " external_texture_surface_gl.cc" ,
106- " flutter_tizen.cc" ,
107- " flutter_tizen_engine.cc" ,
108- " flutter_tizen_texture_registrar.cc" ,
109- " key_event_handler.cc" ,
110- " tizen_event_loop.cc" ,
111- " tizen_log.cc" ,
112- " tizen_renderer.cc" ,
113- " touch_event_handler.cc" ,
114- ]
126+ sources = _flutter_tizen_source
127+ libs = _libs_minimum
115128 if (! enable_desktop_embeddings ) {
116- libs = [
129+ libs + = [
117130 " base-utils-i18n" ,
118131 " capi-appfw-application" ,
119132 " capi-base-common" ,
120133 " capi-system-info" ,
121134 " capi-system-system-settings" ,
122135 " dlog" ,
123- " ecore" ,
124- " ecore_imf" ,
125- " ecore_input" ,
126- " eina" ,
127- " EGL" ,
128136 " feedback" ,
129- " GLESv2" ,
130137 " tbm" ,
131138 " tdm-client" ,
132- " wayland-client" ,
133- ]
134- } else {
135- libs = [
136- " ecore" ,
137- " ecore_imf" ,
138- " ecore_input" ,
139- " eina" ,
140- " EGL" ,
141- " GLESv2" ,
142- " wayland-client" ,
143139 ]
144140 }
145141
@@ -217,44 +213,17 @@ embedder_for_profile("common") {
217213 defines = [ " COMMON_PROFILE" ]
218214}
219215
216+ test_fixtures (" flutter_tizen_fixtures" ) {
217+ fixtures = []
218+ }
219+
220220executable (" flutter_tizen_unittests" ) {
221221 testonly = true
222222 public = _public_headers
223- sources = [
224- " channels/key_event_channel.cc" ,
225- " channels/lifecycle_channel.cc" ,
226- " channels/localization_channel.cc" ,
227- " channels/navigation_channel.cc" ,
228- " channels/platform_channel.cc" ,
229- " channels/platform_view_channel.cc" ,
230- " channels/settings_channel.cc" ,
231- " channels/text_input_channel.cc" ,
232- " external_texture_pixel_gl.cc" ,
233- " external_texture_surface_gl.cc" ,
234- " flutter_tizen.cc" ,
235- " flutter_tizen_engine.cc" ,
236- " flutter_tizen_texture_registrar.cc" ,
237- " key_event_handler.cc" ,
238- " tizen_event_loop.cc" ,
239- " tizen_log.cc" ,
240- " tizen_renderer.cc" ,
241- " touch_event_handler.cc" ,
242- " flutter_tizen_engine_test.cc" ,
243- ]
244-
245- libs = [
246- " ecore" ,
247- " ecore_imf" ,
248- " ecore_input" ,
249- " eina" ,
250- " evas" ,
251- " EGL" ,
252- " GLESv2" ,
253- " wayland-client" ,
254- ]
255-
223+ sources = _flutter_tizen_source
256224 sources += [ " tizen_renderer_evas_gl.cc" ]
257-
225+ sources += [ " flutter_tizen_engine_test.cc" ]
226+ libs = _libs_minimum
258227 libs += [
259228 " ecore_evas" ,
260229 " elementary" ,
@@ -265,22 +234,26 @@ executable("flutter_tizen_unittests") {
265234 " -Wno-newline-eof" ,
266235 " -Wno-macro-redefined" ,
267236 ]
237+
238+ public_configs = [ " //flutter:config" ]
268239 configs += [
269240 " :tizen_rootstrap_include_dirs" ,
270241 " //flutter/shell/platform/common:desktop_library_implementation" ,
271242 ]
272-
273- public_configs = [ " //flutter:config" ]
274-
275243 public_deps = [
276- " :flutter_engine" ,
277- " //third_party/googletest:gtest" ,
278- ]
244+ " :flutter_engine" ,
245+ " //third_party/googletest:gtest" ,
246+ ]
279247 deps = [
248+ " :flutter_tizen_fixtures" ,
249+ " //flutter/runtime:libdart" ,
280250 " //flutter/shell/platform/common:common_cpp" ,
281251 " //flutter/shell/platform/common:common_cpp_input" ,
282252 " //flutter/shell/platform/common:common_cpp_library_headers" ,
283253 " //flutter/shell/platform/common/client_wrapper:client_wrapper" ,
254+ " //flutter/shell/platform/embedder:embedder_headers" ,
255+ " //flutter/shell/platform/embedder:embedder_test_utils" ,
256+ " //flutter/testing" ,
284257 " //third_party/rapidjson" ,
285258 ]
286259}
0 commit comments