forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tizen] Initial implementation of Tizen platform shell
Co-authored-by: Swift Kim <swift.kim@samsung.com> Co-authored-by: Xiaowei Guan <xiaowei.guan@samsung.com> Co-authored-by: Wanchao Xu <wanchao.xu@samsung.com> Co-authored-by: Boram Bae <boram21.bae@samsung.com> Co-authored-by: MuHong Byun <mh.byun@samsung.com> Co-authored-by: Seungsoo Lee <seungsoo47.lee@samsung.com>
- Loading branch information
1 parent
4654fc6
commit a60595f
Showing
44 changed files
with
3,933 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# Copyright 2020 Samsung Electronics Co., Ltd. All rights reserved. | ||
# Copyright 2013 The Flutter Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
_public_headers = [ "public/flutter_tizen.h" ] | ||
|
||
# Any files that are built by clients (client_wrapper code, library headers for | ||
# implementations using this shared code, etc.) include the public headers | ||
# assuming they are in the include path. This configuration should be added to | ||
# any such code that is also built by GN to make the includes work. | ||
config("relative_flutter_tizen_headers") { | ||
include_dirs = [ "public" ] | ||
} | ||
|
||
# The headers are a separate source set since the client wrapper is allowed | ||
# to depend on the public headers, but none of the rest of the code. | ||
source_set("flutter_tizen_headers") { | ||
public = _public_headers | ||
|
||
public_deps = | ||
[ "//flutter/shell/platform/common/cpp:common_cpp_library_headers" ] | ||
|
||
configs += | ||
[ "//flutter/shell/platform/common/cpp:desktop_library_implementation" ] | ||
|
||
public_configs = | ||
[ "//flutter/shell/platform/common/cpp:relative_flutter_library_headers" ] | ||
} | ||
|
||
source_set("flutter_tizen") { | ||
sources = [ | ||
"channels/key_event_channel.cc", | ||
"channels/lifecycle_channel.cc", | ||
"channels/localization_channel.cc", | ||
"channels/navigation_channel.cc", | ||
"channels/platform_channel.cc", | ||
"channels/platform_view_channel.cc", | ||
"channels/settings_channel.cc", | ||
"channels/text_input_channel.cc", | ||
"external_texture_gl.cc", | ||
"flutter_tizen.cc", | ||
"key_event_handler.cc", | ||
"tizen_embedder_engine.cc", | ||
"tizen_event_loop.cc", | ||
"tizen_surface.cc", | ||
"tizen_surface_gl.cc", | ||
"tizen_vsync_waiter.cc", | ||
"touch_event_handler.cc", | ||
] | ||
|
||
configs += | ||
[ "//flutter/shell/platform/common/cpp:desktop_library_implementation" ] | ||
|
||
deps = [ | ||
":flutter_tizen_headers", | ||
"//flutter/shell/platform/common/cpp:common_cpp", | ||
"//flutter/shell/platform/common/cpp:common_cpp_input", | ||
"//flutter/shell/platform/common/cpp/client_wrapper:client_wrapper", | ||
"//flutter/shell/platform/embedder:embedder_as_internal_library", | ||
"//third_party/rapidjson", | ||
] | ||
|
||
include_dirs = [ | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/base", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/dlog", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/ecore-1", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/ecore-evas-1", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/ecore-imf-1", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/ecore-imf-evas-1", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/ecore-input-1", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/ecore-wl2-1", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/efl-1", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/eina-1", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/eina-1/eina", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/emile-1", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/eo-1", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/evas-1", | ||
"//third_party/tizen_tools/sysroot/$target_cpu/usr/include/system", | ||
] | ||
|
||
lib_dirs = [ "//third_party/tizen_tools/sysroot/$target_cpu/usr/lib" ] | ||
|
||
cflags_cc = [ | ||
"-Wno-newline-eof", | ||
"-Wno-macro-redefined", | ||
] | ||
|
||
libs = [ | ||
"base-utils-i18n", | ||
"capi-system-info", | ||
"capi-system-system-settings", | ||
"dlog", | ||
"ecore", | ||
"ecore_imf", | ||
"ecore_input", | ||
"ecore_wl2", | ||
"EGL", | ||
"evas", | ||
"GLESv2", | ||
"tbm", | ||
"tdm-client", | ||
"wayland-client", | ||
] | ||
} | ||
|
||
copy("publish_headers_tizen") { | ||
sources = _public_headers | ||
outputs = [ "$root_out_dir/{{source_file_part}}" ] | ||
|
||
# The Tizen header assumes the presence of the common headers. | ||
deps = [ "//flutter/shell/platform/common/cpp:publish_headers" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. | ||
Copyright (c) 2013 The Flutter Authors. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided | ||
with the distribution. | ||
* Neither the names of the copyright holders nor the names of the | ||
contributors may be used to endorse or promote products derived | ||
from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Oops, something went wrong.