blob: 60858d2272186975fd353f44e4fe824d53a853d4 [file] [log] [blame]
John Abd-El-Malek99a563e2014-10-29 16:30:52 -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
5group("services") {
James Robinson25dfab22015-08-24 15:20:18 -07006 testonly = true
7
John Abd-El-Malek99a563e2014-10-29 16:30:52 -07008 deps = [
James Robinson25dfab22015-08-24 15:20:18 -07009 ":tests",
Adam Barthbe44db12015-06-22 20:24:19 -070010 "//services/asset_bundle",
Colin Blundellcde1f382015-06-08 14:13:54 +020011 "//services/authenticating_url_loader_interceptor",
Benjamin Lerman749ded82015-06-04 12:51:13 +020012 "//services/authentication",
James Robinson28099f72014-12-02 10:54:46 -080013 "//services/clipboard",
Zachary Andersoncc439052015-02-23 14:06:24 -080014 "//services/dart",
Viet-Trung Luufe494832015-12-17 13:27:27 -080015 "//services/debugger",
Adam Barth3d359102015-01-08 11:25:50 -080016 "//services/gles2:lib",
John Abd-El-Malek99a563e2014-10-29 16:30:52 -070017 "//services/http_server",
Adam Barth3d359102015-01-08 11:25:50 -080018 "//services/icu_data",
Vardhan Mudunurubb364982015-12-18 11:09:03 -080019 "//services/log",
Viet-Trung Luuc8e6b802015-10-01 14:58:35 -070020 "//services/native_support",
Ria Runjie Jiangdc1f1532015-06-04 15:24:38 -070021 "//services/prediction",
James Robinson63b637a2014-12-03 14:46:39 -080022 "//services/test_service:bindings",
James Robinson85ccf052014-12-01 16:31:03 -080023 "//services/tracing",
John Abd-El-Malek99a563e2014-10-29 16:30:52 -070024 ]
Zachary Andersond409c402015-01-20 09:44:29 -080025
Craig Stout3f18d242016-04-27 13:25:05 -070026 # TODO: fix ffmpeg build
27 if (!is_fnl) {
28 deps += [ "//services/media" ]
29 }
30
Etienne Membrivesf2b541c2015-02-20 12:39:43 +010031 if (is_android) {
Alhaad Gokhale08a35432015-03-10 12:41:33 -070032 deps += [
Gautham Thambidoraia6ccbb42015-10-07 13:43:28 -070033 "//services/camera",
Benjamin Lermane726ea32015-11-16 15:46:58 +010034 "//services/camera:camera_roll",
Benjamin Lermand475d572015-10-01 15:56:10 +020035 "//services/contacts",
Benjamin Lerman13402aa2015-11-23 11:15:53 +010036 "//services/java_handler",
Alhaad Gokhale08a35432015-03-10 12:41:33 -070037 "//services/location",
Andrew Wilsond4335732015-06-16 12:36:22 -070038 "//services/notifications",
Dave Mooreb1efb142015-04-21 09:56:05 -070039 "//services/sensors",
Alhaad Gokhale01c387c2015-08-19 17:14:22 -070040 "//services/sharing:android_sharing",
Benjamin Lerman13402aa2015-11-23 11:15:53 +010041 "//services/speech_recognizer",
Alhaad Gokhale08a35432015-03-10 12:41:33 -070042 ]
Gautham Thambidorai658bb422015-08-19 12:40:00 -070043 if (defined(go_build_tool) && go_build_tool != "") {
44 deps += [ "//services/vanadium/security:principal_service" ]
45 }
Etienne Membrivesf2b541c2015-02-20 12:39:43 +010046 }
47
Kris Giesing2ccd4932015-11-20 10:07:46 -080048 if (is_linux) {
49 deps += [ "//services/keyboard" ]
50 }
51
Craig Stout0e7c2c32015-09-17 15:14:08 -070052 if (is_linux && !is_fnl) {
Colin Blundell3a9bcfc2015-03-04 16:04:48 +010053 deps += [ "//services/python" ]
Etienne Membrivesf251ca22015-02-06 12:48:56 +010054 }
James Robinsonfa50ab62015-05-07 15:35:46 -070055
James Robinson04362ac2015-09-18 18:24:02 -070056 if (is_android || is_linux) {
57 deps += [
58 "//services/device_info",
59 "//services/files",
Jeff Brown751f4d32016-01-26 15:51:01 -080060 "//services/gfx",
James Robinson04362ac2015-09-18 18:24:02 -070061 "//services/native_viewport",
Jeff Brownc837be72016-01-26 15:48:40 -080062 "//services/ui",
James Robinson04362ac2015-09-18 18:24:02 -070063 "//services/url_response_disk_cache",
James Robinson04362ac2015-09-18 18:24:02 -070064 ]
65 }
66
James Robinson25dfab22015-08-24 15:20:18 -070067 # TODO(jamesr): We only support building V8 snapshot data on a linux host
68 # since it needs a 32 bit toolchain and we don't have one configured for mac
69 # hosts.
craig stout34776a72015-10-22 08:17:33 -070070 # TODO(cstout): javascript/v8 build support for fnl/musl
71 if (!is_fnl && host_os == "linux") {
James Robinson25dfab22015-08-24 15:20:18 -070072 deps += [ "//services/js" ]
73 }
74}
75
76group("tests") {
77 testonly = true
78
79 deps = [
80 "//services/asset_bundle:apptests",
81 "//services/authenticating_url_loader_interceptor:apptests",
82 "//services/clipboard:apptests",
Jeff Brown751f4d32016-01-26 15:51:01 -080083 "//services/gfx/compositor:apptests",
James Robinson25dfab22015-08-24 15:20:18 -070084 "//services/http_server:apptests",
Dale Sather51a39522016-05-04 11:31:09 -070085 "//services/media/common:apptests",
Viet-Trung Luuc8e6b802015-10-01 14:58:35 -070086 "//services/native_support:apptests",
James Robinson25dfab22015-08-24 15:20:18 -070087 "//services/prediction:apptests",
Michael Jurkadec90132016-05-18 15:15:14 -070088 "//services/ui/view_manager:view_manager_apptests",
Dale Satherbf706cd2016-05-31 15:20:57 -070089 "//services/util/cpp:apptests",
James Robinson25dfab22015-08-24 15:20:18 -070090 ]
91
Craig Stout3f18d242016-04-27 13:25:05 -070092 # TODO: fix ffmpeg build
93 if (!is_fnl) {
94 deps += [ "//services/media/framework:apptests" ]
95 }
96
ukode1195c662016-03-18 14:18:48 -070097 if (!is_android) {
98 deps += [ "//services/authentication:apptests" ]
99 }
100
Craig Stout0e7c2c32015-09-17 15:14:08 -0700101 if (is_linux && !is_fnl) {
James Robinson25dfab22015-08-24 15:20:18 -0700102 deps += [ "//services/python:python_apptests" ]
103 }
104
105 if (is_android) {
Benjamin Lermand475d572015-10-01 15:56:10 +0200106 deps += [ "//services/contacts:apptests" ]
James Robinson25dfab22015-08-24 15:20:18 -0700107 deps += [ "//services/notifications:apptests" ]
108 }
109
James Robinsonfa50ab62015-05-07 15:35:46 -0700110 # TODO(jamesr): We only support building V8 snapshot data on a linux host since it
111 # needs a 32 bit toolchain and we don't have one configured for mac hosts.
craig stout34776a72015-10-22 08:17:33 -0700112 # TODO(cstout): javascript/v8 build support for fnl/musl
113 if (!is_fnl && host_os == "linux") {
James Robinson1572dd52015-09-28 14:17:16 -0700114 deps += [ "//services/js:tests" ]
James Robinsonfa50ab62015-05-07 15:35:46 -0700115 }
James Robinson04362ac2015-09-18 18:24:02 -0700116
117 if (is_android || is_linux) {
118 deps += [
119 "//services/files:apptests",
Vardhan Mudunurubb364982015-12-18 11:09:03 -0800120 "//services/log:apptests",
James Robinson04362ac2015-09-18 18:24:02 -0700121 "//services/url_response_disk_cache:tests",
James Robinson04362ac2015-09-18 18:24:02 -0700122 ]
123 }
John Abd-El-Malek99a563e2014-10-29 16:30:52 -0700124}