Skip to content

Commit

Permalink
Update to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2
Browse files Browse the repository at this point in the history
  • Loading branch information
abarth committed Jul 17, 2015
1 parent 7469cc3 commit 21dd755
Show file tree
Hide file tree
Showing 1,104 changed files with 118,865 additions and 73,344 deletions.
32 changes: 32 additions & 0 deletions bar.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
commit 2f12ff08cc9215273040893a9b6c2b3fabccfb6b
Author: Adam Barth <[email protected]>
Date: Thu Jul 16 18:00:01 2015 -0700

Cherry-pick build fix from Mojo

diff --git a/services/android/rules.gni b/services/android/rules.gni
index 350b421..c2c286b 100644
--- a/services/android/rules.gni
+++ b/services/android/rules.gni
@@ -44,6 +44,10 @@ template("mojo_android_java_application") {
action(android_with_manifest_name) {
script = "${servicess_android_path}/add_manifest_entry.py"

+ deps = [
+ ":$android_standalone_name"
+ ]
+
input = dex_output_path
inputs = [
input,
@@ -74,6 +78,10 @@ template("mojo_android_java_application") {
action(target_name) {
script = rebase_path("mojo/public/tools/prepend.py", ".", mojo_root)

+ deps = [
+ ":$android_with_manifest_name"
+ ]
+
input = dex_with_manifest_output_path
inputs = [
input,
157 changes: 136 additions & 21 deletions base/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ source_set("base_paths") {
"base_paths_win.h",
]

if (is_android || is_mac) {
if (is_android || is_mac || is_ios) {
sources -= [ "base_paths_posix.cc" ]
}

Expand Down Expand Up @@ -83,6 +83,7 @@ component("base") {
"android/content_uri_utils.cc",
"android/content_uri_utils.h",
"android/cpu_features.cc",
"android/cxa_demangle_stub.cc",
"android/event_log.cc",
"android/event_log.h",
"android/field_trial_list.cc",
Expand Down Expand Up @@ -139,11 +140,8 @@ component("base") {
"atomic_ref_count.h",
"atomic_sequence_num.h",
"atomicops.h",
"atomicops_internals_gcc.h",
"atomicops_internals_mac.h",
"atomicops_internals_portable.h",
"atomicops_internals_x86_gcc.cc",
"atomicops_internals_x86_gcc.h",
"atomicops_internals_x86_msvc.h",
"auto_reset.h",
"barrier_closure.cc",
Expand Down Expand Up @@ -177,6 +175,7 @@ component("base") {
"containers/linked_list.h",
"containers/mru_cache.h",
"containers/scoped_ptr_hash_map.h",
"containers/scoped_ptr_map.h",
"containers/small_map.h",
"containers/stack_container.h",
"cpu.cc",
Expand Down Expand Up @@ -270,6 +269,9 @@ component("base") {
"mac/bind_objc_block.h",
"mac/bundle_locations.h",
"mac/bundle_locations.mm",
"mac/call_with_eh_frame.cc",
"mac/call_with_eh_frame.h",
"mac/call_with_eh_frame_asm.S",
"mac/cocoa_protocols.h",
"mac/dispatch_source_mach.cc",
"mac/dispatch_source_mach.h",
Expand Down Expand Up @@ -320,10 +322,8 @@ component("base") {
"message_loop/incoming_task_queue.h",
"message_loop/message_loop.cc",
"message_loop/message_loop.h",
"message_loop/message_loop_proxy.cc",
"message_loop/message_loop_proxy.h",
"message_loop/message_loop_proxy_impl.cc",
"message_loop/message_loop_proxy_impl.h",
"message_loop/message_loop_task_runner.cc",
"message_loop/message_loop_task_runner.h",
"message_loop/message_pump.cc",
"message_loop/message_pump.h",
"message_loop/message_pump_android.cc",
Expand Down Expand Up @@ -366,7 +366,6 @@ component("base") {
"pending_task.h",
"pickle.cc",
"pickle.h",
"port.h",
"posix/eintr_wrapper.h",
"posix/file_descriptor_shuffle.cc",
"posix/global_descriptors.cc",
Expand Down Expand Up @@ -429,6 +428,8 @@ component("base") {
"strings/latin1_string_conversions.h",
"strings/nullable_string16.cc",
"strings/nullable_string16.h",
"strings/pattern.cc",
"strings/pattern.h",
"strings/safe_sprintf.cc",
"strings/safe_sprintf.h",
"strings/string16.cc",
Expand Down Expand Up @@ -644,6 +645,8 @@ component("base") {
"sys_info_openbsd.cc",
]

data = []

configs += [ ":base_implementation" ]

deps = [
Expand Down Expand Up @@ -748,6 +751,30 @@ component("base") {
"sha1_win.cc",
]

# Required for base/stack_trace_win.cc to symbolize correctly.
data += [ "$root_build_dir/dbghelp.dll" ]

if (is_component_build) {
# Copy the VS runtime DLLs into the isolate so that they don't have to be
# preinstalled on the target machine. The debug runtimes have a "d" at
# the end.
if (is_debug) {
vcrt_suffix = "d"
} else {
vcrt_suffix = ""
}

# These runtime files are copied to the output directory by the
# vs_toolchain script that runs as part of toolchain configuration.
data += [
"$root_out_dir/msvcp120${vcrt_suffix}.dll",
"$root_out_dir/msvcr120${vcrt_suffix}.dll",
]
if (is_asan) {
data += [ "//third_party/llvm-build/Release+Asserts/lib/clang/3.7.0/lib/windows/clang_rt.asan_dynamic-i386.dll" ]
}
}

# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]

Expand All @@ -764,12 +791,25 @@ component("base") {
}

# Mac.
if (is_mac) {
if (is_mac || is_ios) {
# Common Desktop / iOS excludes
sources -= [
"native_library_posix.cc",
"strings/sys_string_conversions_posix.cc",
"threading/platform_thread_internal_posix.cc",
]

if (is_asan) {
# TODO(GYP) hook up asan on Mac. GYP has this extra dylib:
#data += [ "$root_out_dir/libclang_rt.asan_osx_dynamic.dylib" ]
}

if (is_ios) {
sources -= [
"files/file_path_watcher_fsevents.cc",
"files/file_path_watcher_fsevents.h",
]
}
} else {
# Non-Mac.
sources -= [
Expand All @@ -782,6 +822,11 @@ component("base") {

# Linux.
if (is_linux) {
if (is_asan || is_lsan || is_msan || is_tsan) {
# For llvm-sanitizer.
data += [ "//third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6" ]
}

# TODO(brettw) this will need to be parameterized at some point.
linux_configs = []
if (use_glib) {
Expand Down Expand Up @@ -814,15 +859,67 @@ component("base") {
}
}

# iOS
if (is_ios) {
set_sources_assignment_filter([])

sources += [
"atomicops_internals_mac.h",
"base_paths_mac.h",
"base_paths_mac.mm",
"file_version_info_mac.h",
"file_version_info_mac.mm",
"files/file_util_mac.mm",
"mac/bundle_locations.h",
"mac/bundle_locations.mm",
"mac/call_with_eh_frame.cc",
"mac/call_with_eh_frame.h",
"mac/foundation_util.h",
"mac/foundation_util.mm",
"mac/mac_logging.cc",
"mac/mac_logging.h",
"mac/mach_logging.cc",
"mac/mach_logging.h",
"mac/objc_property_releaser.h",
"mac/objc_property_releaser.mm",
"mac/scoped_mach_port.cc",
"mac/scoped_mach_port.h",
"mac/scoped_mach_vm.cc",
"mac/scoped_mach_vm.h",
"mac/scoped_nsautorelease_pool.h",
"mac/scoped_nsautorelease_pool.mm",
"mac/scoped_nsobject.h",
"mac/scoped_objc_class_swizzler.h",
"mac/scoped_objc_class_swizzler.mm",
"message_loop/message_pump_mac.h",
"message_loop/message_pump_mac.mm",
"strings/sys_string_conversions_mac.mm",
"threading/platform_thread_mac.mm",
"time/time_mac.cc",
]

set_sources_assignment_filter(sources_assignment_filter)
}

if (!use_glib) {
sources -= [
"message_loop/message_pump_glib.cc",
"message_loop/message_pump_glib.h",
]
}

if (is_asan || is_lsan || is_msan || is_tsan) {
data += [ "//tools/valgrind/asan/" ]
if (is_win) {
data +=
[ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer.exe" ]
} else {
data += [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer" ]
}
}

configs += [ "//build/config/compiler:wexit_time_destructors" ]
if (is_android && !is_debug) {
if (!is_debug) {
configs -= [ "//build/config/compiler:optimize" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
Expand All @@ -841,7 +938,7 @@ source_set("base_static") {
"win/pe_image.h",
]

if (is_android && !is_debug) {
if (!is_debug) {
configs -= [ "//build/config/compiler:optimize" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
Expand Down Expand Up @@ -894,7 +991,7 @@ component("i18n") {
"//third_party/icu",
]

if (is_android && !is_debug) {
if (!is_debug) {
configs -= [ "//build/config/compiler:optimize" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
Expand Down Expand Up @@ -1006,7 +1103,7 @@ component("prefs") {
":base",
]

if (is_android && !is_debug) {
if (!is_debug) {
configs -= [ "//build/config/compiler:optimize" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
Expand Down Expand Up @@ -1067,6 +1164,15 @@ if (is_win) {
}
}

# TODO(GYP): Delete this after we've converted everything to GN.
# The _run targets exist only for compatibility w/ GYP.
group("base_unittests_run") {
testonly = true
deps = [
":base_unittests",
]
}

test("base_unittests") {
sources = [
"android/application_status_listener_unittest.cc",
Expand Down Expand Up @@ -1100,6 +1206,7 @@ test("base_unittests") {
"containers/linked_list_unittest.cc",
"containers/mru_cache_unittest.cc",
"containers/scoped_ptr_hash_map_unittest.cc",
"containers/scoped_ptr_map_unittest.cc",
"containers/small_map_unittest.cc",
"containers/stack_container_unittest.cc",
"cpu_unittest.cc",
Expand Down Expand Up @@ -1147,6 +1254,7 @@ test("base_unittests") {
"lazy_instance_unittest.cc",
"logging_unittest.cc",
"mac/bind_objc_block_unittest.mm",
"mac/call_with_eh_frame_unittest.mm",
"mac/dispatch_source_mach_unittest.cc",
"mac/foundation_util_unittest.mm",
"mac/libdispatch_task_runner_unittest.cc",
Expand All @@ -1170,8 +1278,7 @@ test("base_unittests") {
"memory/singleton_unittest.cc",
"memory/weak_ptr_unittest.cc",
"memory/weak_ptr_unittest.nc",
"message_loop/message_loop_proxy_impl_unittest.cc",
"message_loop/message_loop_proxy_unittest.cc",
"message_loop/message_loop_task_runner_unittest.cc",
"message_loop/message_loop_unittest.cc",
"message_loop/message_pump_glib_unittest.cc",
"message_loop/message_pump_io_ios_unittest.cc",
Expand Down Expand Up @@ -1223,6 +1330,7 @@ test("base_unittests") {
"sha1_unittest.cc",
"stl_util_unittest.cc",
"strings/nullable_string16_unittest.cc",
"strings/pattern_unittest.cc",
"strings/safe_sprintf_unittest.cc",
"strings/string16_unittest.cc",
"strings/string_number_conversions_unittest.cc",
Expand Down Expand Up @@ -1318,9 +1426,6 @@ test("base_unittests") {

data = [
"test/data/",

# TODO(dpranke): Remove when icu declares this directly.
"$root_out_dir/icudtl.dat",
]

# Allow more direct string conversions on platforms with native utf8
Expand All @@ -1334,14 +1439,15 @@ test("base_unittests") {
":base_java",
":base_java_unittest_support",
]

# TODO(brettw) I think this should not be here, we should not be using
# isolate files.
isolate_file = "base_unittests.isolate"
}

if (is_ios) {
sources -= [
"process/memory_unittest.cc",
"process/memory_unittest_mac.h",
"process/memory_unittest_mac.mm",
"process/process_unittest.cc",
"process/process_util_unittest.cc",
]
Expand Down Expand Up @@ -1389,6 +1495,15 @@ test("base_unittests") {

# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]

# Symbols for crashes when running tests on swarming.
if (symbol_level > 0) {
if (is_win) {
data += [ "$root_out_dir/base_unittests.exe.pdb" ]
} else if (is_mac) {
data += [ "$root_out_dir/base_unittests.dSYM/" ]
}
}
}

if (is_android) {
Expand Down
Loading

0 comments on commit 21dd755

Please sign in to comment.