| 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) { |
| 11 cflags = [ "-Wno-tautological-constant-out-of-range-compare" ] | 11 cflags = [ "-Wno-tautological-constant-out-of-range-compare" ] |
| 12 } | 12 } |
| 13 } | 13 } |
| 14 | 14 |
| 15 config("internal_config") { | 15 config("internal_config") { |
| 16 include_dirs = [ "src" ] | 16 include_dirs = [ "src" ] |
| 17 defines = [] | 17 defines = [] |
| 18 if (is_debug) { | 18 if (is_debug) { |
| 19 # This is needed for GTMLogger to work correctly. | 19 # This is needed for GTMLogger to work correctly. |
| 20 defines += [ "DEBUG" ] | 20 defines += [ "DEBUG" ] |
| 21 } | 21 } |
| 22 if (is_android) { | 22 if (is_android) { |
| 23 defines += [ "__ANDROID__" ] | 23 defines += [ "__ANDROID__" ] |
| 24 } | 24 } |
| 25 } | 25 } |
| 26 | 26 |
| 27 config("client_config") { |
| 28 include_dirs = [ "src" ] |
| 29 if (is_android) { |
| 30 include_dirs += [ "src/common/android/include" ] |
| 31 } |
| 32 } |
| 33 |
| 34 |
| 27 # minidump_stackwalk and minidump_dump are tool-type executables that do | 35 # minidump_stackwalk and minidump_dump are tool-type executables that do |
| 28 # not build on iOS. | 36 # not build on iOS. |
| 29 if (current_toolchain == host_toolchain && !is_win) { | 37 if (current_toolchain == host_toolchain && !is_win) { |
| 30 executable("minidump_stackwalk") { | 38 executable("minidump_stackwalk") { |
| 31 sources = [ | 39 sources = [ |
| 32 "src/processor/basic_code_module.h", | 40 "src/processor/basic_code_module.h", |
| 33 "src/processor/basic_code_modules.cc", | 41 "src/processor/basic_code_modules.cc", |
| 34 "src/processor/basic_code_modules.h", | 42 "src/processor/basic_code_modules.h", |
| 35 "src/processor/basic_source_line_resolver.cc", | 43 "src/processor/basic_source_line_resolver.cc", |
| 36 "src/processor/binarystream.cc", | 44 "src/processor/binarystream.cc", |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 "src/client/mac/crash_generation/ConfigFile.mm", | 242 "src/client/mac/crash_generation/ConfigFile.mm", |
| 235 "src/client/mac/crash_generation/Inspector.mm", | 243 "src/client/mac/crash_generation/Inspector.mm", |
| 236 "src/client/mac/crash_generation/InspectorMain.mm", | 244 "src/client/mac/crash_generation/InspectorMain.mm", |
| 237 ] | 245 ] |
| 238 | 246 |
| 239 # TODO(GYP): 'mac_real_dsym': 1, | 247 # TODO(GYP): 'mac_real_dsym': 1, |
| 240 | 248 |
| 241 include_dirs = [ | 249 include_dirs = [ |
| 242 "src/client/apple/Framework", | 250 "src/client/apple/Framework", |
| 243 "src/common/mac", | 251 "src/common/mac", |
| 252 "src", |
| 244 ] | 253 ] |
| 245 libs = [ | 254 libs = [ |
| 246 "CoreServices.framework", | 255 "CoreServices.framework", |
| 247 "Foundation.framework", | 256 "Foundation.framework", |
| 248 ] | 257 ] |
| 249 | 258 |
| 250 deps = [ | 259 deps = [ |
| 251 ":utilities" | 260 ":utilities" |
| 252 ] | 261 ] |
| 253 } | 262 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 274 direct_dependent_configs = [ ":breakpad_config" ] | 283 direct_dependent_configs = [ ":breakpad_config" ] |
| 275 | 284 |
| 276 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ] | 285 defines = [ "USE_PROTECTED_ALLOCATIONS=1" ] |
| 277 include_dirs = [ | 286 include_dirs = [ |
| 278 "src/client/apple/Framework", | 287 "src/client/apple/Framework", |
| 279 ] | 288 ] |
| 280 | 289 |
| 281 deps = [ | 290 deps = [ |
| 282 ":utilities", | 291 ":utilities", |
| 283 ":crash_inspector", | 292 ":crash_inspector", |
| 284 ":crash_report_sender", | 293 # TODO(GYP): Make this link |
| 294 #":crash_report_sender", |
| 285 ] | 295 ] |
| 286 } | 296 } |
| 297 |
| 298 group("client") { |
| 299 direct_dependent_configs = [ ":client_config" ] |
| 300 } |
| 287 } | 301 } |
| 288 | 302 |
| 289 if (is_linux || is_android) { | 303 if (is_linux || is_android) { |
| 290 executable("symupload") { | 304 executable("symupload") { |
| 291 sources = [ | 305 sources = [ |
| 292 "src/tools/linux/symupload/sym_upload.cc", | 306 "src/tools/linux/symupload/sym_upload.cc", |
| 293 "src/common/linux/http_upload.cc", | 307 "src/common/linux/http_upload.cc", |
| 294 "src/common/linux/http_upload.h", | 308 "src/common/linux/http_upload.h", |
| 295 ] | 309 ] |
| 296 | 310 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 configs += [ "//build/config/compiler:rtti" ] | 369 configs += [ "//build/config/compiler:rtti" ] |
| 356 | 370 |
| 357 # Breakpad rev 583 introduced this flag. | 371 # Breakpad rev 583 introduced this flag. |
| 358 # Using this define, stabs_reader.h will include a.out.h to | 372 # Using this define, stabs_reader.h will include a.out.h to |
| 359 # build on Linux. | 373 # build on Linux. |
| 360 defines = [ "HAVE_A_OUT_H" ] | 374 defines = [ "HAVE_A_OUT_H" ] |
| 361 | 375 |
| 362 include_dirs = [ "src" ] | 376 include_dirs = [ "src" ] |
| 363 } | 377 } |
| 364 | 378 |
| 365 config("client_config") { | |
| 366 include_dirs = [ "src" ] | |
| 367 if (is_android) { | |
| 368 include_dirs += [ "src/common/android/include" ] | |
| 369 } | |
| 370 } | |
| 371 | |
| 372 static_library("client") { | 379 static_library("client") { |
| 373 sources = [ | 380 sources = [ |
| 374 "src/client/linux/crash_generation/crash_generation_client.cc", | 381 "src/client/linux/crash_generation/crash_generation_client.cc", |
| 375 "src/client/linux/crash_generation/crash_generation_client.h", | 382 "src/client/linux/crash_generation/crash_generation_client.h", |
| 376 "src/client/linux/handler/exception_handler.cc", | 383 "src/client/linux/handler/exception_handler.cc", |
| 377 "src/client/linux/handler/exception_handler.h", | 384 "src/client/linux/handler/exception_handler.h", |
| 378 "src/client/linux/handler/minidump_descriptor.cc", | 385 "src/client/linux/handler/minidump_descriptor.cc", |
| 379 "src/client/linux/handler/minidump_descriptor.h", | 386 "src/client/linux/handler/minidump_descriptor.h", |
| 380 "src/client/linux/log/log.cc", | 387 "src/client/linux/log/log.cc", |
| 381 "src/client/linux/log/log.h", | 388 "src/client/linux/log/log.h", |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 | 645 |
| 639 include_dirs = [ | 646 include_dirs = [ |
| 640 "src", | 647 "src", |
| 641 "src/client/mac/Framework", | 648 "src/client/mac/Framework", |
| 642 "src/common/mac", | 649 "src/common/mac", |
| 643 ] | 650 ] |
| 644 } | 651 } |
| 645 | 652 |
| 646 # TODO(GYP) There is some XCode-only targets like ninja-breakpad. | 653 # TODO(GYP) There is some XCode-only targets like ninja-breakpad. |
| 647 } | 654 } |
| 655 |
| 656 if (is_win) { |
| 657 group("client") { |
| 658 direct_dependent_configs = [ ":client_config" ] |
| 659 } |
| 660 } |
| OLD | NEW |