Skip to content

Commit 4a4181a

Browse files
committed
Temporarily unsupport Tizen 4.0 and use only ecore_wl2
1 parent 30223bc commit 4a4181a

8 files changed

+7
-231
lines changed

azure-pipelines.yml

+5-28
Original file line numberDiff line numberDiff line change
@@ -68,43 +68,20 @@ jobs:
6868
--runtime-mode $(mode) \
6969
--embedder-for-target \
7070
--disable-desktop-embeddings \
71-
--build-tizen-shell \
72-
--out-dir output/default
73-
ninja -C output/default/out/linux_$(mode)_$(arch)
71+
--build-tizen-shell
72+
ninja -C out/linux_$(mode)_$(arch)
7473
displayName: Build
7574
workingDirectory: $(buildroot)
7675
failOnStderr: true
77-
- bash: |
78-
flutter/tools/gn \
79-
--target-os linux \
80-
--linux-cpu $(arch) \
81-
--target-toolchain `pwd`/tizen_tools/toolchains \
82-
--target-sysroot `pwd`/tizen_tools/sysroot/$(arch)_40 \
83-
--target-triple $(targetTriple) \
84-
--runtime-mode $(mode) \
85-
--embedder-for-target \
86-
--disable-desktop-embeddings \
87-
--build-tizen-shell \
88-
--tizen-sdk-4 \
89-
--out-dir output/tizen40
90-
ninja -C output/tizen40/out/linux_$(mode)_$(arch)
91-
displayName: Build for Tizen 4.0
92-
workingDirectory: $(buildroot)
93-
condition: ne(variables['arch'], 'arm64')
94-
failOnStderr: true
9576
- bash: |
9677
OUTDIR=$(Build.StagingDirectory)
97-
cp default/out/linux_$(mode)_$(arch)/libflutter_engine.so $OUTDIR
98-
cp default/out/linux_$(mode)_$(arch)/libflutter_tizen.so $OUTDIR
99-
if [[ "$(arch)" != "arm64" ]]; then
100-
cp tizen40/out/linux_$(mode)_$(arch)/libflutter_tizen.so $OUTDIR/libflutter_tizen40.so
101-
fi
78+
cp out/linux_$(mode)_$(arch)/libflutter_*.so $OUTDIR
10279
if [[ $(System.JobName) == "tizen-arm-release" ]]; then
10380
mkdir $OUTDIR/common
104-
cp default/out/linux_$(mode)_$(arch)/{cpp_client_wrapper,icu,public} $OUTDIR/common
81+
cp out/linux_$(mode)_$(arch)/{cpp_client_wrapper,icu,public} $OUTDIR/common
10582
fi
10683
displayName: Copy artifacts
107-
workingDirectory: $(buildroot)/output
84+
workingDirectory: $(buildroot)
10885
failOnStderr: true
10986
- publish: $(Build.StagingDirectory)
11087
artifact: $(System.JobName)

shell/platform/tizen/BUILD.gn

+2-10
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,9 @@ template("embedder_for_profile") {
126126
"//third_party/rapidjson",
127127
]
128128

129-
if (tizen_sdk_4) {
130-
sources += [ "tizen_renderer_ecore_wl.cc" ]
129+
sources += [ "tizen_renderer_ecore_wl2.cc" ]
131130

132-
libs += [ "ecore_wayland", "wayland-egl" ]
133-
134-
defines = [ "FLUTTER_TIZEN_4" ]
135-
} else {
136-
sources += [ "tizen_renderer_ecore_wl2.cc" ]
137-
138-
libs += [ "ecore_wl2" ]
139-
}
131+
libs += [ "ecore_wl2" ]
140132
}
141133
}
142134

shell/platform/tizen/channels/text_input_channel.cc

-2
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,7 @@ bool TextInputChannel::FilterEvent(Ecore_Event_Key* keyDownEvent) {
435435
ecore_device_class_get(keyDownEvent->dev));
436436
ecoreKeyDownEvent.dev_subclass = EoreDeviceSubClassToEcoreIMFDeviceSubClass(
437437
ecore_device_subclass_get(keyDownEvent->dev));
438-
#ifndef FLUTTER_TIZEN_4
439438
ecoreKeyDownEvent.keycode = keyDownEvent->keycode;
440-
#endif
441439

442440
bool isIME = strcmp(device, "ime") == 0;
443441

shell/platform/tizen/tizen_embedder_engine.cc

-6
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,9 @@ static double GetDeviceDpi() {
4646
TizenEmbedderEngine::TizenEmbedderEngine(
4747
const FlutterWindowProperties& window_properties)
4848
: device_profile(GetDeviceProfile()), device_dpi(GetDeviceDpi()) {
49-
#ifdef FLUTTER_TIZEN_4
50-
tizen_renderer = std::make_unique<TizenRendererEcoreWl>(
51-
*this, window_properties.x, window_properties.y, window_properties.width,
52-
window_properties.height);
53-
#else
5449
tizen_renderer = std::make_unique<TizenRendererEcoreWl2>(
5550
*this, window_properties.x, window_properties.y, window_properties.width,
5651
window_properties.height);
57-
#endif
5852

5953
// Run flutter task on Tizen main loop.
6054
// Tizen engine has four threads (GPU thread, UI thread, IO thread, platform

shell/platform/tizen/tizen_embedder_engine.h

-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@
2424
#include "flutter/shell/platform/tizen/public/flutter_tizen_texture_registrar.h"
2525
#include "flutter/shell/platform/tizen/tizen_event_loop.h"
2626
#include "flutter/shell/platform/tizen/tizen_renderer.h"
27-
#ifdef FLUTTER_TIZEN_4
28-
#include "flutter/shell/platform/tizen/tizen_renderer_ecore_wl.h"
29-
#else
3027
#include "flutter/shell/platform/tizen/tizen_renderer_ecore_wl2.h"
31-
#endif
3228
#include "flutter/shell/platform/tizen/tizen_vsync_waiter.h"
3329
#include "flutter/shell/platform/tizen/touch_event_handler.h"
3430

shell/platform/tizen/tizen_renderer_ecore_wl.cc

-133
This file was deleted.

shell/platform/tizen/tizen_renderer_ecore_wl.h

-46
This file was deleted.

tools/gn

-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ def to_gn_args(args):
129129

130130
gn_args['embedder_for_target'] = args.embedder_for_target
131131
gn_args['build_tizen_shell'] = args.build_tizen_shell
132-
gn_args['tizen_sdk_4'] = args.tizen_sdk_4
133132

134133
gn_args['enable_coverage'] = args.coverage
135134

@@ -404,7 +403,6 @@ def parse_args(args):
404403

405404
parser.add_argument('--embedder-for-target', dest='embedder_for_target', action='store_true', default=False)
406405
parser.add_argument('--build-tizen-shell', dest='build_tizen_shell', action='store_true', default=False)
407-
parser.add_argument('--tizen-sdk-4', dest='tizen_sdk_4', action='store_true', default=False)
408406

409407
parser.add_argument('--coverage', default=False, action='store_true')
410408

0 commit comments

Comments
 (0)