blob: 174c96c948fae8fc62c003c8b7c895a4147380f3 [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',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000017 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
asapersson1fe48a52016-01-07 01:02:42 -080018 '<(webrtc_root)/test/test.gyp:histogram',
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',
28 'source/data_log_unittest.cc',
29 'source/data_log_unittest_disabled.cc',
30 'source/data_log_helpers_unittest.cc',
31 'source/data_log_c_helpers_unittest.c',
32 'source/data_log_c_helpers_unittest.h',
sprang53cf3462016-03-22 01:51:39 -070033 'source/event_timer_posix_unittest.cc',
asapersson1fe48a52016-01-07 01:02:42 -080034 'source/metrics_unittest.cc',
danilchapb1ac2032015-11-26 09:01:10 -080035 'source/ntp_time_unittest.cc',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000036 'source/rtp_to_ntp_unittest.cc',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000037 'source/stringize_macros_unittest.cc',
38 'source/stl_util_unittest.cc',
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000039 ],
40 'conditions': [
41 ['enable_data_logging==1', {
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000042 'sources!': [ 'source/data_log_unittest_disabled.cc', ],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000043 }, {
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000044 'sources!': [ 'source/data_log_unittest.cc', ],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000045 }],
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +000046 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +000047 'dependencies': [
48 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
49 ],
50 }],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000051 ],
52 # Disable warnings to enable Win64 build, issue 1323.
53 'msvs_disabled_warnings': [
54 4267, # size_t to int truncation.
55 ],
56 },
57 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +000058 'conditions': [
kjellandere532aec2016-04-17 20:08:20 -070059 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +000060 'targets': [
61 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000062 'target_name': 'system_wrappers_unittests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +000063 'type': 'none',
64 'dependencies': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000065 '<(apk_tests_path):system_wrappers_unittests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +000066 ],
67 },
68 ],
kjellandere532aec2016-04-17 20:08:20 -070069 'conditions': [
70 ['test_isolation_mode != "noop"',
71 {
72 'targets': [
73 {
74 'target_name': 'system_wrappers_unittests_apk_run',
75 'type': 'none',
76 'dependencies': [
77 '<(apk_tests_path):system_wrappers_unittests_apk',
78 ],
79 'includes': [
80 '../build/isolate.gypi',
81 ],
82 'sources': [
83 'system_wrappers_unittests_apk.isolate',
84 ],
85 },
86 ],
87 },
88 ],
89 ],
90 }], # OS=="android"
kjellander@webrtc.org33654222013-08-22 07:57:00 +000091 ['test_isolation_mode != "noop"', {
92 'targets': [
93 {
94 'target_name': 'system_wrappers_unittests_run',
95 'type': 'none',
96 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +000097 'system_wrappers_unittests',
98 ],
99 'includes': [
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000100 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000101 ],
102 'sources': [
103 'system_wrappers_unittests.isolate',
104 ],
105 },
106 ],
107 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000108 ],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +0000109}
110