xref: /aosp_15_r20/external/libchrome/Android.bp (revision 635a864187cb8b6c713ff48b7e790a6b21769273)
1*635a8641SAndroid Build Coastguard Worker// Copyright (C) 2015 The Android Open Source Project
2*635a8641SAndroid Build Coastguard Worker//
3*635a8641SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*635a8641SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*635a8641SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*635a8641SAndroid Build Coastguard Worker//
7*635a8641SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*635a8641SAndroid Build Coastguard Worker//
9*635a8641SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*635a8641SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*635a8641SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*635a8641SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*635a8641SAndroid Build Coastguard Worker// limitations under the License.
14*635a8641SAndroid Build Coastguard Worker
15*635a8641SAndroid Build Coastguard Worker// Common defaults
16*635a8641SAndroid Build Coastguard Worker// ========================================================
17*635a8641SAndroid Build Coastguard Worker
18*635a8641SAndroid Build Coastguard Worker// Using Chrome header files directly could cause -Wunused-parameter errors,
19*635a8641SAndroid Build Coastguard Worker// and this is workaround. Please find the document in include_generator.py
20*635a8641SAndroid Build Coastguard Worker// for details.
21*635a8641SAndroid Build Coastguard Worker// Note: gensrcs does not support exclude_srcs, so filegroup rule is
22*635a8641SAndroid Build Coastguard Worker// introduced.
23*635a8641SAndroid Build Coastguard Workerpackage {
24*635a8641SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_libchrome_license"],
25*635a8641SAndroid Build Coastguard Worker}
26*635a8641SAndroid Build Coastguard Worker
27*635a8641SAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of
28*635a8641SAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect
29*635a8641SAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct.
30*635a8641SAndroid Build Coastguard Worker//
31*635a8641SAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory.
32*635a8641SAndroid Build Coastguard Worker//
33*635a8641SAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses,
34*635a8641SAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the
35*635a8641SAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed.
36*635a8641SAndroid Build Coastguard Worker//
37*635a8641SAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private"
38*635a8641SAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be
39*635a8641SAndroid Build Coastguard Worker// used in the current project.
40*635a8641SAndroid Build Coastguard Worker// See: http://go/android-license-faq
41*635a8641SAndroid Build Coastguard Workerlicense {
42*635a8641SAndroid Build Coastguard Worker    name: "external_libchrome_license",
43*635a8641SAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
44*635a8641SAndroid Build Coastguard Worker    license_kinds: [
45*635a8641SAndroid Build Coastguard Worker        "SPDX-license-identifier-Apache-2.0",
46*635a8641SAndroid Build Coastguard Worker        "SPDX-license-identifier-BSD",
47*635a8641SAndroid Build Coastguard Worker        "SPDX-license-identifier-GPL-2.0",
48*635a8641SAndroid Build Coastguard Worker        "SPDX-license-identifier-LGPL-2.1",
49*635a8641SAndroid Build Coastguard Worker        "SPDX-license-identifier-MIT",
50*635a8641SAndroid Build Coastguard Worker        "SPDX-license-identifier-MPL",
51*635a8641SAndroid Build Coastguard Worker        "SPDX-license-identifier-Unicode-DFS",
52*635a8641SAndroid Build Coastguard Worker        "legacy_unencumbered",
53*635a8641SAndroid Build Coastguard Worker    ],
54*635a8641SAndroid Build Coastguard Worker    license_text: [
55*635a8641SAndroid Build Coastguard Worker        "NOTICE",
56*635a8641SAndroid Build Coastguard Worker    ],
57*635a8641SAndroid Build Coastguard Worker}
58*635a8641SAndroid Build Coastguard Worker
59*635a8641SAndroid Build Coastguard Workerfilegroup {
60*635a8641SAndroid Build Coastguard Worker    name: "libchrome-include-sources",
61*635a8641SAndroid Build Coastguard Worker    srcs: [
62*635a8641SAndroid Build Coastguard Worker        "base/allocator/allocator_extension.h",
63*635a8641SAndroid Build Coastguard Worker        "base/allocator/allocator_shim.h",
64*635a8641SAndroid Build Coastguard Worker        "base/allocator/allocator_shim_internals.h",
65*635a8641SAndroid Build Coastguard Worker        "base/allocator/allocator_shim_override_cpp_symbols.h",
66*635a8641SAndroid Build Coastguard Worker        "base/allocator/allocator_shim_override_libc_symbols.h",
67*635a8641SAndroid Build Coastguard Worker        "base/allocator/allocator_shim_override_linker_wrapped_symbols.h",
68*635a8641SAndroid Build Coastguard Worker        "base/allocator/buildflags.h",
69*635a8641SAndroid Build Coastguard Worker        "base/android/android_hardware_buffer_compat.h",
70*635a8641SAndroid Build Coastguard Worker        "base/android/build_info.h",
71*635a8641SAndroid Build Coastguard Worker        "base/android/content_uri_utils.h",
72*635a8641SAndroid Build Coastguard Worker        "base/android/java_exception_reporter.h",
73*635a8641SAndroid Build Coastguard Worker        "base/android/jni_android.h",
74*635a8641SAndroid Build Coastguard Worker        "base/android/jni_array.h",
75*635a8641SAndroid Build Coastguard Worker        "base/android/jni_string.h",
76*635a8641SAndroid Build Coastguard Worker        "base/android/path_utils.h",
77*635a8641SAndroid Build Coastguard Worker        "base/android/scoped_hardware_buffer_handle.h",
78*635a8641SAndroid Build Coastguard Worker        "base/android/scoped_java_ref.h",
79*635a8641SAndroid Build Coastguard Worker        "base/android/sys_utils.h",
80*635a8641SAndroid Build Coastguard Worker        "base/at_exit.h",
81*635a8641SAndroid Build Coastguard Worker        "base/atomic_ref_count.h",
82*635a8641SAndroid Build Coastguard Worker        "base/atomic_sequence_num.h",
83*635a8641SAndroid Build Coastguard Worker        "base/atomicops.h",
84*635a8641SAndroid Build Coastguard Worker        "base/atomicops_internals_atomicword_compat.h",
85*635a8641SAndroid Build Coastguard Worker        "base/atomicops_internals_portable.h",
86*635a8641SAndroid Build Coastguard Worker        "base/atomicops_internals_x86_msvc.h",
87*635a8641SAndroid Build Coastguard Worker        "base/auto_reset.h",
88*635a8641SAndroid Build Coastguard Worker        "base/barrier_closure.h",
89*635a8641SAndroid Build Coastguard Worker        "base/base64.h",
90*635a8641SAndroid Build Coastguard Worker        "base/base64url.h",
91*635a8641SAndroid Build Coastguard Worker        "base/base_export.h",
92*635a8641SAndroid Build Coastguard Worker        "base/base_paths.h",
93*635a8641SAndroid Build Coastguard Worker        "base/base_paths_android.h",
94*635a8641SAndroid Build Coastguard Worker        "base/base_paths_posix.h",
95*635a8641SAndroid Build Coastguard Worker        "base/base_switches.h",
96*635a8641SAndroid Build Coastguard Worker        "base/big_endian.h",
97*635a8641SAndroid Build Coastguard Worker        "base/bind.h",
98*635a8641SAndroid Build Coastguard Worker        "base/bind_helpers.h",
99*635a8641SAndroid Build Coastguard Worker        "base/bind_internal.h",
100*635a8641SAndroid Build Coastguard Worker        "base/bit_cast.h",
101*635a8641SAndroid Build Coastguard Worker        "base/bits.h",
102*635a8641SAndroid Build Coastguard Worker        "base/build_time.h",
103*635a8641SAndroid Build Coastguard Worker        "base/callback.h",
104*635a8641SAndroid Build Coastguard Worker        "base/callback_forward.h",
105*635a8641SAndroid Build Coastguard Worker        "base/callback_helpers.h",
106*635a8641SAndroid Build Coastguard Worker        "base/callback_internal.h",
107*635a8641SAndroid Build Coastguard Worker        "base/callback_list.h",
108*635a8641SAndroid Build Coastguard Worker        "base/cancelable_callback.h",
109*635a8641SAndroid Build Coastguard Worker        "base/cfi_buildflags.h",
110*635a8641SAndroid Build Coastguard Worker        "base/command_line.h",
111*635a8641SAndroid Build Coastguard Worker        "base/compiler_specific.h",
112*635a8641SAndroid Build Coastguard Worker        "base/component_export.h",
113*635a8641SAndroid Build Coastguard Worker        "base/containers/adapters.h",
114*635a8641SAndroid Build Coastguard Worker        "base/containers/circular_deque.h",
115*635a8641SAndroid Build Coastguard Worker        "base/containers/flat_map.h",
116*635a8641SAndroid Build Coastguard Worker        "base/containers/flat_set.h",
117*635a8641SAndroid Build Coastguard Worker        "base/containers/flat_tree.h",
118*635a8641SAndroid Build Coastguard Worker        "base/containers/hash_tables.h",
119*635a8641SAndroid Build Coastguard Worker        "base/containers/linked_list.h",
120*635a8641SAndroid Build Coastguard Worker        "base/containers/mru_cache.h",
121*635a8641SAndroid Build Coastguard Worker        "base/containers/queue.h",
122*635a8641SAndroid Build Coastguard Worker        "base/containers/ring_buffer.h",
123*635a8641SAndroid Build Coastguard Worker        "base/containers/small_map.h",
124*635a8641SAndroid Build Coastguard Worker        "base/containers/span.h",
125*635a8641SAndroid Build Coastguard Worker        "base/containers/stack.h",
126*635a8641SAndroid Build Coastguard Worker        "base/containers/stack_container.h",
127*635a8641SAndroid Build Coastguard Worker        "base/containers/vector_buffer.h",
128*635a8641SAndroid Build Coastguard Worker        "base/cpu.h",
129*635a8641SAndroid Build Coastguard Worker        "base/critical_closure.h",
130*635a8641SAndroid Build Coastguard Worker        "base/debug/activity_tracker.h",
131*635a8641SAndroid Build Coastguard Worker        "base/debug/alias.h",
132*635a8641SAndroid Build Coastguard Worker        "base/debug/crash_logging.h",
133*635a8641SAndroid Build Coastguard Worker        "base/debug/debugger.h",
134*635a8641SAndroid Build Coastguard Worker        "base/debug/debugging_buildflags.h",
135*635a8641SAndroid Build Coastguard Worker        "base/debug/dump_without_crashing.h",
136*635a8641SAndroid Build Coastguard Worker        "base/debug/elf_reader_linux.h",
137*635a8641SAndroid Build Coastguard Worker        "base/debug/leak_annotations.h",
138*635a8641SAndroid Build Coastguard Worker        "base/debug/leak_tracker.h",
139*635a8641SAndroid Build Coastguard Worker        "base/debug/proc_maps_linux.h",
140*635a8641SAndroid Build Coastguard Worker        "base/debug/profiler.h",
141*635a8641SAndroid Build Coastguard Worker        "base/debug/stack_trace.h",
142*635a8641SAndroid Build Coastguard Worker        "base/debug/task_annotator.h",
143*635a8641SAndroid Build Coastguard Worker        "base/debug/thread_heap_usage_tracker.h",
144*635a8641SAndroid Build Coastguard Worker        "base/environment.h",
145*635a8641SAndroid Build Coastguard Worker        "base/export_template.h",
146*635a8641SAndroid Build Coastguard Worker        "base/feature_list.h",
147*635a8641SAndroid Build Coastguard Worker        "base/file_descriptor_posix.h",
148*635a8641SAndroid Build Coastguard Worker        "base/file_version_info.h",
149*635a8641SAndroid Build Coastguard Worker        "base/files/dir_reader_fallback.h",
150*635a8641SAndroid Build Coastguard Worker        "base/files/dir_reader_linux.h",
151*635a8641SAndroid Build Coastguard Worker        "base/files/dir_reader_posix.h",
152*635a8641SAndroid Build Coastguard Worker        "base/files/file.h",
153*635a8641SAndroid Build Coastguard Worker        "base/files/file_descriptor_watcher_posix.h",
154*635a8641SAndroid Build Coastguard Worker        "base/files/file_enumerator.h",
155*635a8641SAndroid Build Coastguard Worker        "base/files/file_path.h",
156*635a8641SAndroid Build Coastguard Worker        "base/files/file_path_watcher.h",
157*635a8641SAndroid Build Coastguard Worker        "base/files/file_tracing.h",
158*635a8641SAndroid Build Coastguard Worker        "base/files/file_util.h",
159*635a8641SAndroid Build Coastguard Worker        "base/files/important_file_writer.h",
160*635a8641SAndroid Build Coastguard Worker        "base/files/memory_mapped_file.h",
161*635a8641SAndroid Build Coastguard Worker        "base/files/platform_file.h",
162*635a8641SAndroid Build Coastguard Worker        "base/files/scoped_file.h",
163*635a8641SAndroid Build Coastguard Worker        "base/files/scoped_temp_dir.h",
164*635a8641SAndroid Build Coastguard Worker        "base/format_macros.h",
165*635a8641SAndroid Build Coastguard Worker        "base/functional/bind.h",
166*635a8641SAndroid Build Coastguard Worker        "base/functional/callback.h",
167*635a8641SAndroid Build Coastguard Worker        "base/functional/callback_forward.h",
168*635a8641SAndroid Build Coastguard Worker        "base/functional/callback_helpers.h",
169*635a8641SAndroid Build Coastguard Worker        "base/gtest_prod_util.h",
170*635a8641SAndroid Build Coastguard Worker        "base/guid.h",
171*635a8641SAndroid Build Coastguard Worker        "base/hash.h",
172*635a8641SAndroid Build Coastguard Worker        "base/i18n/base_i18n_export.h",
173*635a8641SAndroid Build Coastguard Worker        "base/i18n/rtl.h",
174*635a8641SAndroid Build Coastguard Worker        "base/json/json_file_value_serializer.h",
175*635a8641SAndroid Build Coastguard Worker        "base/json/json_parser.h",
176*635a8641SAndroid Build Coastguard Worker        "base/json/json_reader.h",
177*635a8641SAndroid Build Coastguard Worker        "base/json/json_string_value_serializer.h",
178*635a8641SAndroid Build Coastguard Worker        "base/json/json_value_converter.h",
179*635a8641SAndroid Build Coastguard Worker        "base/json/json_writer.h",
180*635a8641SAndroid Build Coastguard Worker        "base/json/string_escape.h",
181*635a8641SAndroid Build Coastguard Worker        "base/lazy_instance.h",
182*635a8641SAndroid Build Coastguard Worker        "base/lazy_instance_helpers.h",
183*635a8641SAndroid Build Coastguard Worker        "base/location.h",
184*635a8641SAndroid Build Coastguard Worker        "base/logging.h",
185*635a8641SAndroid Build Coastguard Worker        "base/macros.h",
186*635a8641SAndroid Build Coastguard Worker        "base/md5.h",
187*635a8641SAndroid Build Coastguard Worker        "base/memory/aligned_memory.h",
188*635a8641SAndroid Build Coastguard Worker        "base/memory/free_deleter.h",
189*635a8641SAndroid Build Coastguard Worker        "base/memory/linked_ptr.h",
190*635a8641SAndroid Build Coastguard Worker        "base/memory/platform_shared_memory_region.h",
191*635a8641SAndroid Build Coastguard Worker        "base/memory/protected_memory.h",
192*635a8641SAndroid Build Coastguard Worker        "base/memory/protected_memory_buildflags.h",
193*635a8641SAndroid Build Coastguard Worker        "base/memory/protected_memory_cfi.h",
194*635a8641SAndroid Build Coastguard Worker        "base/memory/ptr_util.h",
195*635a8641SAndroid Build Coastguard Worker        "base/memory/raw_scoped_refptr_mismatch_checker.h",
196*635a8641SAndroid Build Coastguard Worker        "base/memory/read_only_shared_memory_region.h",
197*635a8641SAndroid Build Coastguard Worker        "base/memory/ref_counted.h",
198*635a8641SAndroid Build Coastguard Worker        "base/memory/ref_counted_delete_on_sequence.h",
199*635a8641SAndroid Build Coastguard Worker        "base/memory/ref_counted_memory.h",
200*635a8641SAndroid Build Coastguard Worker        "base/memory/scoped_policy.h",
201*635a8641SAndroid Build Coastguard Worker        "base/memory/scoped_refptr.h",
202*635a8641SAndroid Build Coastguard Worker        "base/memory/shared_memory.h",
203*635a8641SAndroid Build Coastguard Worker        "base/memory/shared_memory_handle.h",
204*635a8641SAndroid Build Coastguard Worker        "base/memory/shared_memory_helper.h",
205*635a8641SAndroid Build Coastguard Worker        "base/memory/shared_memory_mapping.h",
206*635a8641SAndroid Build Coastguard Worker        "base/memory/singleton.h",
207*635a8641SAndroid Build Coastguard Worker        "base/memory/unsafe_shared_memory_region.h",
208*635a8641SAndroid Build Coastguard Worker        "base/memory/weak_ptr.h",
209*635a8641SAndroid Build Coastguard Worker        "base/memory/writable_shared_memory_region.h",
210*635a8641SAndroid Build Coastguard Worker        "base/message_loop/incoming_task_queue.h",
211*635a8641SAndroid Build Coastguard Worker        "base/message_loop/message_loop.h",
212*635a8641SAndroid Build Coastguard Worker        "base/message_loop/message_loop_current.h",
213*635a8641SAndroid Build Coastguard Worker        "base/message_loop/message_loop_task_runner.h",
214*635a8641SAndroid Build Coastguard Worker        "base/message_loop/message_pump.h",
215*635a8641SAndroid Build Coastguard Worker        "base/message_loop/message_pump_default.h",
216*635a8641SAndroid Build Coastguard Worker        "base/message_loop/message_pump_for_io.h",
217*635a8641SAndroid Build Coastguard Worker        "base/message_loop/message_pump_for_ui.h",
218*635a8641SAndroid Build Coastguard Worker        "base/message_loop/message_pump_glib.h",
219*635a8641SAndroid Build Coastguard Worker        "base/message_loop/message_pump_libevent.h",
220*635a8641SAndroid Build Coastguard Worker        "base/message_loop/timer_slack.h",
221*635a8641SAndroid Build Coastguard Worker        "base/message_loop/watchable_io_message_pump_posix.h",
222*635a8641SAndroid Build Coastguard Worker        "base/metrics/bucket_ranges.h",
223*635a8641SAndroid Build Coastguard Worker        "base/metrics/dummy_histogram.h",
224*635a8641SAndroid Build Coastguard Worker        "base/metrics/field_trial.h",
225*635a8641SAndroid Build Coastguard Worker        "base/metrics/field_trial_param_associator.h",
226*635a8641SAndroid Build Coastguard Worker        "base/metrics/field_trial_params.h",
227*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram.h",
228*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_base.h",
229*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_delta_serialization.h",
230*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_flattener.h",
231*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_functions.h",
232*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_macros.h",
233*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_macros_internal.h",
234*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_macros_local.h",
235*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_samples.h",
236*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_snapshot_manager.h",
237*635a8641SAndroid Build Coastguard Worker        "base/metrics/metrics_hashes.h",
238*635a8641SAndroid Build Coastguard Worker        "base/metrics/persistent_histogram_allocator.h",
239*635a8641SAndroid Build Coastguard Worker        "base/metrics/persistent_histogram_storage.h",
240*635a8641SAndroid Build Coastguard Worker        "base/metrics/persistent_memory_allocator.h",
241*635a8641SAndroid Build Coastguard Worker        "base/metrics/persistent_sample_map.h",
242*635a8641SAndroid Build Coastguard Worker        "base/metrics/record_histogram_checker.h",
243*635a8641SAndroid Build Coastguard Worker        "base/metrics/sample_map.h",
244*635a8641SAndroid Build Coastguard Worker        "base/metrics/sample_vector.h",
245*635a8641SAndroid Build Coastguard Worker        "base/metrics/single_sample_metrics.h",
246*635a8641SAndroid Build Coastguard Worker        "base/metrics/sparse_histogram.h",
247*635a8641SAndroid Build Coastguard Worker        "base/metrics/statistics_recorder.h",
248*635a8641SAndroid Build Coastguard Worker        "base/metrics/user_metrics.h",
249*635a8641SAndroid Build Coastguard Worker        "base/metrics/user_metrics_action.h",
250*635a8641SAndroid Build Coastguard Worker        "base/native_library.h",
251*635a8641SAndroid Build Coastguard Worker        "base/no_destructor.h",
252*635a8641SAndroid Build Coastguard Worker        "base/numerics/checked_math.h",
253*635a8641SAndroid Build Coastguard Worker        "base/numerics/checked_math_impl.h",
254*635a8641SAndroid Build Coastguard Worker        "base/numerics/clamped_math.h",
255*635a8641SAndroid Build Coastguard Worker        "base/numerics/clamped_math_impl.h",
256*635a8641SAndroid Build Coastguard Worker        "base/numerics/math_constants.h",
257*635a8641SAndroid Build Coastguard Worker        "base/numerics/ranges.h",
258*635a8641SAndroid Build Coastguard Worker        "base/numerics/safe_conversions.h",
259*635a8641SAndroid Build Coastguard Worker        "base/numerics/safe_conversions_arm_impl.h",
260*635a8641SAndroid Build Coastguard Worker        "base/numerics/safe_conversions_impl.h",
261*635a8641SAndroid Build Coastguard Worker        "base/numerics/safe_math.h",
262*635a8641SAndroid Build Coastguard Worker        "base/numerics/safe_math_arm_impl.h",
263*635a8641SAndroid Build Coastguard Worker        "base/numerics/safe_math_clang_gcc_impl.h",
264*635a8641SAndroid Build Coastguard Worker        "base/numerics/safe_math_shared_impl.h",
265*635a8641SAndroid Build Coastguard Worker        "base/observer_list.h",
266*635a8641SAndroid Build Coastguard Worker        "base/observer_list_threadsafe.h",
267*635a8641SAndroid Build Coastguard Worker        "base/optional.h",
268*635a8641SAndroid Build Coastguard Worker        "base/os_compat_android.h",
269*635a8641SAndroid Build Coastguard Worker        "base/path_service.h",
270*635a8641SAndroid Build Coastguard Worker        "base/pending_task.h",
271*635a8641SAndroid Build Coastguard Worker        "base/pickle.h",
272*635a8641SAndroid Build Coastguard Worker        "base/posix/eintr_wrapper.h",
273*635a8641SAndroid Build Coastguard Worker        "base/posix/file_descriptor_shuffle.h",
274*635a8641SAndroid Build Coastguard Worker        "base/posix/global_descriptors.h",
275*635a8641SAndroid Build Coastguard Worker        "base/posix/safe_strerror.h",
276*635a8641SAndroid Build Coastguard Worker        "base/posix/unix_domain_socket.h",
277*635a8641SAndroid Build Coastguard Worker        "base/post_task_and_reply_with_result_internal.h",
278*635a8641SAndroid Build Coastguard Worker        "base/power_monitor/power_monitor.h",
279*635a8641SAndroid Build Coastguard Worker        "base/power_monitor/power_monitor_device_source.h",
280*635a8641SAndroid Build Coastguard Worker        "base/power_monitor/power_monitor_source.h",
281*635a8641SAndroid Build Coastguard Worker        "base/power_monitor/power_observer.h",
282*635a8641SAndroid Build Coastguard Worker        "base/process/internal_aix.h",
283*635a8641SAndroid Build Coastguard Worker        "base/process/internal_linux.h",
284*635a8641SAndroid Build Coastguard Worker        "base/process/kill.h",
285*635a8641SAndroid Build Coastguard Worker        "base/process/launch.h",
286*635a8641SAndroid Build Coastguard Worker        "base/process/memory.h",
287*635a8641SAndroid Build Coastguard Worker        "base/process/process.h",
288*635a8641SAndroid Build Coastguard Worker        "base/process/process_handle.h",
289*635a8641SAndroid Build Coastguard Worker        "base/process/process_info.h",
290*635a8641SAndroid Build Coastguard Worker        "base/process/process_iterator.h",
291*635a8641SAndroid Build Coastguard Worker        "base/process/process_metrics.h",
292*635a8641SAndroid Build Coastguard Worker        "base/process/process_metrics_iocounters.h",
293*635a8641SAndroid Build Coastguard Worker        "base/rand_util.h",
294*635a8641SAndroid Build Coastguard Worker        "base/run_loop.h",
295*635a8641SAndroid Build Coastguard Worker        "base/sampling_heap_profiler/lock_free_address_hash_set.h",
296*635a8641SAndroid Build Coastguard Worker        "base/sampling_heap_profiler/sampling_heap_profiler.h",
297*635a8641SAndroid Build Coastguard Worker        "base/scoped_clear_errno.h",
298*635a8641SAndroid Build Coastguard Worker        "base/scoped_generic.h",
299*635a8641SAndroid Build Coastguard Worker        "base/scoped_native_library.h",
300*635a8641SAndroid Build Coastguard Worker        "base/scoped_observer.h",
301*635a8641SAndroid Build Coastguard Worker        "base/sequence_checker.h",
302*635a8641SAndroid Build Coastguard Worker        "base/sequence_checker_impl.h",
303*635a8641SAndroid Build Coastguard Worker        "base/sequence_token.h",
304*635a8641SAndroid Build Coastguard Worker        "base/sequenced_task_runner.h",
305*635a8641SAndroid Build Coastguard Worker        "base/sequenced_task_runner_helpers.h",
306*635a8641SAndroid Build Coastguard Worker        "base/sha1.h",
307*635a8641SAndroid Build Coastguard Worker        "base/single_thread_task_runner.h",
308*635a8641SAndroid Build Coastguard Worker        "base/stl_util.h",
309*635a8641SAndroid Build Coastguard Worker        "base/strings/char_traits.h",
310*635a8641SAndroid Build Coastguard Worker        "base/strings/nullable_string16.h",
311*635a8641SAndroid Build Coastguard Worker        "base/strings/old_utf_string_conversions.h",
312*635a8641SAndroid Build Coastguard Worker        "base/strings/pattern.h",
313*635a8641SAndroid Build Coastguard Worker        "base/strings/safe_sprintf.h",
314*635a8641SAndroid Build Coastguard Worker        "base/strings/strcat.h",
315*635a8641SAndroid Build Coastguard Worker        "base/strings/string16.h",
316*635a8641SAndroid Build Coastguard Worker        "base/strings/string_number_conversions.h",
317*635a8641SAndroid Build Coastguard Worker        "base/strings/string_piece.h",
318*635a8641SAndroid Build Coastguard Worker        "base/strings/string_piece_forward.h",
319*635a8641SAndroid Build Coastguard Worker        "base/strings/string_split.h",
320*635a8641SAndroid Build Coastguard Worker        "base/strings/string_tokenizer.h",
321*635a8641SAndroid Build Coastguard Worker        "base/strings/string_util.h",
322*635a8641SAndroid Build Coastguard Worker        "base/strings/string_util_posix.h",
323*635a8641SAndroid Build Coastguard Worker        "base/strings/stringize_macros.h",
324*635a8641SAndroid Build Coastguard Worker        "base/strings/stringprintf.h",
325*635a8641SAndroid Build Coastguard Worker        "base/strings/sys_string_conversions.h",
326*635a8641SAndroid Build Coastguard Worker        "base/strings/utf_string_conversion_utils.h",
327*635a8641SAndroid Build Coastguard Worker        "base/strings/utf_string_conversions.h",
328*635a8641SAndroid Build Coastguard Worker        "base/sync_socket.h",
329*635a8641SAndroid Build Coastguard Worker        "base/synchronization/atomic_flag.h",
330*635a8641SAndroid Build Coastguard Worker        "base/synchronization/cancellation_flag.h",
331*635a8641SAndroid Build Coastguard Worker        "base/synchronization/condition_variable.h",
332*635a8641SAndroid Build Coastguard Worker        "base/synchronization/lock.h",
333*635a8641SAndroid Build Coastguard Worker        "base/synchronization/lock_impl.h",
334*635a8641SAndroid Build Coastguard Worker        "base/synchronization/spin_wait.h",
335*635a8641SAndroid Build Coastguard Worker        "base/synchronization/synchronization_buildflags.h",
336*635a8641SAndroid Build Coastguard Worker        "base/synchronization/waitable_event.h",
337*635a8641SAndroid Build Coastguard Worker        "base/synchronization/waitable_event_watcher.h",
338*635a8641SAndroid Build Coastguard Worker        "base/sys_byteorder.h",
339*635a8641SAndroid Build Coastguard Worker        "base/sys_info.h",
340*635a8641SAndroid Build Coastguard Worker        "base/sys_info_internal.h",
341*635a8641SAndroid Build Coastguard Worker        "base/task/cancelable_task_tracker.h",
342*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/enqueue_order.h",
343*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/graceful_queue_shutdown_helper.h",
344*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/intrusive_heap.h",
345*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/lazily_deallocated_deque.h",
346*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/lazy_now.h",
347*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/moveable_auto_lock.h",
348*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/real_time_domain.h",
349*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/sequence_manager.h",
350*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/sequence_manager_impl.h",
351*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/sequenced_task_source.h",
352*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/task_queue.h",
353*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/task_queue_impl.h",
354*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/task_queue_selector.h",
355*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/task_queue_selector_logic.h",
356*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/task_time_observer.h",
357*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/test/fake_task.h",
358*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/test/lazy_thread_controller_for_test.h",
359*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/test/mock_time_domain.h",
360*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/test/sequence_manager_for_test.h",
361*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/test/test_task_queue.h",
362*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/test/test_task_time_observer.h",
363*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/thread_controller.h",
364*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/thread_controller_impl.h",
365*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/thread_controller_with_message_pump_impl.h",
366*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/time_domain.h",
367*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/work_queue.h",
368*635a8641SAndroid Build Coastguard Worker        "base/task/sequence_manager/work_queue_sets.h",
369*635a8641SAndroid Build Coastguard Worker        "base/task_runner.h",
370*635a8641SAndroid Build Coastguard Worker        "base/task_runner_util.h",
371*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/can_schedule_sequence_observer.h",
372*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/delayed_task_manager.h",
373*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/environment_config.h",
374*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/lazy_task_runner.h",
375*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/post_task.h",
376*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/priority_queue.h",
377*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scheduler_lock.h",
378*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scheduler_lock_impl.h",
379*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scheduler_single_thread_task_runner_manager.h",
380*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scheduler_worker.h",
381*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scheduler_worker_observer.h",
382*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scheduler_worker_params.h",
383*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scheduler_worker_pool.h",
384*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scheduler_worker_pool_impl.h",
385*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scheduler_worker_pool_params.h",
386*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scheduler_worker_stack.h",
387*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scoped_set_task_priority_for_current_thread.h",
388*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/sequence.h",
389*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/sequence_sort_key.h",
390*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/service_thread.h",
391*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/single_thread_task_runner_thread_mode.h",
392*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/task.h",
393*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/task_scheduler.h",
394*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/task_scheduler_impl.h",
395*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/task_tracker.h",
396*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/task_tracker_posix.h",
397*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/task_traits.h",
398*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/task_traits_details.h",
399*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/test_utils.h",
400*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/tracked_ref.h",
401*635a8641SAndroid Build Coastguard Worker        "base/template_util.h",
402*635a8641SAndroid Build Coastguard Worker        "base/test/bind_test_util.h",
403*635a8641SAndroid Build Coastguard Worker        "base/test/copy_only_int.h",
404*635a8641SAndroid Build Coastguard Worker        "base/test/fontconfig_util_linux.h",
405*635a8641SAndroid Build Coastguard Worker        "base/test/gtest_util.h",
406*635a8641SAndroid Build Coastguard Worker        "base/test/metrics/histogram_enum_reader.h",
407*635a8641SAndroid Build Coastguard Worker        "base/test/metrics/histogram_tester.h",
408*635a8641SAndroid Build Coastguard Worker        "base/test/mock_entropy_provider.h",
409*635a8641SAndroid Build Coastguard Worker        "base/test/move_only_int.h",
410*635a8641SAndroid Build Coastguard Worker        "base/test/multiprocess_test.h",
411*635a8641SAndroid Build Coastguard Worker        "base/test/scoped_environment_variable_override.h",
412*635a8641SAndroid Build Coastguard Worker        "base/test/scoped_feature_list.h",
413*635a8641SAndroid Build Coastguard Worker        "base/test/scoped_locale.h",
414*635a8641SAndroid Build Coastguard Worker        "base/test/scoped_task_environment.h",
415*635a8641SAndroid Build Coastguard Worker        "base/test/simple_test_clock.h",
416*635a8641SAndroid Build Coastguard Worker        "base/test/simple_test_tick_clock.h",
417*635a8641SAndroid Build Coastguard Worker        "base/test/test_file_util.h",
418*635a8641SAndroid Build Coastguard Worker        "base/test/test_io_thread.h",
419*635a8641SAndroid Build Coastguard Worker        "base/test/test_mock_time_task_runner.h",
420*635a8641SAndroid Build Coastguard Worker        "base/test/test_pending_task.h",
421*635a8641SAndroid Build Coastguard Worker        "base/test/test_shared_memory_util.h",
422*635a8641SAndroid Build Coastguard Worker        "base/test/test_simple_task_runner.h",
423*635a8641SAndroid Build Coastguard Worker        "base/test/test_switches.h",
424*635a8641SAndroid Build Coastguard Worker        "base/test/test_timeouts.h",
425*635a8641SAndroid Build Coastguard Worker        "base/third_party/dynamic_annotations/dynamic_annotations.h",
426*635a8641SAndroid Build Coastguard Worker        "base/third_party/icu/icu_utf.h",
427*635a8641SAndroid Build Coastguard Worker        "base/third_party/libevent/event.h",
428*635a8641SAndroid Build Coastguard Worker        "base/third_party/nspr/prtime.h",
429*635a8641SAndroid Build Coastguard Worker        "base/third_party/symbolize/symbolize.h",
430*635a8641SAndroid Build Coastguard Worker        "base/third_party/valgrind/memcheck.h",
431*635a8641SAndroid Build Coastguard Worker        "base/third_party/valgrind/valgrind.h",
432*635a8641SAndroid Build Coastguard Worker        "base/thread_annotations.h",
433*635a8641SAndroid Build Coastguard Worker        "base/threading/platform_thread.h",
434*635a8641SAndroid Build Coastguard Worker        "base/threading/platform_thread_internal_posix.h",
435*635a8641SAndroid Build Coastguard Worker        "base/threading/post_task_and_reply_impl.h",
436*635a8641SAndroid Build Coastguard Worker        "base/threading/scoped_blocking_call.h",
437*635a8641SAndroid Build Coastguard Worker        "base/threading/sequence_local_storage_map.h",
438*635a8641SAndroid Build Coastguard Worker        "base/threading/sequence_local_storage_slot.h",
439*635a8641SAndroid Build Coastguard Worker        "base/threading/sequenced_task_runner_handle.h",
440*635a8641SAndroid Build Coastguard Worker        "base/threading/simple_thread.h",
441*635a8641SAndroid Build Coastguard Worker        "base/threading/thread.h",
442*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_checker.h",
443*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_checker_impl.h",
444*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_collision_warner.h",
445*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_id_name_manager.h",
446*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_local.h",
447*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_local_storage.h",
448*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_restrictions.h",
449*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_task_runner_handle.h",
450*635a8641SAndroid Build Coastguard Worker        "base/time/clock.h",
451*635a8641SAndroid Build Coastguard Worker        "base/time/default_clock.h",
452*635a8641SAndroid Build Coastguard Worker        "base/time/default_tick_clock.h",
453*635a8641SAndroid Build Coastguard Worker        "base/time/tick_clock.h",
454*635a8641SAndroid Build Coastguard Worker        "base/time/time.h",
455*635a8641SAndroid Build Coastguard Worker        "base/time/time_override.h",
456*635a8641SAndroid Build Coastguard Worker        "base/time/time_to_iso8601.h",
457*635a8641SAndroid Build Coastguard Worker        "base/timer/elapsed_timer.h",
458*635a8641SAndroid Build Coastguard Worker        "base/timer/hi_res_timer_manager.h",
459*635a8641SAndroid Build Coastguard Worker        "base/timer/mock_timer.h",
460*635a8641SAndroid Build Coastguard Worker        "base/timer/timer.h",
461*635a8641SAndroid Build Coastguard Worker        "base/token.h",
462*635a8641SAndroid Build Coastguard Worker        "base/trace_event/common/trace_event_common.h",
463*635a8641SAndroid Build Coastguard Worker        "base/trace_event/heap_profiler.h",
464*635a8641SAndroid Build Coastguard Worker        "base/trace_event/trace_event.h",
465*635a8641SAndroid Build Coastguard Worker        "base/tuple.h",
466*635a8641SAndroid Build Coastguard Worker        "base/unguessable_token.h",
467*635a8641SAndroid Build Coastguard Worker        "base/value_iterators.h",
468*635a8641SAndroid Build Coastguard Worker        "base/values.h",
469*635a8641SAndroid Build Coastguard Worker        "base/version.h",
470*635a8641SAndroid Build Coastguard Worker        "base/vlog.h",
471*635a8641SAndroid Build Coastguard Worker        "build/build_config.h",
472*635a8641SAndroid Build Coastguard Worker        "build/buildflag.h",
473*635a8641SAndroid Build Coastguard Worker        "device/bluetooth/bluetooth_advertisement.h",
474*635a8641SAndroid Build Coastguard Worker        "device/bluetooth/bluetooth_common.h",
475*635a8641SAndroid Build Coastguard Worker        "device/bluetooth/bluetooth_export.h",
476*635a8641SAndroid Build Coastguard Worker        "device/bluetooth/bluetooth_uuid.h",
477*635a8641SAndroid Build Coastguard Worker        "device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h",
478*635a8641SAndroid Build Coastguard Worker        "testing/gmock/include/gmock/gmock.h",
479*635a8641SAndroid Build Coastguard Worker        "testing/gtest/include/gtest/gtest.h",
480*635a8641SAndroid Build Coastguard Worker        "testing/gtest/include/gtest/gtest_prod.h",
481*635a8641SAndroid Build Coastguard Worker        "testing/multiprocess_func_list.h",
482*635a8641SAndroid Build Coastguard Worker        "testing/platform_test.h",
483*635a8641SAndroid Build Coastguard Worker        "third_party/ashmem/ashmem.h",
484*635a8641SAndroid Build Coastguard Worker        "third_party/modp_b64/modp_b64.h",
485*635a8641SAndroid Build Coastguard Worker        "third_party/protobuf/src/google/protobuf/message_lite.h",
486*635a8641SAndroid Build Coastguard Worker        "third_party/re2/src/re2/re2.h",
487*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/insets.h",
488*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/insets_f.h",
489*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/mojo/geometry_struct_traits.h",
490*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/point.h",
491*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/point_conversions.h",
492*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/point_f.h",
493*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/rect.h",
494*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/rect_f.h",
495*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/safe_integer_conversions.h",
496*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/scroll_offset.h",
497*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/size.h",
498*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/size_conversions.h",
499*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/size_f.h",
500*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/vector2d.h",
501*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/vector2d_f.h",
502*635a8641SAndroid Build Coastguard Worker        "ui/gfx/gfx_export.h",
503*635a8641SAndroid Build Coastguard Worker        "ui/gfx/range/gfx_range_export.h",
504*635a8641SAndroid Build Coastguard Worker        "ui/gfx/range/mojo/range_struct_traits.h",
505*635a8641SAndroid Build Coastguard Worker        "ui/gfx/range/range.h",
506*635a8641SAndroid Build Coastguard Worker        "ui/gfx/range/range_f.h",
507*635a8641SAndroid Build Coastguard Worker    ],
508*635a8641SAndroid Build Coastguard Worker}
509*635a8641SAndroid Build Coastguard Worker
510*635a8641SAndroid Build Coastguard Workergensrcs {
511*635a8641SAndroid Build Coastguard Worker    name: "libchrome-include",
512*635a8641SAndroid Build Coastguard Worker    cmd: "$(location libchrome_tools/include_generator.py) $(in) $(out)",
513*635a8641SAndroid Build Coastguard Worker    tool_files: ["libchrome_tools/include_generator.py"],
514*635a8641SAndroid Build Coastguard Worker    export_include_dirs: ["."],
515*635a8641SAndroid Build Coastguard Worker    srcs: [":libchrome-include-sources"],
516*635a8641SAndroid Build Coastguard Worker    output_extension: "h",
517*635a8641SAndroid Build Coastguard Worker}
518*635a8641SAndroid Build Coastguard Worker
519*635a8641SAndroid Build Coastguard Workercc_defaults {
520*635a8641SAndroid Build Coastguard Worker    name: "libchrome-defaults",
521*635a8641SAndroid Build Coastguard Worker
522*635a8641SAndroid Build Coastguard Worker    cflags: [
523*635a8641SAndroid Build Coastguard Worker        "-Wall",
524*635a8641SAndroid Build Coastguard Worker        "-Werror",
525*635a8641SAndroid Build Coastguard Worker        "-Wno-deprecated-declarations",
526*635a8641SAndroid Build Coastguard Worker        "-Wno-implicit-fallthrough",
527*635a8641SAndroid Build Coastguard Worker        "-Wno-implicit-int-float-conversion",
528*635a8641SAndroid Build Coastguard Worker        // memory_mapped_file.cc:80, json_parser.cc:264,
529*635a8641SAndroid Build Coastguard Worker        // sys_string_conversions_posix.cc:122, and
530*635a8641SAndroid Build Coastguard Worker        // icu_utf.cc:161,165 have -Wno-implicit-fallthrough.
531*635a8641SAndroid Build Coastguard Worker        "-Wno-missing-field-initializers",
532*635a8641SAndroid Build Coastguard Worker        "-Wno-unused-parameter",
533*635a8641SAndroid Build Coastguard Worker    ],
534*635a8641SAndroid Build Coastguard Worker
535*635a8641SAndroid Build Coastguard Worker    // Note: Although the generated header files are exported here, in building
536*635a8641SAndroid Build Coastguard Worker    // libchrome, "." has priority (unlike building projects using libchrome),
537*635a8641SAndroid Build Coastguard Worker    // so the raw header files are used for them.
538*635a8641SAndroid Build Coastguard Worker    generated_headers: ["libchrome-include"],
539*635a8641SAndroid Build Coastguard Worker    export_generated_headers: ["libchrome-include"],
540*635a8641SAndroid Build Coastguard Worker    header_libs: ["jni_headers"],
541*635a8641SAndroid Build Coastguard Worker    export_header_lib_headers: ["jni_headers"],
542*635a8641SAndroid Build Coastguard Worker    target: {
543*635a8641SAndroid Build Coastguard Worker        host: {
544*635a8641SAndroid Build Coastguard Worker            cflags: [
545*635a8641SAndroid Build Coastguard Worker                "-D__ANDROID_HOST__",
546*635a8641SAndroid Build Coastguard Worker                "-DDONT_EMBED_BUILD_METADATA",
547*635a8641SAndroid Build Coastguard Worker            ],
548*635a8641SAndroid Build Coastguard Worker        },
549*635a8641SAndroid Build Coastguard Worker        darwin: {
550*635a8641SAndroid Build Coastguard Worker            enabled: false,
551*635a8641SAndroid Build Coastguard Worker        },
552*635a8641SAndroid Build Coastguard Worker    },
553*635a8641SAndroid Build Coastguard Worker}
554*635a8641SAndroid Build Coastguard Worker
555*635a8641SAndroid Build Coastguard Workercc_defaults {
556*635a8641SAndroid Build Coastguard Worker    name: "libchrome-test-defaults",
557*635a8641SAndroid Build Coastguard Worker    defaults: ["libchrome-defaults"],
558*635a8641SAndroid Build Coastguard Worker    cflags: [
559*635a8641SAndroid Build Coastguard Worker        "-Wno-unused-function",
560*635a8641SAndroid Build Coastguard Worker        "-Wno-unused-variable",
561*635a8641SAndroid Build Coastguard Worker    ],
562*635a8641SAndroid Build Coastguard Worker}
563*635a8641SAndroid Build Coastguard Worker
564*635a8641SAndroid Build Coastguard WorkerlibchromeCommonSrc = [
565*635a8641SAndroid Build Coastguard Worker    "base/at_exit.cc",
566*635a8641SAndroid Build Coastguard Worker    "base/barrier_closure.cc",
567*635a8641SAndroid Build Coastguard Worker    "base/base64.cc",
568*635a8641SAndroid Build Coastguard Worker    "base/base64url.cc",
569*635a8641SAndroid Build Coastguard Worker    "base/base_paths.cc",
570*635a8641SAndroid Build Coastguard Worker    "base/base_paths_posix.cc",
571*635a8641SAndroid Build Coastguard Worker    "base/base_switches.cc",
572*635a8641SAndroid Build Coastguard Worker    "base/big_endian.cc",
573*635a8641SAndroid Build Coastguard Worker    "base/build_time.cc",
574*635a8641SAndroid Build Coastguard Worker    "base/callback_helpers.cc",
575*635a8641SAndroid Build Coastguard Worker    "base/callback_internal.cc",
576*635a8641SAndroid Build Coastguard Worker    "base/command_line.cc",
577*635a8641SAndroid Build Coastguard Worker    "base/cpu.cc",
578*635a8641SAndroid Build Coastguard Worker    "base/debug/activity_tracker.cc",
579*635a8641SAndroid Build Coastguard Worker    "base/debug/alias.cc",
580*635a8641SAndroid Build Coastguard Worker    "base/debug/crash_logging.cc",
581*635a8641SAndroid Build Coastguard Worker    "base/debug/debugger.cc",
582*635a8641SAndroid Build Coastguard Worker    "base/debug/debugger_posix.cc",
583*635a8641SAndroid Build Coastguard Worker    "base/debug/dump_without_crashing.cc",
584*635a8641SAndroid Build Coastguard Worker    "base/debug/proc_maps_linux.cc",
585*635a8641SAndroid Build Coastguard Worker    "base/debug/profiler.cc",
586*635a8641SAndroid Build Coastguard Worker    "base/debug/stack_trace.cc",
587*635a8641SAndroid Build Coastguard Worker    "base/debug/task_annotator.cc",
588*635a8641SAndroid Build Coastguard Worker    "base/environment.cc",
589*635a8641SAndroid Build Coastguard Worker    "base/feature_list.cc",
590*635a8641SAndroid Build Coastguard Worker    "base/files/file.cc",
591*635a8641SAndroid Build Coastguard Worker    "base/files/file_descriptor_watcher_posix.cc",
592*635a8641SAndroid Build Coastguard Worker    "base/files/file_enumerator.cc",
593*635a8641SAndroid Build Coastguard Worker    "base/files/file_enumerator_posix.cc",
594*635a8641SAndroid Build Coastguard Worker    "base/files/file_path.cc",
595*635a8641SAndroid Build Coastguard Worker    "base/files/file_path_constants.cc",
596*635a8641SAndroid Build Coastguard Worker    "base/files/file_path_watcher.cc",
597*635a8641SAndroid Build Coastguard Worker    "base/files/file_posix.cc",
598*635a8641SAndroid Build Coastguard Worker    "base/files/file_tracing.cc",
599*635a8641SAndroid Build Coastguard Worker    "base/files/file_util.cc",
600*635a8641SAndroid Build Coastguard Worker    "base/files/file_util_posix.cc",
601*635a8641SAndroid Build Coastguard Worker    "base/files/important_file_writer.cc",
602*635a8641SAndroid Build Coastguard Worker    "base/files/memory_mapped_file.cc",
603*635a8641SAndroid Build Coastguard Worker    "base/files/memory_mapped_file_posix.cc",
604*635a8641SAndroid Build Coastguard Worker    "base/files/scoped_file.cc",
605*635a8641SAndroid Build Coastguard Worker    "base/files/scoped_temp_dir.cc",
606*635a8641SAndroid Build Coastguard Worker    "base/guid.cc",
607*635a8641SAndroid Build Coastguard Worker    "base/hash.cc",
608*635a8641SAndroid Build Coastguard Worker    "base/json/json_file_value_serializer.cc",
609*635a8641SAndroid Build Coastguard Worker    "base/json/json_parser.cc",
610*635a8641SAndroid Build Coastguard Worker    "base/json/json_reader.cc",
611*635a8641SAndroid Build Coastguard Worker    "base/json/json_string_value_serializer.cc",
612*635a8641SAndroid Build Coastguard Worker    "base/json/json_value_converter.cc",
613*635a8641SAndroid Build Coastguard Worker    "base/json/json_writer.cc",
614*635a8641SAndroid Build Coastguard Worker    "base/json/string_escape.cc",
615*635a8641SAndroid Build Coastguard Worker    "base/lazy_instance_helpers.cc",
616*635a8641SAndroid Build Coastguard Worker    "base/location.cc",
617*635a8641SAndroid Build Coastguard Worker    "base/logging.cc",
618*635a8641SAndroid Build Coastguard Worker    "base/md5.cc",
619*635a8641SAndroid Build Coastguard Worker    "base/memory/aligned_memory.cc",
620*635a8641SAndroid Build Coastguard Worker    "base/memory/platform_shared_memory_region.cc",
621*635a8641SAndroid Build Coastguard Worker    "base/memory/read_only_shared_memory_region.cc",
622*635a8641SAndroid Build Coastguard Worker    "base/memory/ref_counted.cc",
623*635a8641SAndroid Build Coastguard Worker    "base/memory/ref_counted_memory.cc",
624*635a8641SAndroid Build Coastguard Worker    "base/memory/shared_memory_handle.cc",
625*635a8641SAndroid Build Coastguard Worker    "base/memory/shared_memory_helper.cc",
626*635a8641SAndroid Build Coastguard Worker    "base/memory/shared_memory_mapping.cc",
627*635a8641SAndroid Build Coastguard Worker    "base/memory/unsafe_shared_memory_region.cc",
628*635a8641SAndroid Build Coastguard Worker    "base/memory/weak_ptr.cc",
629*635a8641SAndroid Build Coastguard Worker    "base/memory/writable_shared_memory_region.cc",
630*635a8641SAndroid Build Coastguard Worker    "base/message_loop/incoming_task_queue.cc",
631*635a8641SAndroid Build Coastguard Worker    "base/message_loop/message_loop.cc",
632*635a8641SAndroid Build Coastguard Worker    "base/message_loop/message_loop_current.cc",
633*635a8641SAndroid Build Coastguard Worker    "base/message_loop/message_loop_task_runner.cc",
634*635a8641SAndroid Build Coastguard Worker    "base/message_loop/message_pump.cc",
635*635a8641SAndroid Build Coastguard Worker    "base/message_loop/message_pump_default.cc",
636*635a8641SAndroid Build Coastguard Worker    "base/message_loop/message_pump_libevent.cc",
637*635a8641SAndroid Build Coastguard Worker    "base/message_loop/watchable_io_message_pump_posix.cc",
638*635a8641SAndroid Build Coastguard Worker    "base/metrics/bucket_ranges.cc",
639*635a8641SAndroid Build Coastguard Worker    "base/metrics/dummy_histogram.cc",
640*635a8641SAndroid Build Coastguard Worker    "base/metrics/field_trial.cc",
641*635a8641SAndroid Build Coastguard Worker    "base/metrics/field_trial_param_associator.cc",
642*635a8641SAndroid Build Coastguard Worker    "base/metrics/histogram.cc",
643*635a8641SAndroid Build Coastguard Worker    "base/metrics/histogram_base.cc",
644*635a8641SAndroid Build Coastguard Worker    "base/metrics/histogram_functions.cc",
645*635a8641SAndroid Build Coastguard Worker    "base/metrics/histogram_samples.cc",
646*635a8641SAndroid Build Coastguard Worker    "base/metrics/histogram_snapshot_manager.cc",
647*635a8641SAndroid Build Coastguard Worker    "base/metrics/metrics_hashes.cc",
648*635a8641SAndroid Build Coastguard Worker    "base/metrics/persistent_histogram_allocator.cc",
649*635a8641SAndroid Build Coastguard Worker    "base/metrics/persistent_memory_allocator.cc",
650*635a8641SAndroid Build Coastguard Worker    "base/metrics/persistent_sample_map.cc",
651*635a8641SAndroid Build Coastguard Worker    "base/metrics/sample_map.cc",
652*635a8641SAndroid Build Coastguard Worker    "base/metrics/sample_vector.cc",
653*635a8641SAndroid Build Coastguard Worker    "base/metrics/sparse_histogram.cc",
654*635a8641SAndroid Build Coastguard Worker    "base/metrics/statistics_recorder.cc",
655*635a8641SAndroid Build Coastguard Worker    "base/native_library.cc",
656*635a8641SAndroid Build Coastguard Worker    "base/native_library_posix.cc",
657*635a8641SAndroid Build Coastguard Worker    "base/observer_list_threadsafe.cc",
658*635a8641SAndroid Build Coastguard Worker    "base/path_service.cc",
659*635a8641SAndroid Build Coastguard Worker    "base/pending_task.cc",
660*635a8641SAndroid Build Coastguard Worker    "base/pickle.cc",
661*635a8641SAndroid Build Coastguard Worker    "base/posix/file_descriptor_shuffle.cc",
662*635a8641SAndroid Build Coastguard Worker    "base/posix/global_descriptors.cc",
663*635a8641SAndroid Build Coastguard Worker    "base/posix/safe_strerror.cc",
664*635a8641SAndroid Build Coastguard Worker    "base/process/kill.cc",
665*635a8641SAndroid Build Coastguard Worker    "base/process/kill_posix.cc",
666*635a8641SAndroid Build Coastguard Worker    "base/process/launch.cc",
667*635a8641SAndroid Build Coastguard Worker    "base/process/launch_posix.cc",
668*635a8641SAndroid Build Coastguard Worker    "base/process/memory.cc",
669*635a8641SAndroid Build Coastguard Worker    "base/process/process_handle.cc",
670*635a8641SAndroid Build Coastguard Worker    "base/process/process_handle_posix.cc",
671*635a8641SAndroid Build Coastguard Worker    "base/process/process_iterator.cc",
672*635a8641SAndroid Build Coastguard Worker    "base/process/process_metrics.cc",
673*635a8641SAndroid Build Coastguard Worker    "base/process/process_metrics_posix.cc",
674*635a8641SAndroid Build Coastguard Worker    "base/process/process_posix.cc",
675*635a8641SAndroid Build Coastguard Worker    "base/rand_util.cc",
676*635a8641SAndroid Build Coastguard Worker    "base/rand_util_posix.cc",
677*635a8641SAndroid Build Coastguard Worker    "base/run_loop.cc",
678*635a8641SAndroid Build Coastguard Worker    "base/scoped_native_library.cc",
679*635a8641SAndroid Build Coastguard Worker    "base/sequence_checker_impl.cc",
680*635a8641SAndroid Build Coastguard Worker    "base/sequence_token.cc",
681*635a8641SAndroid Build Coastguard Worker    "base/sequenced_task_runner.cc",
682*635a8641SAndroid Build Coastguard Worker    "base/sha1.cc",
683*635a8641SAndroid Build Coastguard Worker    "base/strings/nullable_string16.cc",
684*635a8641SAndroid Build Coastguard Worker    "base/strings/pattern.cc",
685*635a8641SAndroid Build Coastguard Worker    "base/strings/safe_sprintf.cc",
686*635a8641SAndroid Build Coastguard Worker    "base/strings/strcat.cc",
687*635a8641SAndroid Build Coastguard Worker    "base/strings/string16.cc",
688*635a8641SAndroid Build Coastguard Worker    "base/strings/string_number_conversions.cc",
689*635a8641SAndroid Build Coastguard Worker    "base/strings/string_piece.cc",
690*635a8641SAndroid Build Coastguard Worker    "base/strings/string_split.cc",
691*635a8641SAndroid Build Coastguard Worker    "base/strings/string_util.cc",
692*635a8641SAndroid Build Coastguard Worker    "base/strings/string_util_constants.cc",
693*635a8641SAndroid Build Coastguard Worker    "base/strings/stringprintf.cc",
694*635a8641SAndroid Build Coastguard Worker    "base/strings/utf_string_conversion_utils.cc",
695*635a8641SAndroid Build Coastguard Worker    "base/strings/utf_string_conversions.cc",
696*635a8641SAndroid Build Coastguard Worker    "base/sync_socket_posix.cc",
697*635a8641SAndroid Build Coastguard Worker    "base/synchronization/atomic_flag.cc",
698*635a8641SAndroid Build Coastguard Worker    "base/synchronization/condition_variable_posix.cc",
699*635a8641SAndroid Build Coastguard Worker    "base/synchronization/lock.cc",
700*635a8641SAndroid Build Coastguard Worker    "base/synchronization/lock_impl_posix.cc",
701*635a8641SAndroid Build Coastguard Worker    "base/synchronization/waitable_event_posix.cc",
702*635a8641SAndroid Build Coastguard Worker    "base/sys_info.cc",
703*635a8641SAndroid Build Coastguard Worker    "base/sys_info_posix.cc",
704*635a8641SAndroid Build Coastguard Worker    "base/task/cancelable_task_tracker.cc",
705*635a8641SAndroid Build Coastguard Worker    "base/task_runner.cc",
706*635a8641SAndroid Build Coastguard Worker    "base/task_scheduler/scheduler_lock_impl.cc",
707*635a8641SAndroid Build Coastguard Worker    "base/task_scheduler/scoped_set_task_priority_for_current_thread.cc",
708*635a8641SAndroid Build Coastguard Worker    "base/task_scheduler/sequence.cc",
709*635a8641SAndroid Build Coastguard Worker    "base/task_scheduler/sequence_sort_key.cc",
710*635a8641SAndroid Build Coastguard Worker    "base/task_scheduler/task.cc",
711*635a8641SAndroid Build Coastguard Worker    "base/task_scheduler/task_traits.cc",
712*635a8641SAndroid Build Coastguard Worker    "base/third_party/dynamic_annotations/dynamic_annotations.c",
713*635a8641SAndroid Build Coastguard Worker    "base/third_party/icu/icu_utf.cc",
714*635a8641SAndroid Build Coastguard Worker    "base/third_party/nspr/prtime.cc",
715*635a8641SAndroid Build Coastguard Worker    "base/threading/platform_thread_posix.cc",
716*635a8641SAndroid Build Coastguard Worker    "base/threading/post_task_and_reply_impl.cc",
717*635a8641SAndroid Build Coastguard Worker    "base/threading/scoped_blocking_call.cc",
718*635a8641SAndroid Build Coastguard Worker    "base/threading/sequence_local_storage_map.cc",
719*635a8641SAndroid Build Coastguard Worker    "base/threading/sequence_local_storage_slot.cc",
720*635a8641SAndroid Build Coastguard Worker    "base/threading/sequenced_task_runner_handle.cc",
721*635a8641SAndroid Build Coastguard Worker    "base/threading/simple_thread.cc",
722*635a8641SAndroid Build Coastguard Worker    "base/threading/thread.cc",
723*635a8641SAndroid Build Coastguard Worker    "base/threading/thread_checker_impl.cc",
724*635a8641SAndroid Build Coastguard Worker    "base/threading/thread_collision_warner.cc",
725*635a8641SAndroid Build Coastguard Worker    "base/threading/thread_id_name_manager.cc",
726*635a8641SAndroid Build Coastguard Worker    "base/threading/thread_local_storage.cc",
727*635a8641SAndroid Build Coastguard Worker    "base/threading/thread_local_storage_posix.cc",
728*635a8641SAndroid Build Coastguard Worker    "base/threading/thread_restrictions.cc",
729*635a8641SAndroid Build Coastguard Worker    "base/threading/thread_task_runner_handle.cc",
730*635a8641SAndroid Build Coastguard Worker    "base/time/clock.cc",
731*635a8641SAndroid Build Coastguard Worker    "base/time/default_clock.cc",
732*635a8641SAndroid Build Coastguard Worker    "base/time/default_tick_clock.cc",
733*635a8641SAndroid Build Coastguard Worker    "base/time/tick_clock.cc",
734*635a8641SAndroid Build Coastguard Worker    "base/time/time.cc",
735*635a8641SAndroid Build Coastguard Worker    "base/time/time_conversion_posix.cc",
736*635a8641SAndroid Build Coastguard Worker    "base/time/time_exploded_posix.cc",
737*635a8641SAndroid Build Coastguard Worker    "base/time/time_now_posix.cc",
738*635a8641SAndroid Build Coastguard Worker    "base/time/time_override.cc",
739*635a8641SAndroid Build Coastguard Worker    "base/timer/elapsed_timer.cc",
740*635a8641SAndroid Build Coastguard Worker    "base/timer/timer.cc",
741*635a8641SAndroid Build Coastguard Worker    "base/token.cc",
742*635a8641SAndroid Build Coastguard Worker    "base/unguessable_token.cc",
743*635a8641SAndroid Build Coastguard Worker    "base/value_iterators.cc",
744*635a8641SAndroid Build Coastguard Worker    "base/values.cc",
745*635a8641SAndroid Build Coastguard Worker    "base/version.cc",
746*635a8641SAndroid Build Coastguard Worker    "base/vlog.cc",
747*635a8641SAndroid Build Coastguard Worker    "device/bluetooth/bluetooth_advertisement.cc",
748*635a8641SAndroid Build Coastguard Worker    "device/bluetooth/bluetooth_uuid.cc",
749*635a8641SAndroid Build Coastguard Worker    "device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc",
750*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/insets.cc",
751*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/insets_f.cc",
752*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/point.cc",
753*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/point_conversions.cc",
754*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/point_f.cc",
755*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/rect.cc",
756*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/rect_f.cc",
757*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/size.cc",
758*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/size_conversions.cc",
759*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/size_f.cc",
760*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/vector2d.cc",
761*635a8641SAndroid Build Coastguard Worker    "ui/gfx/geometry/vector2d_f.cc",
762*635a8641SAndroid Build Coastguard Worker    "ui/gfx/range/range.cc",
763*635a8641SAndroid Build Coastguard Worker    "ui/gfx/range/range_f.cc",
764*635a8641SAndroid Build Coastguard Worker]
765*635a8641SAndroid Build Coastguard Worker
766*635a8641SAndroid Build Coastguard WorkerlibchromeLinuxSrc = [
767*635a8641SAndroid Build Coastguard Worker    "base/files/file_path_watcher_linux.cc",
768*635a8641SAndroid Build Coastguard Worker    "base/files/file_util_linux.cc",
769*635a8641SAndroid Build Coastguard Worker    "base/memory/shared_memory_posix.cc",
770*635a8641SAndroid Build Coastguard Worker    "base/posix/unix_domain_socket.cc",
771*635a8641SAndroid Build Coastguard Worker    "base/process/internal_linux.cc",
772*635a8641SAndroid Build Coastguard Worker    "base/process/memory_linux.cc",
773*635a8641SAndroid Build Coastguard Worker    "base/process/process_handle_linux.cc",
774*635a8641SAndroid Build Coastguard Worker    "base/process/process_info_linux.cc",
775*635a8641SAndroid Build Coastguard Worker    "base/process/process_iterator_linux.cc",
776*635a8641SAndroid Build Coastguard Worker    "base/process/process_metrics_linux.cc",
777*635a8641SAndroid Build Coastguard Worker    "base/strings/sys_string_conversions_posix.cc",
778*635a8641SAndroid Build Coastguard Worker    "base/sys_info_linux.cc",
779*635a8641SAndroid Build Coastguard Worker    "base/threading/platform_thread_internal_posix.cc",
780*635a8641SAndroid Build Coastguard Worker    "base/threading/platform_thread_linux.cc",
781*635a8641SAndroid Build Coastguard Worker]
782*635a8641SAndroid Build Coastguard Worker
783*635a8641SAndroid Build Coastguard WorkerlibchromeMuslSrc = [
784*635a8641SAndroid Build Coastguard Worker    "base/debug/stack_trace_posix.cc",
785*635a8641SAndroid Build Coastguard Worker    "base/memory/platform_shared_memory_region_posix.cc",
786*635a8641SAndroid Build Coastguard Worker    "base/memory/shared_memory_handle_posix.cc",
787*635a8641SAndroid Build Coastguard Worker]
788*635a8641SAndroid Build Coastguard Worker
789*635a8641SAndroid Build Coastguard WorkerlibchromeGlibcSrc = [
790*635a8641SAndroid Build Coastguard Worker    "base/allocator/allocator_shim.cc",
791*635a8641SAndroid Build Coastguard Worker    "base/allocator/allocator_shim_default_dispatch_to_glibc.cc",
792*635a8641SAndroid Build Coastguard Worker    "base/debug/stack_trace_posix.cc",
793*635a8641SAndroid Build Coastguard Worker    "base/memory/platform_shared_memory_region_posix.cc",
794*635a8641SAndroid Build Coastguard Worker    "base/memory/shared_memory_handle_posix.cc",
795*635a8641SAndroid Build Coastguard Worker]
796*635a8641SAndroid Build Coastguard Worker
797*635a8641SAndroid Build Coastguard WorkerlibchromeLinuxBionicSrc = [
798*635a8641SAndroid Build Coastguard Worker    "base/debug/stack_trace_android.cc",
799*635a8641SAndroid Build Coastguard Worker    "base/memory/platform_shared_memory_region_posix.cc",
800*635a8641SAndroid Build Coastguard Worker    "base/memory/shared_memory_handle_posix.cc",
801*635a8641SAndroid Build Coastguard Worker]
802*635a8641SAndroid Build Coastguard Worker
803*635a8641SAndroid Build Coastguard WorkerlibchromeAndroidSrc = [
804*635a8641SAndroid Build Coastguard Worker    "base/android/android_hardware_buffer_compat.cc",
805*635a8641SAndroid Build Coastguard Worker    "base/android/build_info.cc",
806*635a8641SAndroid Build Coastguard Worker    "base/android/content_uri_utils.cc",
807*635a8641SAndroid Build Coastguard Worker    "base/android/java_exception_reporter.cc",
808*635a8641SAndroid Build Coastguard Worker    "base/android/jni_android.cc",
809*635a8641SAndroid Build Coastguard Worker    "base/android/jni_array.cc",
810*635a8641SAndroid Build Coastguard Worker    "base/android/jni_string.cc",
811*635a8641SAndroid Build Coastguard Worker    "base/android/path_utils.cc",
812*635a8641SAndroid Build Coastguard Worker    "base/android/scoped_java_ref.cc",
813*635a8641SAndroid Build Coastguard Worker    "base/android/scoped_hardware_buffer_handle.cc",
814*635a8641SAndroid Build Coastguard Worker    "base/android/sys_utils.cc",
815*635a8641SAndroid Build Coastguard Worker    "base/base_paths_android.cc",
816*635a8641SAndroid Build Coastguard Worker    "base/debug/stack_trace_android.cc",
817*635a8641SAndroid Build Coastguard Worker    "base/memory/platform_shared_memory_region_android.cc",
818*635a8641SAndroid Build Coastguard Worker    "base/memory/shared_memory_android.cc",
819*635a8641SAndroid Build Coastguard Worker    "base/memory/shared_memory_handle_android.cc",
820*635a8641SAndroid Build Coastguard Worker    "base/os_compat_android.cc",
821*635a8641SAndroid Build Coastguard Worker    "base/sys_info_android.cc",
822*635a8641SAndroid Build Coastguard Worker    "base/time/time_android.cc",
823*635a8641SAndroid Build Coastguard Worker]
824*635a8641SAndroid Build Coastguard Worker
825*635a8641SAndroid Build Coastguard Worker// libchrome static+shared for host and device
826*635a8641SAndroid Build Coastguard Worker// ========================================================
827*635a8641SAndroid Build Coastguard Workercc_library {
828*635a8641SAndroid Build Coastguard Worker    name: "libchrome",
829*635a8641SAndroid Build Coastguard Worker    host_supported: true,
830*635a8641SAndroid Build Coastguard Worker    ramdisk_available: true,
831*635a8641SAndroid Build Coastguard Worker    recovery_available: true,
832*635a8641SAndroid Build Coastguard Worker    vendor_available: true,
833*635a8641SAndroid Build Coastguard Worker    defaults: ["libchrome-defaults"],
834*635a8641SAndroid Build Coastguard Worker    srcs: libchromeCommonSrc,
835*635a8641SAndroid Build Coastguard Worker
836*635a8641SAndroid Build Coastguard Worker    export_shared_lib_headers: ["libbase"],
837*635a8641SAndroid Build Coastguard Worker    export_header_lib_headers: ["libgtest_prod_headers"],
838*635a8641SAndroid Build Coastguard Worker    shared_libs: [
839*635a8641SAndroid Build Coastguard Worker        "libbase",
840*635a8641SAndroid Build Coastguard Worker        "libevent",
841*635a8641SAndroid Build Coastguard Worker    ],
842*635a8641SAndroid Build Coastguard Worker    header_libs: [
843*635a8641SAndroid Build Coastguard Worker        "libgtest_prod_headers",
844*635a8641SAndroid Build Coastguard Worker    ],
845*635a8641SAndroid Build Coastguard Worker    static_libs: [
846*635a8641SAndroid Build Coastguard Worker        "libmodpb64",
847*635a8641SAndroid Build Coastguard Worker    ],
848*635a8641SAndroid Build Coastguard Worker    generated_headers: [
849*635a8641SAndroid Build Coastguard Worker        "libmojo_jni_headers",
850*635a8641SAndroid Build Coastguard Worker        "libmojo_jni_registration_headers",
851*635a8641SAndroid Build Coastguard Worker    ],
852*635a8641SAndroid Build Coastguard Worker    export_generated_headers: [
853*635a8641SAndroid Build Coastguard Worker        "libmojo_jni_registration_headers",
854*635a8641SAndroid Build Coastguard Worker    ],
855*635a8641SAndroid Build Coastguard Worker    target: {
856*635a8641SAndroid Build Coastguard Worker        linux: {
857*635a8641SAndroid Build Coastguard Worker            srcs: libchromeLinuxSrc,
858*635a8641SAndroid Build Coastguard Worker        },
859*635a8641SAndroid Build Coastguard Worker        linux_bionic: {
860*635a8641SAndroid Build Coastguard Worker            srcs: libchromeLinuxBionicSrc,
861*635a8641SAndroid Build Coastguard Worker            shared_libs: [
862*635a8641SAndroid Build Coastguard Worker                "liblog",
863*635a8641SAndroid Build Coastguard Worker            ],
864*635a8641SAndroid Build Coastguard Worker        },
865*635a8641SAndroid Build Coastguard Worker        glibc: {
866*635a8641SAndroid Build Coastguard Worker            srcs: libchromeGlibcSrc,
867*635a8641SAndroid Build Coastguard Worker        },
868*635a8641SAndroid Build Coastguard Worker        musl: {
869*635a8641SAndroid Build Coastguard Worker            srcs: libchromeMuslSrc,
870*635a8641SAndroid Build Coastguard Worker        },
871*635a8641SAndroid Build Coastguard Worker        android: {
872*635a8641SAndroid Build Coastguard Worker            srcs: libchromeAndroidSrc,
873*635a8641SAndroid Build Coastguard Worker            shared_libs: [
874*635a8641SAndroid Build Coastguard Worker                "libcutils",
875*635a8641SAndroid Build Coastguard Worker                "liblog",
876*635a8641SAndroid Build Coastguard Worker            ],
877*635a8641SAndroid Build Coastguard Worker        },
878*635a8641SAndroid Build Coastguard Worker    },
879*635a8641SAndroid Build Coastguard Worker    apex_available: [
880*635a8641SAndroid Build Coastguard Worker        "//apex_available:platform",
881*635a8641SAndroid Build Coastguard Worker        "com.android.btservices",
882*635a8641SAndroid Build Coastguard Worker    ],
883*635a8641SAndroid Build Coastguard Worker    min_sdk_version: "30",
884*635a8641SAndroid Build Coastguard Worker    visibility: [
885*635a8641SAndroid Build Coastguard Worker        "//device/google/bertha:__subpackages__",
886*635a8641SAndroid Build Coastguard Worker        "//device/google/cheets2/camera/v3",
887*635a8641SAndroid Build Coastguard Worker        "//external/avb",
888*635a8641SAndroid Build Coastguard Worker        "//external/gsc-utils:__subpackages__",
889*635a8641SAndroid Build Coastguard Worker        "//external/libbrillo",
890*635a8641SAndroid Build Coastguard Worker        "//external/libpalmrejection",
891*635a8641SAndroid Build Coastguard Worker        "//external/puffin",
892*635a8641SAndroid Build Coastguard Worker        "//external/v4l2_codec2:__subpackages__",
893*635a8641SAndroid Build Coastguard Worker        "//external/zucchini",
894*635a8641SAndroid Build Coastguard Worker        "//frameworks/base/services",
895*635a8641SAndroid Build Coastguard Worker        "//frameworks/base/services/core/jni",
896*635a8641SAndroid Build Coastguard Worker        "//frameworks/native/libs/vr/libpdx_default_transport",
897*635a8641SAndroid Build Coastguard Worker        "//frameworks/native/services/inputflinger:__subpackages__",
898*635a8641SAndroid Build Coastguard Worker        "//hardware/libhardware/modules/camera/3_4",
899*635a8641SAndroid Build Coastguard Worker        "//hardware/interfaces/keymaster/4.0/vts/performance",
900*635a8641SAndroid Build Coastguard Worker        "//hardware/interfaces/security/keymint/aidl/vts/performance",
901*635a8641SAndroid Build Coastguard Worker        "//hardware/nxp/secure_element/snxxx:__subpackages__",
902*635a8641SAndroid Build Coastguard Worker        "//hardware/nxp/uwb",
903*635a8641SAndroid Build Coastguard Worker        "//packages/modules/Bluetooth:__subpackages__",
904*635a8641SAndroid Build Coastguard Worker        "//system/core/fs_mgr/libfs_avb",
905*635a8641SAndroid Build Coastguard Worker        "//system/core/fs_mgr/libsnapshot",
906*635a8641SAndroid Build Coastguard Worker        "//system/security/keystore",
907*635a8641SAndroid Build Coastguard Worker        "//system/update_engine",
908*635a8641SAndroid Build Coastguard Worker        "//test/sts/tests/hostside/securityPatch:__subpackages__",
909*635a8641SAndroid Build Coastguard Worker        "//vendor:__subpackages__",
910*635a8641SAndroid Build Coastguard Worker    ],
911*635a8641SAndroid Build Coastguard Worker}
912*635a8641SAndroid Build Coastguard Worker
913*635a8641SAndroid Build Coastguard Worker// libchrome-crypto shared library for device
914*635a8641SAndroid Build Coastguard Worker// ========================================================
915*635a8641SAndroid Build Coastguard Worker
916*635a8641SAndroid Build Coastguard Worker// Similar to libchrome, generate wrapped header files. See comments for
917*635a8641SAndroid Build Coastguard Worker// libchrome-include for the details.
918*635a8641SAndroid Build Coastguard Workergensrcs {
919*635a8641SAndroid Build Coastguard Worker    name: "libchrome-crypto-include",
920*635a8641SAndroid Build Coastguard Worker    cmd: "$(location libchrome_tools/include_generator.py) $(in) $(out)",
921*635a8641SAndroid Build Coastguard Worker    tool_files: ["libchrome_tools/include_generator.py"],
922*635a8641SAndroid Build Coastguard Worker    export_include_dirs: ["."],
923*635a8641SAndroid Build Coastguard Worker    srcs: ["crypto/**/*.h"],
924*635a8641SAndroid Build Coastguard Worker    output_extension: "h",
925*635a8641SAndroid Build Coastguard Worker}
926*635a8641SAndroid Build Coastguard Worker
927*635a8641SAndroid Build Coastguard Workercc_library_shared {
928*635a8641SAndroid Build Coastguard Worker    name: "libchrome-crypto",
929*635a8641SAndroid Build Coastguard Worker    vendor_available: true,
930*635a8641SAndroid Build Coastguard Worker    defaults: ["libchrome-defaults"],
931*635a8641SAndroid Build Coastguard Worker    srcs: [
932*635a8641SAndroid Build Coastguard Worker        "crypto/random.cc",
933*635a8641SAndroid Build Coastguard Worker    ],
934*635a8641SAndroid Build Coastguard Worker
935*635a8641SAndroid Build Coastguard Worker    generated_headers: ["libchrome-crypto-include"],
936*635a8641SAndroid Build Coastguard Worker    export_generated_headers: ["libchrome-crypto-include"],
937*635a8641SAndroid Build Coastguard Worker
938*635a8641SAndroid Build Coastguard Worker    shared_libs: [
939*635a8641SAndroid Build Coastguard Worker        "libchrome",
940*635a8641SAndroid Build Coastguard Worker    ],
941*635a8641SAndroid Build Coastguard Worker}
942*635a8641SAndroid Build Coastguard Worker
943*635a8641SAndroid Build Coastguard Worker// Helpers needed for unit tests.
944*635a8641SAndroid Build Coastguard Worker// ========================================================
945*635a8641SAndroid Build Coastguard Workercc_library_static {
946*635a8641SAndroid Build Coastguard Worker    name: "libchrome_test_helpers",
947*635a8641SAndroid Build Coastguard Worker    defaults: ["libchrome-test-defaults"],
948*635a8641SAndroid Build Coastguard Worker    shared_libs: ["libchrome"],
949*635a8641SAndroid Build Coastguard Worker    host_supported: true,
950*635a8641SAndroid Build Coastguard Worker
951*635a8641SAndroid Build Coastguard Worker    srcs: [
952*635a8641SAndroid Build Coastguard Worker        "base/test/gtest_util.cc",
953*635a8641SAndroid Build Coastguard Worker        "base/test/simple_test_clock.cc",
954*635a8641SAndroid Build Coastguard Worker        "base/test/simple_test_tick_clock.cc",
955*635a8641SAndroid Build Coastguard Worker        "base/test/test_file_util.cc",
956*635a8641SAndroid Build Coastguard Worker        "base/test/test_file_util_linux.cc",
957*635a8641SAndroid Build Coastguard Worker        "base/test/test_switches.cc",
958*635a8641SAndroid Build Coastguard Worker        "base/test/test_timeouts.cc",
959*635a8641SAndroid Build Coastguard Worker    ],
960*635a8641SAndroid Build Coastguard Worker}
961*635a8641SAndroid Build Coastguard Worker
962*635a8641SAndroid Build Coastguard Worker// Helpers needed for unit tests (for host).
963*635a8641SAndroid Build Coastguard Worker// ========================================================
964*635a8641SAndroid Build Coastguard Workercc_library_host_static {
965*635a8641SAndroid Build Coastguard Worker    name: "libchrome_test_helpers-host",
966*635a8641SAndroid Build Coastguard Worker    defaults: ["libchrome-test-defaults"],
967*635a8641SAndroid Build Coastguard Worker    shared_libs: ["libchrome"],
968*635a8641SAndroid Build Coastguard Worker
969*635a8641SAndroid Build Coastguard Worker    srcs: ["base/test/simple_test_clock.cc"],
970*635a8641SAndroid Build Coastguard Worker}
971*635a8641SAndroid Build Coastguard Worker
972*635a8641SAndroid Build Coastguard Worker// Host and target unit tests. Run (from repo root) with:
973*635a8641SAndroid Build Coastguard Worker// ./out/host/<arch>/nativetest/libchrome_test/libchrome_test
974*635a8641SAndroid Build Coastguard Worker// or
975*635a8641SAndroid Build Coastguard Worker// adb shell /data/nativetest/libchrome_test/libchrome_test
976*635a8641SAndroid Build Coastguard Worker// ========================================================
977*635a8641SAndroid Build Coastguard Workercc_test {
978*635a8641SAndroid Build Coastguard Worker    name: "libchrome_test",
979*635a8641SAndroid Build Coastguard Worker    host_supported: true,
980*635a8641SAndroid Build Coastguard Worker    defaults: ["libchrome-test-defaults"],
981*635a8641SAndroid Build Coastguard Worker    srcs: [
982*635a8641SAndroid Build Coastguard Worker        "base/at_exit_unittest.cc",
983*635a8641SAndroid Build Coastguard Worker        "base/atomicops_unittest.cc",
984*635a8641SAndroid Build Coastguard Worker        "base/base64_unittest.cc",
985*635a8641SAndroid Build Coastguard Worker        "base/base64url_unittest.cc",
986*635a8641SAndroid Build Coastguard Worker        "base/big_endian_unittest.cc",
987*635a8641SAndroid Build Coastguard Worker        "base/bind_unittest.cc",
988*635a8641SAndroid Build Coastguard Worker        "base/bits_unittest.cc",
989*635a8641SAndroid Build Coastguard Worker        "base/build_time_unittest.cc",
990*635a8641SAndroid Build Coastguard Worker        "base/callback_helpers_unittest.cc",
991*635a8641SAndroid Build Coastguard Worker        "base/callback_list_unittest.cc",
992*635a8641SAndroid Build Coastguard Worker        "base/callback_unittest.cc",
993*635a8641SAndroid Build Coastguard Worker        "base/cancelable_callback_unittest.cc",
994*635a8641SAndroid Build Coastguard Worker        "base/command_line_unittest.cc",
995*635a8641SAndroid Build Coastguard Worker        "base/cpu_unittest.cc",
996*635a8641SAndroid Build Coastguard Worker        "base/debug/activity_tracker_unittest.cc",
997*635a8641SAndroid Build Coastguard Worker        "base/debug/debugger_unittest.cc",
998*635a8641SAndroid Build Coastguard Worker        "base/debug/leak_tracker_unittest.cc",
999*635a8641SAndroid Build Coastguard Worker        "base/environment_unittest.cc",
1000*635a8641SAndroid Build Coastguard Worker        "base/files/dir_reader_posix_unittest.cc",
1001*635a8641SAndroid Build Coastguard Worker        "base/files/file_descriptor_watcher_posix_unittest.cc",
1002*635a8641SAndroid Build Coastguard Worker        "base/files/file_enumerator_unittest.cc",
1003*635a8641SAndroid Build Coastguard Worker        "base/files/file_path_unittest.cc",
1004*635a8641SAndroid Build Coastguard Worker        "base/files/file_path_watcher_unittest.cc",
1005*635a8641SAndroid Build Coastguard Worker        "base/files/file_unittest.cc",
1006*635a8641SAndroid Build Coastguard Worker        "base/files/important_file_writer_unittest.cc",
1007*635a8641SAndroid Build Coastguard Worker        "base/files/scoped_temp_dir_unittest.cc",
1008*635a8641SAndroid Build Coastguard Worker        "base/gmock_unittest.cc",
1009*635a8641SAndroid Build Coastguard Worker        "base/guid_unittest.cc",
1010*635a8641SAndroid Build Coastguard Worker        "base/json/json_parser_unittest.cc",
1011*635a8641SAndroid Build Coastguard Worker        "base/json/json_reader_unittest.cc",
1012*635a8641SAndroid Build Coastguard Worker        "base/json/json_value_converter_unittest.cc",
1013*635a8641SAndroid Build Coastguard Worker        "base/json/json_value_serializer_unittest.cc",
1014*635a8641SAndroid Build Coastguard Worker        "base/json/json_writer_unittest.cc",
1015*635a8641SAndroid Build Coastguard Worker        "base/json/string_escape_unittest.cc",
1016*635a8641SAndroid Build Coastguard Worker        "base/lazy_instance_unittest.cc",
1017*635a8641SAndroid Build Coastguard Worker        "base/logging_unittest.cc",
1018*635a8641SAndroid Build Coastguard Worker        "base/md5_unittest.cc",
1019*635a8641SAndroid Build Coastguard Worker        "base/memory/aligned_memory_unittest.cc",
1020*635a8641SAndroid Build Coastguard Worker        "base/memory/linked_ptr_unittest.cc",
1021*635a8641SAndroid Build Coastguard Worker        "base/memory/ref_counted_memory_unittest.cc",
1022*635a8641SAndroid Build Coastguard Worker        "base/memory/ref_counted_unittest.cc",
1023*635a8641SAndroid Build Coastguard Worker        "base/memory/singleton_unittest.cc",
1024*635a8641SAndroid Build Coastguard Worker        "base/memory/weak_ptr_unittest.cc",
1025*635a8641SAndroid Build Coastguard Worker        "base/message_loop/message_loop_task_runner_unittest.cc",
1026*635a8641SAndroid Build Coastguard Worker        "base/message_loop/message_loop_unittest.cc",
1027*635a8641SAndroid Build Coastguard Worker        "base/metrics/bucket_ranges_unittest.cc",
1028*635a8641SAndroid Build Coastguard Worker        "base/metrics/field_trial_unittest.cc",
1029*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_base_unittest.cc",
1030*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_macros_unittest.cc",
1031*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_snapshot_manager_unittest.cc",
1032*635a8641SAndroid Build Coastguard Worker        "base/metrics/histogram_unittest.cc",
1033*635a8641SAndroid Build Coastguard Worker        "base/metrics/metrics_hashes_unittest.cc",
1034*635a8641SAndroid Build Coastguard Worker        "base/metrics/persistent_histogram_allocator_unittest.cc",
1035*635a8641SAndroid Build Coastguard Worker        "base/metrics/persistent_memory_allocator_unittest.cc",
1036*635a8641SAndroid Build Coastguard Worker        "base/metrics/persistent_sample_map_unittest.cc",
1037*635a8641SAndroid Build Coastguard Worker        "base/metrics/sample_map_unittest.cc",
1038*635a8641SAndroid Build Coastguard Worker        "base/metrics/sample_vector_unittest.cc",
1039*635a8641SAndroid Build Coastguard Worker        "base/metrics/sparse_histogram_unittest.cc",
1040*635a8641SAndroid Build Coastguard Worker        "base/metrics/statistics_recorder_unittest.cc",
1041*635a8641SAndroid Build Coastguard Worker        "base/observer_list_unittest.cc",
1042*635a8641SAndroid Build Coastguard Worker        "base/optional_unittest.cc",
1043*635a8641SAndroid Build Coastguard Worker        "base/pickle_unittest.cc",
1044*635a8641SAndroid Build Coastguard Worker        "base/posix/file_descriptor_shuffle_unittest.cc",
1045*635a8641SAndroid Build Coastguard Worker        "base/posix/unix_domain_socket_unittest.cc",
1046*635a8641SAndroid Build Coastguard Worker        "base/process/process_info_unittest.cc",
1047*635a8641SAndroid Build Coastguard Worker        "base/process/process_metrics_unittest.cc",
1048*635a8641SAndroid Build Coastguard Worker        "base/rand_util_unittest.cc",
1049*635a8641SAndroid Build Coastguard Worker        "base/scoped_clear_errno_unittest.cc",
1050*635a8641SAndroid Build Coastguard Worker        "base/scoped_generic_unittest.cc",
1051*635a8641SAndroid Build Coastguard Worker        "base/security_unittest.cc",
1052*635a8641SAndroid Build Coastguard Worker        "base/sequence_checker_unittest.cc",
1053*635a8641SAndroid Build Coastguard Worker        "base/sequence_token_unittest.cc",
1054*635a8641SAndroid Build Coastguard Worker        "base/sha1_unittest.cc",
1055*635a8641SAndroid Build Coastguard Worker        "base/stl_util_unittest.cc",
1056*635a8641SAndroid Build Coastguard Worker        "base/strings/pattern_unittest.cc",
1057*635a8641SAndroid Build Coastguard Worker        "base/strings/string16_unittest.cc",
1058*635a8641SAndroid Build Coastguard Worker        "base/strings/string_number_conversions_unittest.cc",
1059*635a8641SAndroid Build Coastguard Worker        "base/strings/string_piece_unittest.cc",
1060*635a8641SAndroid Build Coastguard Worker        "base/strings/string_split_unittest.cc",
1061*635a8641SAndroid Build Coastguard Worker        "base/strings/string_util_unittest.cc",
1062*635a8641SAndroid Build Coastguard Worker        "base/strings/stringprintf_unittest.cc",
1063*635a8641SAndroid Build Coastguard Worker        "base/strings/sys_string_conversions_unittest.cc",
1064*635a8641SAndroid Build Coastguard Worker        "base/strings/utf_string_conversions_unittest.cc",
1065*635a8641SAndroid Build Coastguard Worker        "base/sync_socket_unittest.cc",
1066*635a8641SAndroid Build Coastguard Worker        "base/synchronization/atomic_flag_unittest.cc",
1067*635a8641SAndroid Build Coastguard Worker        "base/synchronization/condition_variable_unittest.cc",
1068*635a8641SAndroid Build Coastguard Worker        "base/synchronization/lock_unittest.cc",
1069*635a8641SAndroid Build Coastguard Worker        "base/synchronization/waitable_event_unittest.cc",
1070*635a8641SAndroid Build Coastguard Worker        "base/sys_info_unittest.cc",
1071*635a8641SAndroid Build Coastguard Worker        "base/task/cancelable_task_tracker_unittest.cc",
1072*635a8641SAndroid Build Coastguard Worker        "base/task_runner_util_unittest.cc",
1073*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scheduler_lock_unittest.cc",
1074*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/scoped_set_task_priority_for_current_thread_unittest.cc",
1075*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/sequence_sort_key_unittest.cc",
1076*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/sequence_unittest.cc",
1077*635a8641SAndroid Build Coastguard Worker        "base/task_scheduler/task_traits.cc",
1078*635a8641SAndroid Build Coastguard Worker        "base/template_util_unittest.cc",
1079*635a8641SAndroid Build Coastguard Worker        "base/test/metrics/histogram_tester.cc",
1080*635a8641SAndroid Build Coastguard Worker        "base/test/mock_entropy_provider.cc",
1081*635a8641SAndroid Build Coastguard Worker        "base/test/multiprocess_test.cc",
1082*635a8641SAndroid Build Coastguard Worker        "base/test/scoped_feature_list.cc",
1083*635a8641SAndroid Build Coastguard Worker        "base/test/scoped_locale.cc",
1084*635a8641SAndroid Build Coastguard Worker        "base/test/simple_test_tick_clock.cc",
1085*635a8641SAndroid Build Coastguard Worker        "base/test/test_file_util.cc",
1086*635a8641SAndroid Build Coastguard Worker        "base/test/test_file_util_linux.cc",
1087*635a8641SAndroid Build Coastguard Worker        "base/test/test_file_util_posix.cc",
1088*635a8641SAndroid Build Coastguard Worker        "base/test/test_io_thread.cc",
1089*635a8641SAndroid Build Coastguard Worker        "base/test/test_mock_time_task_runner.cc",
1090*635a8641SAndroid Build Coastguard Worker        "base/test/test_pending_task.cc",
1091*635a8641SAndroid Build Coastguard Worker        "base/test/test_shared_memory_util.cc",
1092*635a8641SAndroid Build Coastguard Worker        "base/test/test_simple_task_runner.cc",
1093*635a8641SAndroid Build Coastguard Worker        "base/test/test_switches.cc",
1094*635a8641SAndroid Build Coastguard Worker        "base/test/test_timeouts.cc",
1095*635a8641SAndroid Build Coastguard Worker        "base/threading/platform_thread_unittest.cc",
1096*635a8641SAndroid Build Coastguard Worker        "base/threading/simple_thread_unittest.cc",
1097*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_checker_unittest.cc",
1098*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_collision_warner_unittest.cc",
1099*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_id_name_manager_unittest.cc",
1100*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_local_storage_unittest.cc",
1101*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_local_unittest.cc",
1102*635a8641SAndroid Build Coastguard Worker        "base/threading/thread_unittest.cc",
1103*635a8641SAndroid Build Coastguard Worker        "base/time/pr_time_unittest.cc",
1104*635a8641SAndroid Build Coastguard Worker        "base/time/time_unittest.cc",
1105*635a8641SAndroid Build Coastguard Worker        "base/timer/hi_res_timer_manager_unittest.cc",
1106*635a8641SAndroid Build Coastguard Worker        "base/timer/mock_timer.cc",
1107*635a8641SAndroid Build Coastguard Worker        "base/tuple_unittest.cc",
1108*635a8641SAndroid Build Coastguard Worker        "base/values_unittest.cc",
1109*635a8641SAndroid Build Coastguard Worker        "base/version_unittest.cc",
1110*635a8641SAndroid Build Coastguard Worker        "base/vlog_unittest.cc",
1111*635a8641SAndroid Build Coastguard Worker        "testing/multiprocess_func_list.cc",
1112*635a8641SAndroid Build Coastguard Worker        "testrunner.cc",
1113*635a8641SAndroid Build Coastguard Worker        "ui/gfx/range/range_unittest.cc",
1114*635a8641SAndroid Build Coastguard Worker    ],
1115*635a8641SAndroid Build Coastguard Worker
1116*635a8641SAndroid Build Coastguard Worker    cflags: ["-DUNIT_TEST"],
1117*635a8641SAndroid Build Coastguard Worker    shared_libs: [
1118*635a8641SAndroid Build Coastguard Worker        "libchrome",
1119*635a8641SAndroid Build Coastguard Worker        "libevent",
1120*635a8641SAndroid Build Coastguard Worker    ],
1121*635a8641SAndroid Build Coastguard Worker    static_libs: [
1122*635a8641SAndroid Build Coastguard Worker        "libgmock",
1123*635a8641SAndroid Build Coastguard Worker        "libgtest",
1124*635a8641SAndroid Build Coastguard Worker    ],
1125*635a8641SAndroid Build Coastguard Worker    target: {
1126*635a8641SAndroid Build Coastguard Worker        android: {
1127*635a8641SAndroid Build Coastguard Worker            cflags: ["-DDONT_EMBED_BUILD_METADATA"],
1128*635a8641SAndroid Build Coastguard Worker        },
1129*635a8641SAndroid Build Coastguard Worker    },
1130*635a8641SAndroid Build Coastguard Worker}
1131*635a8641SAndroid Build Coastguard Worker
1132*635a8641SAndroid Build Coastguard Workerfilegroup {
1133*635a8641SAndroid Build Coastguard Worker    name: "libmojo_mojom_files",
1134*635a8641SAndroid Build Coastguard Worker    srcs: [
1135*635a8641SAndroid Build Coastguard Worker        "ipc/ipc.mojom",
1136*635a8641SAndroid Build Coastguard Worker        "mojo/public/interfaces/bindings/interface_control_messages.mojom",
1137*635a8641SAndroid Build Coastguard Worker        "mojo/public/interfaces/bindings/native_struct.mojom",
1138*635a8641SAndroid Build Coastguard Worker        "mojo/public/interfaces/bindings/pipe_control_messages.mojom",
1139*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/big_buffer.mojom",
1140*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/big_string.mojom",
1141*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/file.mojom",
1142*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/file_error.mojom",
1143*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/file_info.mojom",
1144*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/file_path.mojom",
1145*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/process_id.mojom",
1146*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/read_only_buffer.mojom",
1147*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/ref_counted_memory.mojom",
1148*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/shared_memory.mojom",
1149*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/string16.mojom",
1150*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/text_direction.mojom",
1151*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/thread_priority.mojom",
1152*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/time.mojom",
1153*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/unguessable_token.mojom",
1154*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/values.mojom",
1155*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/mojo/geometry.mojom",
1156*635a8641SAndroid Build Coastguard Worker        "ui/gfx/range/mojo/range.mojom",
1157*635a8641SAndroid Build Coastguard Worker    ],
1158*635a8641SAndroid Build Coastguard Worker}
1159*635a8641SAndroid Build Coastguard Worker
1160*635a8641SAndroid Build Coastguard Workerfilegroup {
1161*635a8641SAndroid Build Coastguard Worker    name: "libmojo_mojo_sources",
1162*635a8641SAndroid Build Coastguard Worker    srcs: [
1163*635a8641SAndroid Build Coastguard Worker        "mojo/**/*.cc",
1164*635a8641SAndroid Build Coastguard Worker    ],
1165*635a8641SAndroid Build Coastguard Worker    exclude_srcs: [
1166*635a8641SAndroid Build Coastguard Worker        // Unused in Chrome. Looks like mistakenly checked in.
1167*635a8641SAndroid Build Coastguard Worker        // TODO(hidehiko): Remove this after the file is removed in Chrome
1168*635a8641SAndroid Build Coastguard Worker        // repository. http://crrev.com/c/644531
1169*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/system/message.cc",
1170*635a8641SAndroid Build Coastguard Worker
1171*635a8641SAndroid Build Coastguard Worker        // No WTF support.
1172*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/bindings/lib/string_traits_wtf.cc",
1173*635a8641SAndroid Build Coastguard Worker
1174*635a8641SAndroid Build Coastguard Worker        // Exclude windows/mac/ios/fuchsia files.
1175*635a8641SAndroid Build Coastguard Worker        "**/*_win.cc",
1176*635a8641SAndroid Build Coastguard Worker        "**/*_fuchsia.cc",
1177*635a8641SAndroid Build Coastguard Worker        "mojo/core/mach_port_relay.*",
1178*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/logfont_win*",
1179*635a8641SAndroid Build Coastguard Worker        "mojo/public/mojom/base/logfont_win*",
1180*635a8641SAndroid Build Coastguard Worker
1181*635a8641SAndroid Build Coastguard Worker        // Exclude js binding related files.
1182*635a8641SAndroid Build Coastguard Worker        "mojo/public/js/**/*",
1183*635a8641SAndroid Build Coastguard Worker
1184*635a8641SAndroid Build Coastguard Worker        // Exclude tests.
1185*635a8641SAndroid Build Coastguard Worker        "**/*_unittest.cc",
1186*635a8641SAndroid Build Coastguard Worker        "**/*_unittests.cc",
1187*635a8641SAndroid Build Coastguard Worker        "**/*_perftest.cc",
1188*635a8641SAndroid Build Coastguard Worker        "mojo/core/core_test_base.*",
1189*635a8641SAndroid Build Coastguard Worker        "mojo/core/test/*",
1190*635a8641SAndroid Build Coastguard Worker        "mojo/core/test_utils.*",
1191*635a8641SAndroid Build Coastguard Worker        "mojo/public/c/system/tests/**/*",
1192*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/bindings/tests/**/*",
1193*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/system/tests/**/*",
1194*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/test_support/**/*",
1195*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/javatests/**/*",
1196*635a8641SAndroid Build Coastguard Worker        "mojo/public/tests/**/*",
1197*635a8641SAndroid Build Coastguard Worker
1198*635a8641SAndroid Build Coastguard Worker        // Exclude memory allocator unsupported feature
1199*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/memory_allocator_dump_cross_process_uid*",
1200*635a8641SAndroid Build Coastguard Worker
1201*635a8641SAndroid Build Coastguard Worker        // Exclude fuzzers
1202*635a8641SAndroid Build Coastguard Worker        "mojo/public/tools/fuzzers/**/*",
1203*635a8641SAndroid Build Coastguard Worker    ],
1204*635a8641SAndroid Build Coastguard Worker}
1205*635a8641SAndroid Build Coastguard Worker
1206*635a8641SAndroid Build Coastguard Workerpython_binary_host {
1207*635a8641SAndroid Build Coastguard Worker    name: "jni_generator",
1208*635a8641SAndroid Build Coastguard Worker    main: "base/android/jni_generator/jni_generator.py",
1209*635a8641SAndroid Build Coastguard Worker    srcs: [
1210*635a8641SAndroid Build Coastguard Worker        "base/android/jni_generator/jni_generator.py",
1211*635a8641SAndroid Build Coastguard Worker        "build/**/*.py",
1212*635a8641SAndroid Build Coastguard Worker    ],
1213*635a8641SAndroid Build Coastguard Worker    version: {
1214*635a8641SAndroid Build Coastguard Worker        py3: {
1215*635a8641SAndroid Build Coastguard Worker            embedded_launcher: true,
1216*635a8641SAndroid Build Coastguard Worker        },
1217*635a8641SAndroid Build Coastguard Worker    },
1218*635a8641SAndroid Build Coastguard Worker}
1219*635a8641SAndroid Build Coastguard Worker
1220*635a8641SAndroid Build Coastguard Workerpython_binary_host {
1221*635a8641SAndroid Build Coastguard Worker    name: "jni_registration_generator",
1222*635a8641SAndroid Build Coastguard Worker    main: "base/android/jni_generator/jni_registration_generator.py",
1223*635a8641SAndroid Build Coastguard Worker    srcs: [
1224*635a8641SAndroid Build Coastguard Worker        "base/android/jni_generator/jni_generator.py",
1225*635a8641SAndroid Build Coastguard Worker        "base/android/jni_generator/jni_registration_generator.py",
1226*635a8641SAndroid Build Coastguard Worker        "build/**/*.py",
1227*635a8641SAndroid Build Coastguard Worker    ],
1228*635a8641SAndroid Build Coastguard Worker    version: {
1229*635a8641SAndroid Build Coastguard Worker        py3: {
1230*635a8641SAndroid Build Coastguard Worker            embedded_launcher: true,
1231*635a8641SAndroid Build Coastguard Worker        },
1232*635a8641SAndroid Build Coastguard Worker    },
1233*635a8641SAndroid Build Coastguard Worker}
1234*635a8641SAndroid Build Coastguard Worker
1235*635a8641SAndroid Build Coastguard Workerpython_binary_host {
1236*635a8641SAndroid Build Coastguard Worker    name: "mojom_bindings_generator",
1237*635a8641SAndroid Build Coastguard Worker    main: "mojo/public/tools/bindings/mojom_bindings_generator.py",
1238*635a8641SAndroid Build Coastguard Worker    srcs: [
1239*635a8641SAndroid Build Coastguard Worker        "build/**/*.py",
1240*635a8641SAndroid Build Coastguard Worker        "mojo/public/tools/bindings/**/*.py",
1241*635a8641SAndroid Build Coastguard Worker        "third_party/jinja2/**/*.py",
1242*635a8641SAndroid Build Coastguard Worker        "third_party/markupsafe/**/*.py",
1243*635a8641SAndroid Build Coastguard Worker        "third_party/ply/**/*.py",
1244*635a8641SAndroid Build Coastguard Worker    ],
1245*635a8641SAndroid Build Coastguard Worker    data: [
1246*635a8641SAndroid Build Coastguard Worker        "mojo/public/tools/bindings/generators/cpp_templates/*.tmpl",
1247*635a8641SAndroid Build Coastguard Worker        "mojo/public/tools/bindings/generators/java_templates/*.tmpl",
1248*635a8641SAndroid Build Coastguard Worker        "mojo/public/tools/bindings/generators/js_templates/*.tmpl",
1249*635a8641SAndroid Build Coastguard Worker    ],
1250*635a8641SAndroid Build Coastguard Worker    version: {
1251*635a8641SAndroid Build Coastguard Worker        py3: {
1252*635a8641SAndroid Build Coastguard Worker            // TODO(b/174041232): Enable embedded_launcher
1253*635a8641SAndroid Build Coastguard Worker            embedded_launcher: false,
1254*635a8641SAndroid Build Coastguard Worker        },
1255*635a8641SAndroid Build Coastguard Worker    },
1256*635a8641SAndroid Build Coastguard Worker}
1257*635a8641SAndroid Build Coastguard Worker
1258*635a8641SAndroid Build Coastguard Workergenrule {
1259*635a8641SAndroid Build Coastguard Worker    name: "libmojo_mojom_templates",
1260*635a8641SAndroid Build Coastguard Worker    cmd: "$(location mojom_bindings_generator)" +
1261*635a8641SAndroid Build Coastguard Worker        "    --use_bundled_pylibs precompile" +
1262*635a8641SAndroid Build Coastguard Worker        "    -o $(genDir)",
1263*635a8641SAndroid Build Coastguard Worker
1264*635a8641SAndroid Build Coastguard Worker    tools: [
1265*635a8641SAndroid Build Coastguard Worker        "mojom_bindings_generator",
1266*635a8641SAndroid Build Coastguard Worker    ],
1267*635a8641SAndroid Build Coastguard Worker
1268*635a8641SAndroid Build Coastguard Worker    out: [
1269*635a8641SAndroid Build Coastguard Worker        "cpp_templates.zip",
1270*635a8641SAndroid Build Coastguard Worker        "java_templates.zip",
1271*635a8641SAndroid Build Coastguard Worker        "js_templates.zip",
1272*635a8641SAndroid Build Coastguard Worker    ],
1273*635a8641SAndroid Build Coastguard Worker}
1274*635a8641SAndroid Build Coastguard Worker
1275*635a8641SAndroid Build Coastguard Workerpython_binary_host {
1276*635a8641SAndroid Build Coastguard Worker    name: "mojom_generate_type_mappings",
1277*635a8641SAndroid Build Coastguard Worker    main: "libchrome_tools/mojom_generate_type_mappings.py",
1278*635a8641SAndroid Build Coastguard Worker    srcs: [
1279*635a8641SAndroid Build Coastguard Worker        "build/gn_helpers.py",
1280*635a8641SAndroid Build Coastguard Worker        "libchrome_tools/mojom_generate_type_mappings.py",
1281*635a8641SAndroid Build Coastguard Worker        "mojo/public/tools/bindings/generate_type_mappings.py",
1282*635a8641SAndroid Build Coastguard Worker        "mojo/public/tools/bindings/pylib/mojom/fileutil.py",
1283*635a8641SAndroid Build Coastguard Worker        "mojo/public/tools/bindings/pylib/mojom/generate/generator.py",
1284*635a8641SAndroid Build Coastguard Worker        "mojo/public/tools/bindings/pylib/mojom/generate/module.py",
1285*635a8641SAndroid Build Coastguard Worker        "mojo/public/tools/bindings/pylib/mojom/generate/pack.py",
1286*635a8641SAndroid Build Coastguard Worker    ],
1287*635a8641SAndroid Build Coastguard Worker    version: {
1288*635a8641SAndroid Build Coastguard Worker        py3: {
1289*635a8641SAndroid Build Coastguard Worker            // TODO(b/174041232): Enable embedded_launcher
1290*635a8641SAndroid Build Coastguard Worker            embedded_launcher: false,
1291*635a8641SAndroid Build Coastguard Worker        },
1292*635a8641SAndroid Build Coastguard Worker    },
1293*635a8641SAndroid Build Coastguard Worker}
1294*635a8641SAndroid Build Coastguard Worker
1295*635a8641SAndroid Build Coastguard Workergenrule {
1296*635a8641SAndroid Build Coastguard Worker    name: "libmojo_common_custom_types__type_mappings",
1297*635a8641SAndroid Build Coastguard Worker    cmd: "$(location mojom_generate_type_mappings)" +
1298*635a8641SAndroid Build Coastguard Worker        "    --output=$(out)" +
1299*635a8641SAndroid Build Coastguard Worker        "    $(in)",
1300*635a8641SAndroid Build Coastguard Worker
1301*635a8641SAndroid Build Coastguard Worker    tools: ["mojom_generate_type_mappings"],
1302*635a8641SAndroid Build Coastguard Worker
1303*635a8641SAndroid Build Coastguard Worker    srcs: [
1304*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/big_buffer.typemap",
1305*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/big_string.typemap",
1306*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/file.typemap",
1307*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/file_error.typemap",
1308*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/file_info.typemap",
1309*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/file_path.typemap",
1310*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/process_id.typemap",
1311*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/read_only_buffer.typemap",
1312*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/ref_counted_memory.typemap",
1313*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/shared_memory.typemap",
1314*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/string16.typemap",
1315*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/text_direction.typemap",
1316*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/thread_priority.typemap",
1317*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/time.typemap",
1318*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/unguessable_token.typemap",
1319*635a8641SAndroid Build Coastguard Worker        "mojo/public/cpp/base/values.typemap",
1320*635a8641SAndroid Build Coastguard Worker        "ui/gfx/geometry/mojo/geometry.typemap",
1321*635a8641SAndroid Build Coastguard Worker        "ui/gfx/range/mojo/range.typemap",
1322*635a8641SAndroid Build Coastguard Worker    ],
1323*635a8641SAndroid Build Coastguard Worker    out: ["common_custom_types__type_mappings"],
1324*635a8641SAndroid Build Coastguard Worker}
1325*635a8641SAndroid Build Coastguard Worker
1326*635a8641SAndroid Build Coastguard Workerpython_binary_host {
1327*635a8641SAndroid Build Coastguard Worker    name: "mojom_types_downgrader",
1328*635a8641SAndroid Build Coastguard Worker    main: "mojo/public/tools/bindings/mojom_types_downgrader.py",
1329*635a8641SAndroid Build Coastguard Worker    srcs: [
1330*635a8641SAndroid Build Coastguard Worker        "mojo/public/tools/bindings/mojom_types_downgrader.py",
1331*635a8641SAndroid Build Coastguard Worker    ],
1332*635a8641SAndroid Build Coastguard Worker    version: {
1333*635a8641SAndroid Build Coastguard Worker        py3: {
1334*635a8641SAndroid Build Coastguard Worker            embedded_launcher: true,
1335*635a8641SAndroid Build Coastguard Worker        },
1336*635a8641SAndroid Build Coastguard Worker    },
1337*635a8641SAndroid Build Coastguard Worker}
1338*635a8641SAndroid Build Coastguard Worker
1339*635a8641SAndroid Build Coastguard Workergenerate_mojom_downgraded_files {
1340*635a8641SAndroid Build Coastguard Worker    name: "libmojo_mojom_downgraded_files",
1341*635a8641SAndroid Build Coastguard Worker    srcs: [":libmojo_mojom_files"],
1342*635a8641SAndroid Build Coastguard Worker}
1343*635a8641SAndroid Build Coastguard Worker
1344*635a8641SAndroid Build Coastguard Workergenerate_mojom_pickles {
1345*635a8641SAndroid Build Coastguard Worker    name: "libmojo_mojom_pickles",
1346*635a8641SAndroid Build Coastguard Worker    srcs: [":libmojo_mojom_downgraded_files"],
1347*635a8641SAndroid Build Coastguard Worker}
1348*635a8641SAndroid Build Coastguard Worker
1349*635a8641SAndroid Build Coastguard Workergenerate_mojom_headers {
1350*635a8641SAndroid Build Coastguard Worker    name: "libmojo_mojom_headers",
1351*635a8641SAndroid Build Coastguard Worker    srcs: [":libmojo_mojom_downgraded_files"],
1352*635a8641SAndroid Build Coastguard Worker    pickles: [":libmojo_mojom_pickles"],
1353*635a8641SAndroid Build Coastguard Worker    templates: ":libmojo_mojom_templates",
1354*635a8641SAndroid Build Coastguard Worker    flags: "--disallow_native_types",
1355*635a8641SAndroid Build Coastguard Worker    typemaps: [":libmojo_common_custom_types__type_mappings"],
1356*635a8641SAndroid Build Coastguard Worker}
1357*635a8641SAndroid Build Coastguard Worker
1358*635a8641SAndroid Build Coastguard Workergenerate_mojom_srcs {
1359*635a8641SAndroid Build Coastguard Worker    name: "libmojo_mojom_srcs",
1360*635a8641SAndroid Build Coastguard Worker    srcs: [":libmojo_mojom_downgraded_files"],
1361*635a8641SAndroid Build Coastguard Worker    pickles: [":libmojo_mojom_pickles"],
1362*635a8641SAndroid Build Coastguard Worker    templates: ":libmojo_mojom_templates",
1363*635a8641SAndroid Build Coastguard Worker    flags: "--disallow_native_types",
1364*635a8641SAndroid Build Coastguard Worker    typemaps: [":libmojo_common_custom_types__type_mappings"],
1365*635a8641SAndroid Build Coastguard Worker}
1366*635a8641SAndroid Build Coastguard Worker
1367*635a8641SAndroid Build Coastguard Workergenrule {
1368*635a8641SAndroid Build Coastguard Worker    name: "libmojo_jni_headers",
1369*635a8641SAndroid Build Coastguard Worker    cmd: "$(location libchrome_tools/jni_generator_helper.sh)" +
1370*635a8641SAndroid Build Coastguard Worker        "    --jni_generator=$(location jni_generator)" +
1371*635a8641SAndroid Build Coastguard Worker        "    --output_dir=$(genDir)/jni" +
1372*635a8641SAndroid Build Coastguard Worker        "    --includes=base/android/jni_generator/jni_generator_helper.h" +
1373*635a8641SAndroid Build Coastguard Worker        "    --ptr_type=long" +
1374*635a8641SAndroid Build Coastguard Worker        "    $(in)",
1375*635a8641SAndroid Build Coastguard Worker
1376*635a8641SAndroid Build Coastguard Worker    tools: [
1377*635a8641SAndroid Build Coastguard Worker        "jni_generator",
1378*635a8641SAndroid Build Coastguard Worker    ],
1379*635a8641SAndroid Build Coastguard Worker
1380*635a8641SAndroid Build Coastguard Worker    tool_files: [
1381*635a8641SAndroid Build Coastguard Worker        "libchrome_tools/jni_generator_helper.sh",
1382*635a8641SAndroid Build Coastguard Worker    ],
1383*635a8641SAndroid Build Coastguard Worker
1384*635a8641SAndroid Build Coastguard Worker    srcs: [
1385*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/BuildInfo.java",
1386*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/ContentUriUtils.java",
1387*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/JavaExceptionReporter.java",
1388*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/PathUtils.java",
1389*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/SysUtils.java",
1390*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/ThreadUtils.java",
1391*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/BaseRunLoop.java",
1392*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/CoreImpl.java",
1393*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/WatcherImpl.java",
1394*635a8641SAndroid Build Coastguard Worker    ],
1395*635a8641SAndroid Build Coastguard Worker
1396*635a8641SAndroid Build Coastguard Worker    out: [
1397*635a8641SAndroid Build Coastguard Worker        "jni/BaseRunLoop_jni.h",
1398*635a8641SAndroid Build Coastguard Worker        "jni/BuildInfo_jni.h",
1399*635a8641SAndroid Build Coastguard Worker        "jni/ContentUriUtils_jni.h",
1400*635a8641SAndroid Build Coastguard Worker        "jni/CoreImpl_jni.h",
1401*635a8641SAndroid Build Coastguard Worker        "jni/JavaExceptionReporter_jni.h",
1402*635a8641SAndroid Build Coastguard Worker        "jni/PathUtils_jni.h",
1403*635a8641SAndroid Build Coastguard Worker        "jni/SysUtils_jni.h",
1404*635a8641SAndroid Build Coastguard Worker        "jni/WatcherImpl_jni.h",
1405*635a8641SAndroid Build Coastguard Worker    ],
1406*635a8641SAndroid Build Coastguard Worker}
1407*635a8641SAndroid Build Coastguard Worker
1408*635a8641SAndroid Build Coastguard Workergenrule {
1409*635a8641SAndroid Build Coastguard Worker    name: "libmojo_jni_registration_headers",
1410*635a8641SAndroid Build Coastguard Worker    cmd: "$(location libchrome_tools/jni_registration_generator_helper.sh)" +
1411*635a8641SAndroid Build Coastguard Worker        "    --jni_generator=$(location jni_registration_generator)" +
1412*635a8641SAndroid Build Coastguard Worker        "    --output=$(genDir)/jni/libmojo_jni_registrations.h" +
1413*635a8641SAndroid Build Coastguard Worker        "    $(in)",
1414*635a8641SAndroid Build Coastguard Worker
1415*635a8641SAndroid Build Coastguard Worker    tools: [
1416*635a8641SAndroid Build Coastguard Worker        "jni_registration_generator",
1417*635a8641SAndroid Build Coastguard Worker    ],
1418*635a8641SAndroid Build Coastguard Worker
1419*635a8641SAndroid Build Coastguard Worker    tool_files: [
1420*635a8641SAndroid Build Coastguard Worker        "libchrome_tools/jni_registration_generator_helper.sh",
1421*635a8641SAndroid Build Coastguard Worker    ],
1422*635a8641SAndroid Build Coastguard Worker
1423*635a8641SAndroid Build Coastguard Worker    srcs: [
1424*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/BuildInfo.java",
1425*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/JavaExceptionReporter.java",
1426*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/ThreadUtils.java",
1427*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/BaseRunLoop.java",
1428*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/CoreImpl.java",
1429*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/WatcherImpl.java",
1430*635a8641SAndroid Build Coastguard Worker    ],
1431*635a8641SAndroid Build Coastguard Worker
1432*635a8641SAndroid Build Coastguard Worker    out: [
1433*635a8641SAndroid Build Coastguard Worker        "jni/libmojo_jni_registrations.h",
1434*635a8641SAndroid Build Coastguard Worker    ],
1435*635a8641SAndroid Build Coastguard Worker}
1436*635a8641SAndroid Build Coastguard Worker
1437*635a8641SAndroid Build Coastguard Workercc_library_shared {
1438*635a8641SAndroid Build Coastguard Worker    name: "libmojo",
1439*635a8641SAndroid Build Coastguard Worker    vendor_available: true,
1440*635a8641SAndroid Build Coastguard Worker
1441*635a8641SAndroid Build Coastguard Worker    generated_sources: ["libmojo_mojom_srcs"],
1442*635a8641SAndroid Build Coastguard Worker    generated_headers: [
1443*635a8641SAndroid Build Coastguard Worker        "libmojo_jni_headers",
1444*635a8641SAndroid Build Coastguard Worker        "libmojo_jni_registration_headers",
1445*635a8641SAndroid Build Coastguard Worker        "libmojo_mojom_headers",
1446*635a8641SAndroid Build Coastguard Worker    ],
1447*635a8641SAndroid Build Coastguard Worker    export_generated_headers: [
1448*635a8641SAndroid Build Coastguard Worker        "libmojo_jni_registration_headers",
1449*635a8641SAndroid Build Coastguard Worker        "libmojo_mojom_headers",
1450*635a8641SAndroid Build Coastguard Worker    ],
1451*635a8641SAndroid Build Coastguard Worker
1452*635a8641SAndroid Build Coastguard Worker    srcs: [
1453*635a8641SAndroid Build Coastguard Worker        ":libmojo_mojo_sources",
1454*635a8641SAndroid Build Coastguard Worker        "base/android/build_info.cc",
1455*635a8641SAndroid Build Coastguard Worker        "base/android/java_exception_reporter.cc",
1456*635a8641SAndroid Build Coastguard Worker        "base/android/jni_android.cc",
1457*635a8641SAndroid Build Coastguard Worker        "base/android/jni_array.cc",
1458*635a8641SAndroid Build Coastguard Worker        "base/android/jni_string.cc",
1459*635a8641SAndroid Build Coastguard Worker        "base/android/scoped_java_ref.cc",
1460*635a8641SAndroid Build Coastguard Worker        "ipc/ipc_message.cc",
1461*635a8641SAndroid Build Coastguard Worker        "ipc/ipc_message_attachment.cc",
1462*635a8641SAndroid Build Coastguard Worker        "ipc/ipc_message_attachment_set.cc",
1463*635a8641SAndroid Build Coastguard Worker        "ipc/ipc_message_utils.cc",
1464*635a8641SAndroid Build Coastguard Worker        "ipc/ipc_mojo_handle_attachment.cc",
1465*635a8641SAndroid Build Coastguard Worker        "ipc/ipc_mojo_message_helper.cc",
1466*635a8641SAndroid Build Coastguard Worker        "ipc/ipc_mojo_param_traits.cc",
1467*635a8641SAndroid Build Coastguard Worker        "ipc/ipc_platform_file_attachment_posix.cc",
1468*635a8641SAndroid Build Coastguard Worker        "ipc/native_handle_type_converters.cc",
1469*635a8641SAndroid Build Coastguard Worker    ],
1470*635a8641SAndroid Build Coastguard Worker
1471*635a8641SAndroid Build Coastguard Worker    cflags: [
1472*635a8641SAndroid Build Coastguard Worker        "-DMOJO_CORE_LEGACY_PROTOCOL",
1473*635a8641SAndroid Build Coastguard Worker        "-Wall",
1474*635a8641SAndroid Build Coastguard Worker        "-Werror",
1475*635a8641SAndroid Build Coastguard Worker        "-Wno-missing-field-initializers",
1476*635a8641SAndroid Build Coastguard Worker        "-Wno-unused-parameter",
1477*635a8641SAndroid Build Coastguard Worker    ],
1478*635a8641SAndroid Build Coastguard Worker
1479*635a8641SAndroid Build Coastguard Worker    // We also pass NO_ASHMEM to make base::SharedMemory avoid using it and prefer
1480*635a8641SAndroid Build Coastguard Worker    // the POSIX versions.
1481*635a8641SAndroid Build Coastguard Worker    cppflags: [
1482*635a8641SAndroid Build Coastguard Worker        "-DNO_ASHMEM",
1483*635a8641SAndroid Build Coastguard Worker        "-Wno-extra",
1484*635a8641SAndroid Build Coastguard Worker        "-Wno-ignored-qualifiers",
1485*635a8641SAndroid Build Coastguard Worker        "-Wno-non-virtual-dtor",
1486*635a8641SAndroid Build Coastguard Worker        "-Wno-sign-promo",
1487*635a8641SAndroid Build Coastguard Worker    ],
1488*635a8641SAndroid Build Coastguard Worker
1489*635a8641SAndroid Build Coastguard Worker    shared_libs: [
1490*635a8641SAndroid Build Coastguard Worker        "libchrome",
1491*635a8641SAndroid Build Coastguard Worker        "libchrome-crypto",
1492*635a8641SAndroid Build Coastguard Worker        "libevent",
1493*635a8641SAndroid Build Coastguard Worker        "liblog",
1494*635a8641SAndroid Build Coastguard Worker    ],
1495*635a8641SAndroid Build Coastguard Worker
1496*635a8641SAndroid Build Coastguard Worker    header_libs: ["jni_headers"],
1497*635a8641SAndroid Build Coastguard Worker
1498*635a8641SAndroid Build Coastguard Worker    export_include_dirs: ["."],
1499*635a8641SAndroid Build Coastguard Worker}
1500*635a8641SAndroid Build Coastguard Worker
1501*635a8641SAndroid Build Coastguard Workergenerate_mojom_srcjar {
1502*635a8641SAndroid Build Coastguard Worker    name: "libmojo_mojom_java_srcs",
1503*635a8641SAndroid Build Coastguard Worker    srcs: [":libmojo_mojom_downgraded_files"],
1504*635a8641SAndroid Build Coastguard Worker    pickles: [":libmojo_mojom_pickles"],
1505*635a8641SAndroid Build Coastguard Worker    srcjar: "libmojo_mojom.srcjar",
1506*635a8641SAndroid Build Coastguard Worker    templates: ":libmojo_mojom_templates",
1507*635a8641SAndroid Build Coastguard Worker    flags: "--disallow_native_types",
1508*635a8641SAndroid Build Coastguard Worker    typemaps: [":libmojo_common_custom_types__type_mappings"],
1509*635a8641SAndroid Build Coastguard Worker}
1510*635a8641SAndroid Build Coastguard Worker
1511*635a8641SAndroid Build Coastguard Workerjava_library {
1512*635a8641SAndroid Build Coastguard Worker    name: "android.mojo",
1513*635a8641SAndroid Build Coastguard Worker
1514*635a8641SAndroid Build Coastguard Worker    srcs: [
1515*635a8641SAndroid Build Coastguard Worker        ":libmojo_mojom_java_srcs",
1516*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/BuildConfig.java",
1517*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/BuildInfo.java",
1518*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/ContextUtils.java",
1519*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/DiscardableReferencePool.java",
1520*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/JavaExceptionReporter.java",
1521*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/Log.java",
1522*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/PackageUtils.java",
1523*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/StrictModeContext.java",
1524*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/Supplier.java",
1525*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/ThreadUtils.java",
1526*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/TimezoneUtils.java",
1527*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/VisibleForTesting.java",
1528*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/annotations/AccessedByNative.java",
1529*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/annotations/CalledByNative.java",
1530*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/annotations/CalledByNativeUnchecked.java",
1531*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/annotations/JNIAdditionalImport.java",
1532*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/annotations/JNINamespace.java",
1533*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/annotations/MainDex.java",
1534*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/annotations/NativeCall.java",
1535*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/annotations/NativeClassQualifiedName.java",
1536*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/annotations/RemovableInRelease.java",
1537*635a8641SAndroid Build Coastguard Worker        "base/android/java/src/org/chromium/base/annotations/UsedByReflection.java",
1538*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/AssociatedInterfaceNotSupported.java",
1539*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/AssociatedInterfaceRequestNotSupported.java",
1540*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/AutoCloseableRouter.java",
1541*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/BindingsHelper.java",
1542*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/Callbacks.java",
1543*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/ConnectionErrorHandler.java",
1544*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/Connector.java",
1545*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/DataHeader.java",
1546*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java",
1547*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/DelegatingConnectionErrorHandler.java",
1548*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/DeserializationException.java",
1549*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java",
1550*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/ExceptionHandler.java",
1551*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/ExecutorFactory.java",
1552*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/HandleOwner.java",
1553*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/Interface.java",
1554*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/InterfaceControlMessagesHelper.java",
1555*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/InterfaceRequest.java",
1556*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/Message.java",
1557*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/MessageHeader.java",
1558*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/MessageReceiver.java",
1559*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/MessageReceiverWithResponder.java",
1560*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/Router.java",
1561*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/RouterImpl.java",
1562*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/SerializationException.java",
1563*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/ServiceMessage.java",
1564*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/SideEffectFreeCloseable.java",
1565*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/Struct.java",
1566*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/bindings/src/org/chromium/mojo/bindings/Union.java",
1567*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/Core.java",
1568*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/DataPipe.java",
1569*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/Flags.java",
1570*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/Handle.java",
1571*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/InvalidHandle.java",
1572*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/MessagePipeHandle.java",
1573*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/MojoException.java",
1574*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/MojoResult.java",
1575*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/Pair.java",
1576*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/ResultAnd.java",
1577*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/RunLoop.java",
1578*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/SharedBufferHandle.java",
1579*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/UntypedHandle.java",
1580*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/Watcher.java",
1581*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/BaseRunLoop.java",
1582*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/CoreImpl.java",
1583*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java",
1584*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java",
1585*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/HandleBase.java",
1586*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java",
1587*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.java",
1588*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/UntypedHandleImpl.java",
1589*635a8641SAndroid Build Coastguard Worker        "mojo/public/java/system/src/org/chromium/mojo/system/impl/WatcherImpl.java",
1590*635a8641SAndroid Build Coastguard Worker    ],
1591*635a8641SAndroid Build Coastguard Worker
1592*635a8641SAndroid Build Coastguard Worker    static_libs: [
1593*635a8641SAndroid Build Coastguard Worker        "android-support-annotations",
1594*635a8641SAndroid Build Coastguard Worker    ],
1595*635a8641SAndroid Build Coastguard Worker}
1596