blob: a0ae14d6cf638b3665cc7d4437165da7805d6dfa [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',
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',
36 'source/scoped_vector_unittest.cc',
37 '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': [
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000059 ['include_tests==1 and 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 ],
69 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +000070 ['test_isolation_mode != "noop"', {
71 'targets': [
72 {
73 'target_name': 'system_wrappers_unittests_run',
74 'type': 'none',
75 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +000076 'system_wrappers_unittests',
77 ],
78 'includes': [
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000079 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +000080 ],
81 'sources': [
82 'system_wrappers_unittests.isolate',
83 ],
84 },
85 ],
86 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +000087 ],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000088}
89