Enable IME support for Ozone Efl
[platform/framework/web/chromium-efl.git] / tizen_src / chromium_impl / ui / ozone / platform / efl / BUILD.gn
1 # Copyright 2021 Samsung Electronics. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//tizen_src/build/config/tizen_features.gni")
6
7 visibility = [ "//ui/ozone/*" ]
8
9 source_set("efl") {
10   sources = [
11     "client_native_pixmap_factory_efl.cc",
12     "client_native_pixmap_factory_efl.h",
13     "efl_event_handler.cc",
14     "efl_event_handler.h",
15     "efl_input_method_context.cc",
16     "efl_input_method_context.h",
17     "efl_platform_event_source.cc",
18     "efl_platform_event_source.h",
19     "efl_screen.cc",
20     "efl_screen.h",
21     "efl_surface_factory.cc",
22     "efl_surface_factory.h",
23     "efl_window.cc",
24     "efl_window.h",
25     "efl_window_manager.h",
26     "im_context_efl.cc",
27     "im_context_efl.h",
28     "ozone_platform_efl.cc",
29     "ozone_platform_efl.h",
30   ]
31
32   deps = [
33     "//base",
34     "//mojo/public/cpp/bindings",
35     "//mojo/public/cpp/system",
36     "//skia",
37     "//tizen_src/chromium_impl/tizen:system-info",
38     "//ui/base",
39     "//ui/base:buildflags",
40     "//ui/base/cursor",
41     "//ui/base/ime/linux",
42     "//ui/events",
43     "//ui/events:dom_keycode_converter",
44     "//ui/events/ozone",
45     "//ui/events/ozone/layout",
46     "//ui/events/platform",
47     "//ui/gfx",
48     "//ui/gfx:memory_buffer",
49     "//ui/gfx/geometry",
50     "//ui/ozone:ozone_base",
51     "//ui/ozone/common",
52     "//ui/platform_window",
53   ]
54
55   configs += [
56     "//tizen_src/build:ecore-evas",
57     "//tizen_src/build:libecore-evas",
58   ]
59
60   if (use_wayland) {
61     configs += [
62       "//tizen_src/build:ecore-wayland",
63       "//tizen_src/build:libecore-wayland",
64     ]
65   } else {
66     configs += [
67       "//tizen_src/build:ecore-x",
68       "//tizen_src/build:libecore-x",
69     ]
70   }
71
72   if (tizen_product_tv) {
73     configs += [ "//tizen_src/build:libvd-win-util" ]
74   }
75
76   defines = [ "OZONE_IMPLEMENTATION" ]
77 }