Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 config("tools_config") { | 5 config("tools_config") { |
| 6 include_dirs = [ "src", "src/third_party" ] | 6 include_dirs = [ "src", "src/third_party" ] |
| 7 if (is_android) { | 7 if (is_android) { |
| 8 defines = [ "__ANDROID__" ] | 8 defines = [ "__ANDROID__" ] |
| 9 } | 9 } |
| 10 if (is_clang) { | 10 if (is_clang) { |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 220 sources = [ | 220 sources = [ |
| 221 "src/common/mac/HTTPMultipartUpload.m", | 221 "src/common/mac/HTTPMultipartUpload.m", |
| 222 "src/tools/mac/symupload/symupload.m", | 222 "src/tools/mac/symupload/symupload.m", |
| 223 ] | 223 ] |
| 224 | 224 |
| 225 include_dirs = [ | 225 include_dirs = [ |
| 226 "src/common/mac" | 226 "src/common/mac" |
| 227 ] | 227 ] |
| 228 | 228 |
| 229 libs = [ "Foundation.framework" ] | 229 libs = [ "Foundation.framework" ] |
| 230 | |
| 231 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 232 configs += [ "//build/config/compiler:no_chromium_code" ] | |
|
Nico
2014/11/20 17:45:38
Is there a way to mark all targets in this file as
| |
| 230 } | 233 } |
| 231 } | 234 } |
| 232 | 235 |
| 233 if (is_mac) { | 236 if (is_mac) { |
| 234 static_library("utilities") { | 237 static_library("utilities") { |
| 235 sources = [ | 238 sources = [ |
| 236 "src/client/mac/crash_generation/ConfigFile.mm", | 239 "src/client/mac/crash_generation/ConfigFile.mm", |
| 237 "src/client/mac/handler/breakpad_nlist_64.cc", | 240 "src/client/mac/handler/breakpad_nlist_64.cc", |
| 238 "src/client/mac/handler/dynamic_images.cc", | 241 "src/client/mac/handler/dynamic_images.cc", |
| 239 "src/client/mac/handler/minidump_generator.cc", | 242 "src/client/mac/handler/minidump_generator.cc", |
| 240 "src/client/minidump_file_writer.cc", | 243 "src/client/minidump_file_writer.cc", |
| 241 "src/common/convert_UTF.c", | 244 "src/common/convert_UTF.c", |
| 242 "src/common/mac/MachIPC.mm", | 245 "src/common/mac/MachIPC.mm", |
| 243 "src/common/mac/arch_utilities.cc", | 246 "src/common/mac/arch_utilities.cc", |
| 244 "src/common/mac/bootstrap_compat.cc", | 247 "src/common/mac/bootstrap_compat.cc", |
| 245 "src/common/mac/file_id.cc", | 248 "src/common/mac/file_id.cc", |
| 246 "src/common/mac/launch_reporter.cc", | 249 "src/common/mac/launch_reporter.cc", |
| 247 "src/common/mac/macho_id.cc", | 250 "src/common/mac/macho_id.cc", |
| 248 "src/common/mac/macho_utilities.cc", | 251 "src/common/mac/macho_utilities.cc", |
| 249 "src/common/mac/macho_walker.cc", | 252 "src/common/mac/macho_walker.cc", |
| 250 "src/common/mac/string_utilities.cc", | 253 "src/common/mac/string_utilities.cc", |
| 251 "src/common/md5.cc", | 254 "src/common/md5.cc", |
| 252 "src/common/simple_string_dictionary.cc", | 255 "src/common/simple_string_dictionary.cc", |
| 253 "src/common/string_conversion.cc", | 256 "src/common/string_conversion.cc", |
| 254 ] | 257 ] |
| 255 | 258 |
| 256 configs += [ ":internal_config" ] | 259 configs += [ ":internal_config" ] |
| 257 | 260 |
| 258 # TODO(GYP): TODO(dpranke): Fix the compile for this. | 261 # There are some warnings in this code. |
| 259 sources -= [ | 262 configs -= [ "//build/config/compiler:chromium_code" ] |
| 260 "src/client/mac/handler/dynamic_images.cc", | 263 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 261 ] | |
| 262 } | 264 } |
| 263 | 265 |
| 264 executable("crash_inspector") { | 266 executable("crash_inspector") { |
| 265 sources = [ | 267 sources = [ |
| 266 "src/client/mac/crash_generation/Inspector.mm", | 268 "src/client/mac/crash_generation/Inspector.mm", |
| 267 "src/client/mac/crash_generation/InspectorMain.mm", | 269 "src/client/mac/crash_generation/InspectorMain.mm", |
| 268 ] | 270 ] |
| 269 | 271 |
| 270 # TODO(GYP): 'mac_real_dsym': 1, | 272 # TODO(GYP): 'mac_real_dsym': 1, |
| 271 | 273 |
| 272 include_dirs = [ | 274 include_dirs = [ |
| 273 "src/client/apple/Framework", | 275 "src/client/apple/Framework", |
| 274 "src/common/mac", | 276 "src/common/mac", |
| 275 "src", | 277 "src", |
| 276 ] | 278 ] |
| 277 libs = [ | 279 libs = [ |
| 278 "CoreServices.framework", | 280 "CoreServices.framework", |
| 279 "Foundation.framework", | 281 "Foundation.framework", |
| 280 ] | 282 ] |
| 281 | 283 |
| 282 deps = [ | 284 deps = [ |
| 283 ":utilities" | 285 ":utilities" |
| 284 ] | 286 ] |
| 285 } | 287 } |
| 286 | 288 |
| 287 # TODO(GYP) this target has some mac_bundle_resources stuff. | 289 # TODO(GYP) this target has some mac_bundle_resources stuff. |
| 288 # executable("crash_report_sender") { | 290 # executable("crash_report_sender") { |
| 289 # } | 291 # } |
| 292 group("crash_report_sender") { | |
| 293 } | |
| 290 | 294 |
| 291 config("breakpad_config") { | 295 config("breakpad_config") { |
| 292 include_dirs = [ "src/client/apple/Framework" ] | 296 include_dirs = [ "src/client/apple/Framework" ] |
| 293 } | 297 } |
| 294 | 298 |
| 295 static_library("breakpad") { | 299 static_library("breakpad") { |
| 296 sources = [ | 300 sources = [ |
| 297 "src/client/mac/crash_generation/crash_generation_client.cc", | 301 "src/client/mac/crash_generation/crash_generation_client.cc", |
| 298 "src/client/mac/crash_generation/crash_generation_client.h", | 302 "src/client/mac/crash_generation/crash_generation_client.h", |
| 299 "src/client/mac/handler/protected_memory_allocator.cc", | 303 "src/client/mac/handler/protected_memory_allocator.cc", |
| 300 "src/client/mac/handler/exception_handler.cc", | 304 "src/client/mac/handler/exception_handler.cc", |
| 301 "src/client/mac/Framework/Breakpad.mm", | 305 "src/client/mac/Framework/Breakpad.mm", |
| 302 "src/client/mac/Framework/OnDemandServer.mm", | 306 "src/client/mac/Framework/OnDemandServer.mm", |
| 303 ] | 307 ] |
| 304 | 308 |
| 305 configs += [ ":internal_config" ] | 309 configs += [ ":internal_config" ] |
| 306 public_configs = [ ":breakpad_config" ] | 310 public_configs = [ ":breakpad_config" ] |
| 307 | 311 |
| 308 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ] | 312 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ] |
| 309 include_dirs = [ | 313 include_dirs = [ |
| 310 "src/client/apple/Framework", | 314 "src/client/apple/Framework", |
| 311 ] | 315 ] |
| 312 | 316 |
| 313 deps = [ | 317 deps = [ |
| 314 ":utilities", | 318 ":utilities", |
| 315 ":crash_inspector", | 319 ":crash_inspector", |
| 316 # TODO(GYP): Make this link | 320 ":crash_report_sender", |
| 317 #":crash_report_sender", | |
| 318 ] | 321 ] |
| 319 } | 322 } |
| 320 | 323 |
| 321 group("client") { | 324 group("client") { |
| 322 public_configs = [ ":client_config" ] | 325 public_configs = [ ":client_config" ] |
| 323 } | 326 } |
| 324 } | 327 } |
| 325 | 328 |
| 326 if (is_linux) { | 329 if (is_linux) { |
| 327 executable("symupload") { | 330 executable("symupload") { |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 718 "src/client/windows/handler/exception_handler.h", | 721 "src/client/windows/handler/exception_handler.h", |
| 719 "src/common/windows/guid_string.cc", | 722 "src/common/windows/guid_string.cc", |
| 720 "src/common/windows/guid_string.h", | 723 "src/common/windows/guid_string.h", |
| 721 "src/google_breakpad/common/minidump_format.h", | 724 "src/google_breakpad/common/minidump_format.h", |
| 722 "src/client/windows/crash_generation/minidump_generator.cc", | 725 "src/client/windows/crash_generation/minidump_generator.cc", |
| 723 "src/client/windows/crash_generation/minidump_generator.h", | 726 "src/client/windows/crash_generation/minidump_generator.h", |
| 724 "src/common/windows/string_utils-inl.h", | 727 "src/common/windows/string_utils-inl.h", |
| 725 ] | 728 ] |
| 726 } | 729 } |
| 727 } | 730 } |
| OLD | NEW |