blob: c4453c3e2aafb22a8df22d39e70bcac6405c7fbc [file] [log] [blame]
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +00001# 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{
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000010 'includes': ['../build/common.gypi',],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000011 'targets': [
12 {
13 'target_name': 'system_wrappers_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +000014 'type': '<(gtest_target_type)',
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000015 'dependencies': [
16 '<(DEPTH)/testing/gtest.gyp:gtest',
asapersson01d70a32016-05-20 06:29:46 -070017 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000018 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000019 '<(webrtc_root)/test/test.gyp:test_support_main',
20 ],
21 'sources': [
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000022 'source/aligned_array_unittest.cc',
23 'source/aligned_malloc_unittest.cc',
24 'source/clock_unittest.cc',
25 'source/condition_variable_unittest.cc',
26 'source/critical_section_unittest.cc',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000027 'source/logging_unittest.cc',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000028 'source/data_log_helpers_unittest.cc',
29 'source/data_log_c_helpers_unittest.c',
30 'source/data_log_c_helpers_unittest.h',
sprang53cf3462016-03-22 01:51:39 -070031 'source/event_timer_posix_unittest.cc',
asapersson01d70a32016-05-20 06:29:46 -070032 'source/metrics_default_unittest.cc',
asapersson1fe48a52016-01-07 01:02:42 -080033 'source/metrics_unittest.cc',
danilchapb1ac2032015-11-26 09:01:10 -080034 'source/ntp_time_unittest.cc',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000035 'source/rtp_to_ntp_unittest.cc',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000036 'source/stringize_macros_unittest.cc',
37 'source/stl_util_unittest.cc',
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000038 ],
39 'conditions': [
40 ['enable_data_logging==1', {
kjellanderbac04122016-06-02 02:18:48 -070041 'sources': [ 'source/data_log_unittest.cc', ],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000042 }, {
kjellanderbac04122016-06-02 02:18:48 -070043 'sources': [ 'source/data_log_unittest_disabled.cc', ],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000044 }],
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +000045 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +000046 'dependencies': [
47 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
48 ],
49 }],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000050 ],
51 # Disable warnings to enable Win64 build, issue 1323.
52 'msvs_disabled_warnings': [
53 4267, # size_t to int truncation.
54 ],
55 },
56 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +000057 'conditions': [
kjellandere532aec2016-04-17 20:08:20 -070058 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +000059 'targets': [
60 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000061 'target_name': 'system_wrappers_unittests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +000062 'type': 'none',
63 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -070064 '<(android_tests_path):system_wrappers_unittests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +000065 ],
66 },
67 ],
kjellandere532aec2016-04-17 20:08:20 -070068 'conditions': [
69 ['test_isolation_mode != "noop"',
70 {
71 'targets': [
72 {
73 'target_name': 'system_wrappers_unittests_apk_run',
74 'type': 'none',
75 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -070076 '<(android_tests_path):system_wrappers_unittests_apk',
kjellandere532aec2016-04-17 20:08:20 -070077 ],
78 'includes': [
79 '../build/isolate.gypi',
80 ],
81 'sources': [
82 'system_wrappers_unittests_apk.isolate',
83 ],
84 },
85 ],
86 },
87 ],
88 ],
89 }], # OS=="android"
kjellander@webrtc.org33654222013-08-22 07:57:00 +000090 ['test_isolation_mode != "noop"', {
91 'targets': [
92 {
93 'target_name': 'system_wrappers_unittests_run',
94 'type': 'none',
95 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +000096 'system_wrappers_unittests',
97 ],
98 'includes': [
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000099 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000100 ],
101 'sources': [
102 'system_wrappers_unittests.isolate',
103 ],
104 },
105 ],
106 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000107 ],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +0000108}
109