Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: third_party/gtest/gtest.gyp

Issue 986033002: Allow Crashpad to build in the Chromium tree (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Rewrap Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/gtest/gtest.gyp
diff --git a/third_party/gtest/gtest.gyp b/third_party/gtest/gtest.gyp
index 022010dd2d53b1e81191ed0057ffd47081d3061a..b9f2356554f665a7af20372267107eb35c24eb1f 100644
--- a/third_party/gtest/gtest.gyp
+++ b/third_party/gtest/gtest.gyp
@@ -13,213 +13,243 @@
# limitations under the License.
{
- 'targets': [
- {
- 'target_name': 'gtest',
- 'type': 'static_library',
- 'include_dirs': [
- 'gtest',
- 'gtest/include',
- ],
- 'sources': [
- 'gtest/include/gtest/gtest-death-test.h',
- 'gtest/include/gtest/gtest-message.h',
- 'gtest/include/gtest/gtest-param-test.h',
- 'gtest/include/gtest/gtest-printers.h',
- 'gtest/include/gtest/gtest-spi.h',
- 'gtest/include/gtest/gtest-test-part.h',
- 'gtest/include/gtest/gtest-typed-test.h',
- 'gtest/include/gtest/gtest.h',
- 'gtest/include/gtest/gtest_pred_impl.h',
- 'gtest/include/gtest/gtest_prod.h',
- 'gtest/include/gtest/internal/gtest-death-test-internal.h',
- 'gtest/include/gtest/internal/gtest-filepath.h',
- 'gtest/include/gtest/internal/gtest-internal.h',
- 'gtest/include/gtest/internal/gtest-linked_ptr.h',
- 'gtest/include/gtest/internal/gtest-param-util-generated.h',
- 'gtest/include/gtest/internal/gtest-param-util.h',
- 'gtest/include/gtest/internal/gtest-port.h',
- 'gtest/include/gtest/internal/gtest-string.h',
- 'gtest/include/gtest/internal/gtest-tuple.h',
- 'gtest/include/gtest/internal/gtest-type-util.h',
- 'gtest/src/gtest.cc',
- 'gtest/src/gtest-death-test.cc',
- 'gtest/src/gtest-filepath.cc',
- 'gtest/src/gtest-port.cc',
- 'gtest/src/gtest-printers.cc',
- 'gtest/src/gtest-test-part.cc',
- 'gtest/src/gtest-typed-test.cc',
- ],
- 'sources!': [
- 'gtest/src/gtest-all.cc',
- ],
+ 'includes': [
+ '../../build/crashpad_in_chromium.gypi',
+ ],
+ 'conditions': [
+ ['crashpad_in_chromium==0', {
+ 'targets': [
+ {
+ 'target_name': 'gtest',
+ 'type': 'static_library',
+ 'include_dirs': [
+ 'gtest',
+ 'gtest/include',
+ ],
+ 'sources': [
+ 'gtest/include/gtest/gtest-death-test.h',
+ 'gtest/include/gtest/gtest-message.h',
+ 'gtest/include/gtest/gtest-param-test.h',
+ 'gtest/include/gtest/gtest-printers.h',
+ 'gtest/include/gtest/gtest-spi.h',
+ 'gtest/include/gtest/gtest-test-part.h',
+ 'gtest/include/gtest/gtest-typed-test.h',
+ 'gtest/include/gtest/gtest.h',
+ 'gtest/include/gtest/gtest_pred_impl.h',
+ 'gtest/include/gtest/gtest_prod.h',
+ 'gtest/include/gtest/internal/gtest-death-test-internal.h',
+ 'gtest/include/gtest/internal/gtest-filepath.h',
+ 'gtest/include/gtest/internal/gtest-internal.h',
+ 'gtest/include/gtest/internal/gtest-linked_ptr.h',
+ 'gtest/include/gtest/internal/gtest-param-util-generated.h',
+ 'gtest/include/gtest/internal/gtest-param-util.h',
+ 'gtest/include/gtest/internal/gtest-port.h',
+ 'gtest/include/gtest/internal/gtest-string.h',
+ 'gtest/include/gtest/internal/gtest-tuple.h',
+ 'gtest/include/gtest/internal/gtest-type-util.h',
+ 'gtest/src/gtest.cc',
+ 'gtest/src/gtest-death-test.cc',
+ 'gtest/src/gtest-filepath.cc',
+ 'gtest/src/gtest-port.cc',
+ 'gtest/src/gtest-printers.cc',
+ 'gtest/src/gtest-test-part.cc',
+ 'gtest/src/gtest-typed-test.cc',
+ ],
+ 'sources!': [
+ 'gtest/src/gtest-all.cc',
+ ],
- # gtest relies heavily on objects with static storage duration.
- 'xcode_settings': {
- 'WARNING_CFLAGS!': [
- '-Wexit-time-destructors',
- ],
- },
- 'cflags!': [
- '-Wexit-time-destructors',
- ],
+ # gtest relies heavily on objects with static storage duration.
+ 'xcode_settings': {
+ 'WARNING_CFLAGS!': [
+ '-Wexit-time-destructors',
+ ],
+ },
+ 'cflags!': [
+ '-Wexit-time-destructors',
+ ],
- 'direct_dependent_settings': {
- 'include_dirs': [
- 'gtest/include',
- ],
- },
- },
- {
- 'target_name': 'gtest_main',
- 'type': 'static_library',
- 'dependencies': [
- 'gtest',
- ],
- 'sources': [
- 'gtest/src/gtest_main.cc',
- ],
- },
- {
- 'target_name': 'gtest_test_executable',
- 'type': 'none',
- 'dependencies': [
- 'gtest',
- ],
- 'direct_dependent_settings': {
- 'type': 'executable',
- 'include_dirs': [
- 'gtest',
- ],
- },
- 'export_dependent_settings': [
- 'gtest',
- ],
- },
- {
- 'target_name': 'gtest_all_test',
- 'dependencies': [
- 'gtest_test_executable',
- 'gtest_main',
- ],
- 'sources': [
- 'gtest/test/gtest-death-test_test.cc',
- 'gtest/test/gtest-filepath_test.cc',
- 'gtest/test/gtest-linked_ptr_test.cc',
- 'gtest/test/gtest-message_test.cc',
- 'gtest/test/gtest-options_test.cc',
- 'gtest/test/gtest-port_test.cc',
- 'gtest/test/gtest-printers_test.cc',
- 'gtest/test/gtest-test-part_test.cc',
- 'gtest/test/gtest-typed-test_test.cc',
- 'gtest/test/gtest-typed-test_test.h',
- 'gtest/test/gtest-typed-test2_test.cc',
- 'gtest/test/gtest_main_unittest.cc',
- 'gtest/test/gtest_pred_impl_unittest.cc',
- 'gtest/test/gtest_prod_test.cc',
- 'gtest/test/gtest_unittest.cc',
- 'gtest/test/production.cc',
- 'gtest/test/production.h',
- ],
- },
- {
- 'target_name': 'gtest_environment_test',
- 'dependencies': [
- 'gtest_test_executable',
- ],
- 'sources': [
- 'gtest/test/gtest_environment_test.cc',
- ],
- },
- {
- 'target_name': 'gtest_listener_test',
- 'dependencies': [
- 'gtest_test_executable',
- ],
- 'sources': [
- 'gtest/test/gtest-listener_test.cc',
- ],
- },
- {
- 'target_name': 'gtest_no_test',
- 'dependencies': [
- 'gtest_test_executable',
- ],
- 'sources': [
- 'gtest/test/gtest_no_test_unittest.cc',
- ],
- },
- {
- 'target_name': 'gtest_param_test',
- 'dependencies': [
- 'gtest_test_executable',
- ],
- 'sources': [
- 'gtest/test/gtest-param-test_test.cc',
- 'gtest/test/gtest-param-test_test.h',
- 'gtest/test/gtest-param-test2_test.cc',
- ],
- },
- {
- 'target_name': 'gtest_premature_exit_test',
- 'dependencies': [
- 'gtest_test_executable',
- ],
- 'sources': [
- 'gtest/test/gtest_premature_exit_test.cc',
- ],
- },
- {
- 'target_name': 'gtest_repeat_test',
- 'dependencies': [
- 'gtest_test_executable',
- ],
- 'sources': [
- 'gtest/test/gtest_repeat_test.cc',
- ],
- },
- {
- 'target_name': 'gtest_sole_header_test',
- 'dependencies': [
- 'gtest_test_executable',
- 'gtest_main',
- ],
- 'sources': [
- 'gtest/test/gtest_sole_header_test.cc',
- ],
- },
- {
- 'target_name': 'gtest_stress_test',
- 'dependencies': [
- 'gtest_test_executable',
- ],
- 'sources': [
- 'gtest/test/gtest_stress_test.cc',
- ],
- },
- {
- 'target_name': 'gtest_unittest_api_test',
- 'dependencies': [
- 'gtest_test_executable',
- ],
- 'sources': [
- 'gtest/test/gtest-unittest-api_test.cc',
- ],
- },
- {
- 'target_name': 'gtest_all_tests',
- 'type': 'none',
- 'dependencies': [
- 'gtest_all_test',
- 'gtest_environment_test',
- 'gtest_no_test',
- 'gtest_param_test',
- 'gtest_premature_exit_test',
- 'gtest_repeat_test',
- 'gtest_sole_header_test',
- 'gtest_stress_test',
- 'gtest_unittest_api_test',
- ],
- },
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'gtest/include',
+ ],
+ },
+ },
+ {
+ 'target_name': 'gtest_main',
+ 'type': 'static_library',
+ 'dependencies': [
+ 'gtest',
+ ],
+ 'sources': [
+ 'gtest/src/gtest_main.cc',
+ ],
+ },
+ {
+ 'target_name': 'gtest_test_executable',
+ 'type': 'none',
+ 'dependencies': [
+ 'gtest',
+ ],
+ 'direct_dependent_settings': {
+ 'type': 'executable',
+ 'include_dirs': [
+ 'gtest',
+ ],
+ },
+ 'export_dependent_settings': [
+ 'gtest',
+ ],
+ },
+ {
+ 'target_name': 'gtest_all_test',
+ 'dependencies': [
+ 'gtest_test_executable',
+ 'gtest_main',
+ ],
+ 'sources': [
+ 'gtest/test/gtest-death-test_test.cc',
+ 'gtest/test/gtest-filepath_test.cc',
+ 'gtest/test/gtest-linked_ptr_test.cc',
+ 'gtest/test/gtest-message_test.cc',
+ 'gtest/test/gtest-options_test.cc',
+ 'gtest/test/gtest-port_test.cc',
+ 'gtest/test/gtest-printers_test.cc',
+ 'gtest/test/gtest-test-part_test.cc',
+ 'gtest/test/gtest-typed-test_test.cc',
+ 'gtest/test/gtest-typed-test_test.h',
+ 'gtest/test/gtest-typed-test2_test.cc',
+ 'gtest/test/gtest_main_unittest.cc',
+ 'gtest/test/gtest_pred_impl_unittest.cc',
+ 'gtest/test/gtest_prod_test.cc',
+ 'gtest/test/gtest_unittest.cc',
+ 'gtest/test/production.cc',
+ 'gtest/test/production.h',
+ ],
+ },
+ {
+ 'target_name': 'gtest_environment_test',
+ 'dependencies': [
+ 'gtest_test_executable',
+ ],
+ 'sources': [
+ 'gtest/test/gtest_environment_test.cc',
+ ],
+ },
+ {
+ 'target_name': 'gtest_listener_test',
+ 'dependencies': [
+ 'gtest_test_executable',
+ ],
+ 'sources': [
+ 'gtest/test/gtest-listener_test.cc',
+ ],
+ },
+ {
+ 'target_name': 'gtest_no_test',
+ 'dependencies': [
+ 'gtest_test_executable',
+ ],
+ 'sources': [
+ 'gtest/test/gtest_no_test_unittest.cc',
+ ],
+ },
+ {
+ 'target_name': 'gtest_param_test',
+ 'dependencies': [
+ 'gtest_test_executable',
+ ],
+ 'sources': [
+ 'gtest/test/gtest-param-test_test.cc',
+ 'gtest/test/gtest-param-test_test.h',
+ 'gtest/test/gtest-param-test2_test.cc',
+ ],
+ },
+ {
+ 'target_name': 'gtest_premature_exit_test',
+ 'dependencies': [
+ 'gtest_test_executable',
+ ],
+ 'sources': [
+ 'gtest/test/gtest_premature_exit_test.cc',
+ ],
+ },
+ {
+ 'target_name': 'gtest_repeat_test',
+ 'dependencies': [
+ 'gtest_test_executable',
+ ],
+ 'sources': [
+ 'gtest/test/gtest_repeat_test.cc',
+ ],
+ },
+ {
+ 'target_name': 'gtest_sole_header_test',
+ 'dependencies': [
+ 'gtest_test_executable',
+ 'gtest_main',
+ ],
+ 'sources': [
+ 'gtest/test/gtest_sole_header_test.cc',
+ ],
+ },
+ {
+ 'target_name': 'gtest_stress_test',
+ 'dependencies': [
+ 'gtest_test_executable',
+ ],
+ 'sources': [
+ 'gtest/test/gtest_stress_test.cc',
+ ],
+ },
+ {
+ 'target_name': 'gtest_unittest_api_test',
+ 'dependencies': [
+ 'gtest_test_executable',
+ ],
+ 'sources': [
+ 'gtest/test/gtest-unittest-api_test.cc',
+ ],
+ },
+ {
+ 'target_name': 'gtest_all_tests',
+ 'type': 'none',
+ 'dependencies': [
+ 'gtest_all_test',
+ 'gtest_environment_test',
+ 'gtest_no_test',
+ 'gtest_param_test',
+ 'gtest_premature_exit_test',
+ 'gtest_repeat_test',
+ 'gtest_sole_header_test',
+ 'gtest_stress_test',
+ 'gtest_unittest_api_test',
+ ],
+ },
+ ],
+ }, { # else: crashpad_in_chromium!=0
+ 'targets': [
+ {
+ 'target_name': 'gtest',
+ 'type': 'none',
+ 'dependencies': [
+ '../../../../../testing/gtest.gyp:gtest',
+ ],
+ 'export_dependent_settings': [
+ '../../../../../testing/gtest.gyp:gtest',
+ ],
+ },
+ {
+ 'target_name': 'gtest_main',
+ 'type': 'none',
+ 'dependencies': [
+ '../../../../../testing/gtest.gyp:gtest_main',
+ ],
+ 'export_dependent_settings': [
+ '../../../../../testing/gtest.gyp:gtest_main',
+ ],
+ },
+ ],
+ }],
],
}

Powered by Google App Engine
This is Rietveld 408576698