client.gyp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Copyright 2014 The Crashpad Authors. All rights reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. {
  15. 'includes': [
  16. '../build/crashpad.gypi',
  17. ],
  18. 'targets': [
  19. {
  20. 'target_name': 'crashpad_client',
  21. 'type': 'static_library',
  22. 'dependencies': [
  23. '../compat/compat.gyp:crashpad_compat',
  24. '../third_party/mini_chromium/mini_chromium.gyp:base',
  25. '../util/util.gyp:crashpad_util',
  26. ],
  27. 'include_dirs': [
  28. '..',
  29. ],
  30. 'sources': [
  31. 'annotation.cc',
  32. 'annotation.h',
  33. 'annotation_list.cc',
  34. 'annotation_list.h',
  35. 'capture_context_mac.S',
  36. 'capture_context_mac.h',
  37. 'crash_report_database.cc',
  38. 'crash_report_database.h',
  39. 'crash_report_database_mac.mm',
  40. 'crash_report_database_win.cc',
  41. 'crashpad_client.h',
  42. 'crashpad_client_mac.cc',
  43. 'crashpad_client_win.cc',
  44. 'crashpad_info.cc',
  45. 'crashpad_info.h',
  46. 'prune_crash_reports.cc',
  47. 'prune_crash_reports.h',
  48. 'settings.cc',
  49. 'settings.h',
  50. 'simple_string_dictionary.h',
  51. 'simple_address_range_bag.h',
  52. 'simulate_crash.h',
  53. 'simulate_crash_mac.cc',
  54. 'simulate_crash_mac.h',
  55. 'simulate_crash_win.h',
  56. ],
  57. 'conditions': [
  58. ['OS=="win"', {
  59. 'link_settings': {
  60. 'libraries': [
  61. '-lrpcrt4.lib',
  62. ],
  63. },
  64. }],
  65. ['OS!="mac"', {
  66. 'sources!': [
  67. 'capture_context_mac.S',
  68. ],
  69. }],
  70. ],
  71. 'direct_dependent_settings': {
  72. 'include_dirs': [
  73. '..',
  74. ],
  75. },
  76. },
  77. ],
  78. }