|
| 1 | +# Copyright 2020 Samsung Electronics Co., Ltd. All rights reserved. |
| 2 | +# Copyright 2013 The Flutter Authors. All rights reserved. |
| 3 | +# Use of this source code is governed by a BSD-style license that can be |
| 4 | +# found in the LICENSE file. |
| 5 | + |
| 6 | +_public_headers = [ "public/flutter_tizen.h" ] |
| 7 | + |
| 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" ] |
| 14 | +} |
| 15 | + |
| 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 | +source_set("flutter_tizen_headers") { |
| 19 | + public = _public_headers |
| 20 | + |
| 21 | + public_deps = |
| 22 | + [ "//flutter/shell/platform/common/cpp:common_cpp_library_headers" ] |
| 23 | + |
| 24 | + configs += |
| 25 | + [ "//flutter/shell/platform/common/cpp:desktop_library_implementation" ] |
| 26 | + |
| 27 | + public_configs = |
| 28 | + [ "//flutter/shell/platform/common/cpp:relative_flutter_library_headers" ] |
| 29 | +} |
| 30 | + |
| 31 | +source_set("flutter_tizen") { |
| 32 | + sources = [ |
| 33 | + "channels/key_event_channel.cc", |
| 34 | + "channels/lifecycle_channel.cc", |
| 35 | + "channels/localization_channel.cc", |
| 36 | + "channels/navigation_channel.cc", |
| 37 | + "channels/platform_channel.cc", |
| 38 | + "channels/platform_view_channel.cc", |
| 39 | + "channels/settings_channel.cc", |
| 40 | + "channels/text_input_channel.cc", |
| 41 | + "external_texture_gl.cc", |
| 42 | + "flutter_tizen.cc", |
| 43 | + "key_event_handler.cc", |
| 44 | + "tizen_embedder_engine.cc", |
| 45 | + "tizen_event_loop.cc", |
| 46 | + "tizen_surface.cc", |
| 47 | + "tizen_surface_gl.cc", |
| 48 | + "tizen_vsync_waiter.cc", |
| 49 | + "touch_event_handler.cc", |
| 50 | + ] |
| 51 | + |
| 52 | + configs += |
| 53 | + [ "//flutter/shell/platform/common/cpp:desktop_library_implementation" ] |
| 54 | + |
| 55 | + deps = [ |
| 56 | + ":flutter_tizen_headers", |
| 57 | + "//flutter/shell/platform/common/cpp:common_cpp", |
| 58 | + "//flutter/shell/platform/common/cpp:common_cpp_input", |
| 59 | + "//flutter/shell/platform/common/cpp/client_wrapper:client_wrapper", |
| 60 | + "//flutter/shell/platform/embedder:embedder_as_internal_library", |
| 61 | + "//third_party/rapidjson", |
| 62 | + ] |
| 63 | + |
| 64 | + 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", |
| 81 | + ] |
| 82 | + |
| 83 | + lib_dirs = [ "//third_party/tizen_tools/sysroot/$target_cpu/usr/lib" ] |
| 84 | + |
| 85 | + cflags_cc = [ |
| 86 | + "-Wno-newline-eof", |
| 87 | + "-Wno-macro-redefined", |
| 88 | + ] |
| 89 | + |
| 90 | + libs = [ |
| 91 | + "base-utils-i18n", |
| 92 | + "capi-system-info", |
| 93 | + "capi-system-system-settings", |
| 94 | + "dlog", |
| 95 | + "ecore", |
| 96 | + "ecore_imf", |
| 97 | + "ecore_input", |
| 98 | + "ecore_wl2", |
| 99 | + "EGL", |
| 100 | + "evas", |
| 101 | + "GLESv2", |
| 102 | + "tbm", |
| 103 | + "tdm-client", |
| 104 | + "wayland-client", |
| 105 | + ] |
| 106 | +} |
| 107 | + |
| 108 | +copy("publish_headers_tizen") { |
| 109 | + sources = _public_headers |
| 110 | + outputs = [ "$root_out_dir/{{source_file_part}}" ] |
| 111 | + |
| 112 | + # The Tizen header assumes the presence of the common headers. |
| 113 | + deps = [ "//flutter/shell/platform/common/cpp:publish_headers" ] |
| 114 | +} |
0 commit comments