blob: 4d1b6bd1094afae4c3b12d0ae069874b9c211080 [file] [log] [blame]
Arman Uguray0ca99052015-07-07 17:00:09 -07001#
2# Copyright (C) 2015 Google, Inc.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at:
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17source_set("base_sources") {
18 sources = [
19 "base/allocator/type_profiler_control.cc",
20 "base/at_exit.cc",
21 "base/atomic_ref_count.h",
22 "base/atomic_sequence_num.h",
23 "base/atomicops.h",
24 "base/atomicops_internals_x86_gcc.cc",
25 "base/base64.cc",
26 "base/base64.h",
27 "base/base_export.h",
28 "base/base_switches.cc",
29 "base/bind_helpers.cc",
30 "base/build_time.cc",
31 "base/callback_helpers.cc",
32 "base/callback_internal.cc",
33 "base/command_line.cc",
34 "base/cpu.cc",
35 "base/debug/alias.cc",
36 "base/debug/debugger.cc",
37 "base/debug/debugger_posix.cc",
38 "base/debug/stack_trace.cc",
39 "base/debug/stack_trace_posix.cc",
40 "base/debug/task_annotator.cc",
41 "base/environment.cc",
42 "base/files/file.cc",
43 "base/files/file_enumerator.cc",
44 "base/files/file_enumerator_posix.cc",
45 "base/files/file_path.cc",
46 "base/files/file_path_constants.cc",
47 "base/files/file_path_watcher.cc",
48 "base/files/file_path_watcher_linux.cc",
49 "base/files/file_posix.cc",
50 "base/files/file_tracing.cc",
51 "base/files/file_util.cc",
52 "base/files/file_util_linux.cc",
53 "base/files/file_util_posix.cc",
54 "base/files/important_file_writer.cc",
55 "base/files/scoped_file.cc",
56 "base/files/scoped_temp_dir.cc",
57 "base/guid.cc",
58 "base/guid_posix.cc",
59 "base/hash.cc",
60 "base/json/json_parser.cc",
61 "base/json/json_reader.cc",
62 "base/json/json_string_value_serializer.cc",
63 "base/json/json_writer.cc",
64 "base/json/string_escape.cc",
65 "base/lazy_instance.cc",
66 "base/location.cc",
67 "base/logging.cc",
68 "base/md5.cc",
69 "base/memory/ref_counted.cc",
70 "base/memory/ref_counted_memory.cc",
71 "base/memory/singleton.cc",
72 "base/memory/weak_ptr.cc",
73 "base/message_loop/incoming_task_queue.cc",
74 "base/message_loop/message_loop.cc",
75 "base/message_loop/message_loop_proxy.cc",
76 "base/message_loop/message_loop_proxy_impl.cc",
77 "base/message_loop/message_pump.cc",
78 "base/message_loop/message_pump_default.cc",
79 "base/message_loop/message_pump_libevent.cc",
80 "base/metrics/bucket_ranges.cc",
81 "base/metrics/field_trial.cc",
82 "base/metrics/histogram_base.cc",
83 "base/metrics/histogram.cc",
84 "base/metrics/histogram_samples.cc",
85 "base/metrics/histogram_snapshot_manager.cc",
86 "base/metrics/sample_map.cc",
87 "base/metrics/sample_vector.cc",
88 "base/metrics/sparse_histogram.cc",
89 "base/metrics/statistics_recorder.cc",
90 "base/pending_task.cc",
91 "base/pickle.cc",
92 "base/posix/file_descriptor_shuffle.cc",
93 "base/posix/safe_strerror.cc",
94 "base/posix/unix_domain_socket_linux.cc",
95 "base/process/internal_linux.cc",
96 "base/process/kill.cc",
97 "base/process/kill_posix.cc",
98 "base/process/launch.cc",
99 "base/process/launch_posix.cc",
100 "base/process/process_handle_linux.cc",
101 "base/process/process_handle_posix.cc",
102 "base/process/process_iterator.cc",
103 "base/process/process_iterator_linux.cc",
104 "base/process/process_metrics.cc",
105 "base/process/process_metrics_linux.cc",
106 "base/process/process_metrics_posix.cc",
107 "base/process/process_posix.cc",
108 "base/profiler/alternate_timer.cc",
109 "base/profiler/scoped_profile.cc",
110 "base/profiler/scoped_tracker.cc",
111 "base/profiler/tracked_time.cc",
112 "base/rand_util.cc",
113 "base/rand_util_posix.cc",
114 "base/run_loop.cc",
115 "base/sequence_checker_impl.cc",
116 "base/sequenced_task_runner.cc",
117 "base/sha1_portable.cc",
118 "base/strings/safe_sprintf.cc",
119 "base/strings/string16.cc",
120 "base/strings/string_number_conversions.cc",
121 "base/strings/string_piece.cc",
122 "base/strings/stringprintf.cc",
123 "base/strings/string_split.cc",
124 "base/strings/string_util.cc",
125 "base/strings/string_util_constants.cc",
126 "base/strings/sys_string_conversions_posix.cc",
127 "base/strings/utf_string_conversions.cc",
128 "base/strings/utf_string_conversion_utils.cc",
129 "base/synchronization/cancellation_flag.cc",
130 "base/synchronization/condition_variable_posix.cc",
131 "base/synchronization/lock.cc",
132 "base/synchronization/lock_impl_posix.cc",
133 "base/synchronization/waitable_event_posix.cc",
134 "base/sync_socket_posix.cc",
135 "base/sys_info.cc",
136 # TODO(armansito): For our GN builds these platform-specific implementations
137 # don't really make that much sense but instead of removing the line I'm
138 # commenting it out in case we want to re-add it later (it's included in the
139 # libchrome Android.mk).
140 #"sys_info_chromeos.cc",
141 "base/sys_info_linux.cc",
142 "base/sys_info_posix.cc",
143 "base/task/cancelable_task_tracker.cc",
144 "base/task_runner.cc",
145 "base/third_party/dmg_fp/dtoa.cc",
146 "base/third_party/dmg_fp/g_fmt.cc",
147 "base/third_party/dynamic_annotations/dynamic_annotations.c",
148 "base/third_party/icu/icu_utf.cc",
149 "base/third_party/nspr/prtime.cc",
150 "base/third_party/superfasthash/superfasthash.c",
151 "base/threading/non_thread_safe_impl.cc",
152 "base/threading/platform_thread_internal_posix.cc",
153 "base/threading/platform_thread_linux.cc",
154 "base/threading/platform_thread_posix.cc",
155 "base/threading/post_task_and_reply_impl.cc",
156 "base/threading/sequenced_worker_pool.cc",
157 "base/threading/simple_thread.cc",
158 "base/threading/thread.cc",
159 "base/threading/thread_checker_impl.cc",
160 "base/threading/thread_collision_warner.cc",
161 "base/threading/thread_id_name_manager.cc",
162 "base/threading/thread_local_posix.cc",
163 "base/threading/thread_local_storage.cc",
164 "base/threading/thread_local_storage_posix.cc",
165 "base/threading/thread_restrictions.cc",
166 "base/threading/worker_pool.cc",
167 "base/threading/worker_pool_posix.cc",
168 "base/thread_task_runner_handle.cc",
169 "base/time/clock.cc",
170 "base/time/default_clock.cc",
171 "base/time/default_tick_clock.cc",
172 "base/timer/elapsed_timer.cc",
173 "base/timer/timer.cc",
174 "base/time/tick_clock.cc",
175 "base/time/time.cc",
176 "base/time/time_posix.cc",
177 "base/trace_event/malloc_dump_provider.cc",
178 "base/trace_event/memory_allocator_dump.cc",
179 "base/trace_event/memory_allocator_dump_guid.cc",
180 "base/trace_event/memory_dump_manager.cc",
181 "base/trace_event/memory_dump_session_state.cc",
182 "base/trace_event/process_memory_dump.cc",
183 "base/trace_event/process_memory_maps.cc",
184 "base/trace_event/process_memory_maps_dump_provider.cc",
185 "base/trace_event/process_memory_totals.cc",
186 "base/trace_event/process_memory_totals_dump_provider.cc",
187 "base/trace_event/trace_config.cc",
188 "base/trace_event/trace_event_argument.cc",
189 "base/trace_event/trace_event_impl.cc",
190 "base/trace_event/trace_event_impl_constants.cc",
191 "base/trace_event/trace_event_memory.cc",
192 "base/trace_event/trace_event_memory_overhead.cc",
193 "base/trace_event/trace_event_synthetic_delay.cc",
194 "base/tracked_objects.cc",
195 "base/tracking_info.cc",
196 "base/values.cc",
197 "base/vlog.cc",
198 ]
199
200 defines = [ "BASE_IMPLEMENTATION" ]
201
202 include_dirs = [
203 "//",
204 "//third_party/libchrome",
205 "//third_party/libchrome/base",
206 "//third_party/modp_b64",
207 ]
208}
209
210static_library("base") {
211 deps = [
212 ":base_sources",
213 ]
214
215 cflags = [
216 "-Wno-char-subscripts",
217 "-Wno-missing-field-initializers",
218 "-Wno-unused-function",
219 "-Wno-unused_parameter",
220 ]
221 cflags_cc = [
222 "-Wno-deprecated-register",
223 "-Wno-non-virtual-dtor",
224 "-Wno-sign-promo",
225 ]
226
Arman Ugurayf2d64342015-07-08 15:47:39 -0700227 libs = [ "-levent", "-levent_core", "-lpthread" ]
Arman Uguray0ca99052015-07-07 17:00:09 -0700228}