blob: ffde2b7cd82ea88c7b07f0e9425f5298a8be4acb [file] [log] [blame]
James Robinson3be077c2014-10-24 14:56:46 -07001# Copyright 2014 The Chromium Authors. 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
James Robinson25dfab22015-08-24 15:20:18 -07005import("//build/config/ui.gni")
6
Nick Braye5ac3422014-12-16 13:27:24 -08007# This target will be built if no target is specified when invoking ninja.
8group("default") {
James Robinson0c81e9b2014-10-03 15:32:44 -07009 testonly = true
10
11 deps = [
Viet-Trung Luu36627ff2015-05-11 12:36:47 -070012 "//apps",
Sean Klein7a690c52015-11-17 14:34:22 -080013 "//base:base_unittests",
James Robinson25dfab22015-08-24 15:20:18 -070014 "//benchmarks",
Przemyslaw Pietrzkiewicz7c451082015-03-05 15:47:08 +010015 "//crypto:crypto_unittests",
James Robinsonce8c9dc2014-11-10 11:07:05 -080016 "//examples",
Scott Violet32458ab2014-10-21 16:24:04 -070017 "//mojo",
Alexandre Zanifca71ca2015-04-01 07:57:24 -070018 "//mojom",
James Robinsonce8c9dc2014-11-10 11:07:05 -080019 "//services",
James Robinsonb4b7af22014-12-05 11:21:01 -080020 "//shell",
James Robinson0c81e9b2014-10-03 15:32:44 -070021 ]
Scott Graham35820832014-11-04 11:04:01 -080022
George Kulakowski4446eb02016-01-11 16:13:57 -080023 if (is_linux) {
Viet-Trung Luuab521422016-01-29 10:11:22 -080024 deps += [
George Kulakowski40c700d2016-02-19 15:12:12 -080025 "//apps(//build/toolchain/fusl:fusl_${current_cpu})",
26 "//examples(//build/toolchain/fusl:fusl_${current_cpu})",
Viet-Trung Luuab521422016-01-29 10:11:22 -080027 "//fusl",
George Kulakowski40c700d2016-02-19 15:12:12 -080028 "//services(//build/toolchain/fusl:fusl_${current_cpu})",
Viet-Trung Luuab521422016-01-29 10:11:22 -080029
30 # We need this to run tests (especially on bots).
31 "//third_party/mesa:osmesa",
32 ]
George Kulakowski4446eb02016-01-11 16:13:57 -080033 }
34
craig stout34776a72015-10-22 08:17:33 -070035 # TODO(cstout): fix sandbox build for fnl/musl
36 if (is_linux && !is_fnl) {
James Robinsonc4ebd592015-09-09 10:57:33 -070037 deps += [
38 "//sandbox/linux:sandbox",
39 "//sandbox/linux:sandbox_linux_unittests",
James Robinsonc4ebd592015-09-09 10:57:33 -070040 ]
craig stout34776a72015-10-22 08:17:33 -070041 }
42 if (is_linux && !use_ozone) {
43 deps += [ "//tools/xdisplaycheck" ]
Julien Tinnesa4b8e8e2015-08-21 16:53:22 -070044 }
James Robinson25dfab22015-08-24 15:20:18 -070045
James Robinson04362ac2015-09-18 18:24:02 -070046 if (is_linux || is_android) {
47 deps += [
48 "//ui/events:events_unittests",
49 "//ui/gfx:gfx_unittests",
50 ]
51 }
52
James Robinson25dfab22015-08-24 15:20:18 -070053 if (use_ozone) {
George Kulakowski4446eb02016-01-11 16:13:57 -080054 deps += [ "//ui/ozone" ]
James Robinson25dfab22015-08-24 15:20:18 -070055 }
James Robinson0c81e9b2014-10-03 15:32:44 -070056}
Nick Braye5ac3422014-12-16 13:27:24 -080057
58# Deprecated name for the default build target.
59group("root") {
60 testonly = true
61 deps = [
62 ":default",
63 ]
64}
James Robinson2b163282015-12-11 11:07:23 -080065
66if (use_ozone) {
67 # This isn't in the default target as it's a bit wonky right now.
68 group("ozone_tests") {
69 testonly = true
70 deps = [
James Robinson2b163282015-12-11 11:07:23 -080071 "//ui/ozone:ozone_unittests",
George Kulakowski4446eb02016-01-11 16:13:57 -080072 "//ui/ozone/demo",
James Robinson2b163282015-12-11 11:07:23 -080073 ]
74 }
75}