[M120 Migration][VD] Enable direct rendering for TVPlus
[platform/framework/web/chromium-efl.git] / mojo / BUILD.gn
1 # Copyright 2014 The Chromium Authors
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("//build/buildflag_header.gni")
6 import("//build/config/ui.gni")
7 import("//mojo/features.gni")
8 import("//testing/test.gni")
9
10 group("mojo") {
11   # Meta-target, don't link into production code.
12   testonly = true
13   deps = [ ":tests" ]
14
15   if (!((is_linux || is_chromeos) && current_cpu == "x86")) {
16     deps += [ "//mojo/public" ]
17   }
18
19   if (is_android) {
20     deps += [ "//mojo/public/java/system" ]
21   }
22
23   deps += [ "//services/service_manager:all" ]
24 }
25
26 buildflag_header("buildflags") {
27   header = "buildflags.h"
28   flags = [ "MOJO_USE_APPLE_CHANNEL=$mojo_use_apple_channel" ]
29 }
30
31 group("tests") {
32   testonly = true
33   deps = [
34     ":mojo_perftests",
35     ":mojo_unittests",
36     "//mojo/public/tools:mojo_python_unittests",
37     "//third_party/ipcz/src:ipcz_tests",
38   ]
39
40   if (!is_ios) {
41     deps += [
42       "//ipc:ipc_tests",
43       "//services/service_manager/tests",
44     ]
45   }
46 }
47
48 test("mojo_unittests") {
49   deps = [
50     "//mojo/core:test_sources",
51     "//mojo/core/test:run_all_unittests",
52     "//mojo/public/cpp/base:tests",
53     "//mojo/public/cpp/bindings/tests",
54     "//mojo/public/cpp/platform/tests",
55     "//mojo/public/cpp/system/tests",
56     "//mojo/public/js/ts/bindings/tests",
57   ]
58 }
59
60 test("mojo_perftests") {
61   sources = [ "//mojo/core/handle_table_perftest.cc" ]
62   deps = [
63     "//mojo/core/test:run_all_perftests",
64     "//mojo/core/test:test_support",
65     "//mojo/public/c/system/tests:perftests",
66     "//mojo/public/cpp/bindings/tests:perftests",
67     "//testing/perf",
68   ]
69
70   if (!is_ios) {
71     sources += [ "//mojo/core/message_pipe_perftest.cc" ]
72
73     deps += [
74       "//base",
75       "//base/test:test_support",
76       "//mojo/core:embedder_internal",
77       "//mojo/core/embedder",
78       "//testing/gtest",
79     ]
80   }
81 }