andrew@webrtc.org | c1ffd33 | 2013-03-22 17:13:23 +0000 | [diff] [blame] | 1 | # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
| 9 | { |
| 10 | 'includes': ['../../build/common.gypi',], |
| 11 | 'targets': [ |
| 12 | { |
| 13 | 'target_name': 'system_wrappers_unittests', |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 14 | 'type': '<(gtest_target_type)', |
andrew@webrtc.org | c1ffd33 | 2013-03-22 17:13:23 +0000 | [diff] [blame] | 15 | 'dependencies': [ |
| 16 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 17 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
| 18 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 19 | ], |
| 20 | 'sources': [ |
| 21 | 'aligned_malloc_unittest.cc', |
stefan@webrtc.org | b8e7f4c | 2013-04-12 11:56:23 +0000 | [diff] [blame] | 22 | 'clock_unittest.cc', |
andrew@webrtc.org | c1ffd33 | 2013-03-22 17:13:23 +0000 | [diff] [blame] | 23 | 'condition_variable_unittest.cc', |
andrew@webrtc.org | c1ffd33 | 2013-03-22 17:13:23 +0000 | [diff] [blame] | 24 | 'critical_section_unittest.cc', |
| 25 | 'event_tracer_unittest.cc', |
andrew@webrtc.org | c1ffd33 | 2013-03-22 17:13:23 +0000 | [diff] [blame] | 26 | 'logging_unittest.cc', |
andrew@webrtc.org | c1ffd33 | 2013-03-22 17:13:23 +0000 | [diff] [blame] | 27 | 'data_log_unittest.cc', |
| 28 | 'data_log_unittest_disabled.cc', |
| 29 | 'data_log_helpers_unittest.cc', |
| 30 | 'data_log_c_helpers_unittest.c', |
| 31 | 'data_log_c_helpers_unittest.h', |
wu@webrtc.org | 66773a0 | 2014-05-07 17:09:44 +0000 | [diff] [blame] | 32 | 'rtp_to_ntp_unittest.cc', |
andrew@webrtc.org | 0daa8be | 2014-04-18 21:20:54 +0000 | [diff] [blame] | 33 | 'scoped_vector_unittest.cc', |
andrew@webrtc.org | c1ffd33 | 2013-03-22 17:13:23 +0000 | [diff] [blame] | 34 | 'stringize_macros_unittest.cc', |
andrew@webrtc.org | 0daa8be | 2014-04-18 21:20:54 +0000 | [diff] [blame] | 35 | 'stl_util_unittest.cc', |
andrew@webrtc.org | c1ffd33 | 2013-03-22 17:13:23 +0000 | [diff] [blame] | 36 | 'thread_unittest.cc', |
| 37 | 'thread_posix_unittest.cc', |
andrew@webrtc.org | c1ffd33 | 2013-03-22 17:13:23 +0000 | [diff] [blame] | 38 | 'unittest_utilities_unittest.cc', |
| 39 | ], |
| 40 | 'conditions': [ |
| 41 | ['enable_data_logging==1', { |
| 42 | 'sources!': [ 'data_log_unittest_disabled.cc', ], |
| 43 | }, { |
| 44 | 'sources!': [ 'data_log_unittest.cc', ], |
| 45 | }], |
| 46 | ['os_posix==0', { |
| 47 | 'sources!': [ 'thread_posix_unittest.cc', ], |
| 48 | }], |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 49 | # TODO(henrike): remove build_with_chromium==1 when the bots are |
| 50 | # using Chromium's buildbots. |
| 51 | ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', { |
| 52 | 'dependencies': [ |
| 53 | '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 54 | ], |
| 55 | }], |
andrew@webrtc.org | c1ffd33 | 2013-03-22 17:13:23 +0000 | [diff] [blame] | 56 | ], |
| 57 | # Disable warnings to enable Win64 build, issue 1323. |
| 58 | 'msvs_disabled_warnings': [ |
| 59 | 4267, # size_t to int truncation. |
| 60 | ], |
| 61 | }, |
| 62 | ], |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 63 | 'conditions': [ |
| 64 | # TODO(henrike): remove build_with_chromium==1 when the bots are using |
| 65 | # Chromium's buildbots. |
| 66 | ['include_tests==1 and build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', { |
| 67 | 'targets': [ |
| 68 | { |
| 69 | 'target_name': 'system_wrappers_unittests_apk_target', |
| 70 | 'type': 'none', |
| 71 | 'dependencies': [ |
| 72 | '<(apk_tests_path):system_wrappers_unittests_apk', |
| 73 | ], |
| 74 | }, |
| 75 | ], |
| 76 | }], |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 77 | ['test_isolation_mode != "noop"', { |
| 78 | 'targets': [ |
| 79 | { |
| 80 | 'target_name': 'system_wrappers_unittests_run', |
| 81 | 'type': 'none', |
| 82 | 'dependencies': [ |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 83 | 'system_wrappers_unittests', |
| 84 | ], |
| 85 | 'includes': [ |
kjellander@webrtc.org | 2a97317 | 2013-10-02 19:31:16 +0000 | [diff] [blame] | 86 | '../../build/isolate.gypi', |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 87 | 'system_wrappers_unittests.isolate', |
| 88 | ], |
| 89 | 'sources': [ |
| 90 | 'system_wrappers_unittests.isolate', |
| 91 | ], |
| 92 | }, |
| 93 | ], |
| 94 | }], |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 95 | ], |
andrew@webrtc.org | c1ffd33 | 2013-03-22 17:13:23 +0000 | [diff] [blame] | 96 | } |
| 97 | |