2
2
# Copyright 2013 The Flutter Authors. All rights reserved.
3
3
# Use of this source code is governed by a BSD-style license that can be
4
4
# found in the LICENSE file.
5
+ import (" //flutter/shell/platform/tizen/config.gni" )
5
6
6
- _public_headers = [ " public/flutter_tizen.h" ]
7
+ group (" tizen" ) {
8
+ deps = [ " :flutter_tizen_library" ]
9
+ }
10
+
11
+ shared_library (" flutter_tizen_library" ) {
12
+ output_name = " flutter_tizen"
13
+
14
+ ldflags = [ " -Wl,-rpath,\$ ORIGIN" ]
15
+
16
+ deps = [ " :flutter_tizen" ]
7
17
8
- # Any files that are built by clients (client_wrapper code, library headers for
9
- # implementations using this shared code, etc.) include the public headers
10
- # assuming they are in the include path. This configuration should be added to
11
- # any such code that is also built by GN to make the includes work.
12
- config (" relative_flutter_tizen_headers" ) {
13
- include_dirs = [ " public" ]
18
+ public_configs = [ " //flutter:config" ]
14
19
}
15
20
16
- # The headers are a separate source set since the client wrapper is allowed
17
- # to depend on the public headers, but none of the rest of the code.
18
21
source_set (" flutter_tizen_headers" ) {
19
- public = _public_headers
22
+ public = [
23
+ " public/flutter_platform_view.h" ,
24
+ " public/flutter_texture_registrar.h" ,
25
+ " public/flutter_tizen.h" ,
26
+ ]
20
27
21
28
public_deps =
22
29
[ " //flutter/shell/platform/common/cpp:common_cpp_library_headers" ]
@@ -43,8 +50,7 @@ source_set("flutter_tizen") {
43
50
" key_event_handler.cc" ,
44
51
" tizen_embedder_engine.cc" ,
45
52
" tizen_event_loop.cc" ,
46
- " tizen_surface.cc" ,
47
- " tizen_surface_gl.cc" ,
53
+ " tizen_renderer.cc" ,
48
54
" tizen_vsync_waiter.cc" ,
49
55
" touch_event_handler.cc" ,
50
56
]
@@ -57,30 +63,33 @@ source_set("flutter_tizen") {
57
63
" //flutter/shell/platform/common/cpp:common_cpp" ,
58
64
" //flutter/shell/platform/common/cpp:common_cpp_input" ,
59
65
" //flutter/shell/platform/common/cpp/client_wrapper:client_wrapper" ,
60
- " //flutter/shell/platform/embedder:embedder_as_internal_library " ,
66
+ " //flutter/shell/platform/embedder:flutter_engine " ,
61
67
" //third_party/rapidjson" ,
62
68
]
63
69
64
70
include_dirs = [
65
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include" ,
66
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/base" ,
67
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/dlog" ,
68
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/ecore-1" ,
69
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/ecore-evas-1" ,
70
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/ecore-imf-1" ,
71
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/ecore-imf-evas-1" ,
72
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/ecore-input-1" ,
73
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/ecore-wl2-1" ,
74
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/efl-1" ,
75
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/eina-1" ,
76
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/eina-1/eina" ,
77
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/emile-1" ,
78
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/eo-1" ,
79
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/evas-1" ,
80
- " //third_party/tizen_tools/sysroot/$target_cpu /usr/include/system" ,
71
+ " $custom_sysroot /usr/include" ,
72
+ " $custom_sysroot /usr/include/appfw" ,
73
+ " $custom_sysroot /usr/include/base" ,
74
+ " $custom_sysroot /usr/include/dlog" ,
75
+ " $custom_sysroot /usr/include/ecore-1" ,
76
+ " $custom_sysroot /usr/include/ecore-evas-1" ,
77
+ " $custom_sysroot /usr/include/ecore-imf-1" ,
78
+ " $custom_sysroot /usr/include/ecore-imf-evas-1" ,
79
+ " $custom_sysroot /usr/include/ecore-input-1" ,
80
+ " $custom_sysroot /usr/include/ecore-wayland-1" ,
81
+ " $custom_sysroot /usr/include/ecore-wl2-1" ,
82
+ " $custom_sysroot /usr/include/efl-1" ,
83
+ " $custom_sysroot /usr/include/eina-1" ,
84
+ " $custom_sysroot /usr/include/eina-1/eina" ,
85
+ " $custom_sysroot /usr/include/emile-1" ,
86
+ " $custom_sysroot /usr/include/eo-1" ,
87
+ " $custom_sysroot /usr/include/evas-1" ,
88
+ " $custom_sysroot /usr/include/system" ,
89
+ " $custom_sysroot /usr/include/wayland-extension"
81
90
]
82
91
83
- lib_dirs = [ " //third_party/tizen_tools/sysroot/ $target_cpu /usr/lib" ]
92
+ lib_dirs = [ root_out_dir , " $custom_sysroot /usr/lib" ]
84
93
85
94
cflags_cc = [
86
95
" -Wno-newline-eof" ,
@@ -89,26 +98,29 @@ source_set("flutter_tizen") {
89
98
90
99
libs = [
91
100
" base-utils-i18n" ,
101
+ " capi-appfw-application" ,
92
102
" capi-system-info" ,
93
103
" capi-system-system-settings" ,
94
104
" dlog" ,
95
105
" ecore" ,
96
106
" ecore_imf" ,
97
107
" ecore_input" ,
98
- " ecore_wl2 " ,
108
+ " eina " ,
99
109
" EGL" ,
100
110
" evas" ,
111
+ " flutter_engine" ,
101
112
" GLESv2" ,
102
113
" tbm" ,
103
114
" tdm-client" ,
104
115
" wayland-client" ,
105
116
]
106
- }
107
-
108
- copy (" publish_headers_tizen" ) {
109
- sources = _public_headers
110
- outputs = [ " $root_out_dir /{{source_file_part}}" ]
111
117
112
- # The Tizen header assumes the presence of the common headers.
113
- deps = [ " //flutter/shell/platform/common/cpp:publish_headers" ]
118
+ if (tizen_sdk_4 ) {
119
+ sources += [ " tizen_renderer_ecore_wl.cc" ]
120
+ libs += [ " ecore_wayland" , " wayland-egl" ]
121
+ defines = [ " FLUTTER_TIZEN_4" ]
122
+ } else {
123
+ sources += [ " tizen_renderer_ecore_wl2.cc" ]
124
+ libs += [ " ecore_wl2" ]
125
+ }
114
126
}
0 commit comments