blob: 91ff0283b6441671a5e4d6489d3dc1ee12b97fd0 [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{
10 'includes': ['../../build/common.gypi',],
11 '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',
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.orgb8e7f4c2013-04-12 11:56:23 +000022 'clock_unittest.cc',
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000023 'condition_variable_unittest.cc',
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000024 'critical_section_unittest.cc',
25 'event_tracer_unittest.cc',
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000026 'logging_unittest.cc',
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000027 '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',
andrew@webrtc.org0daa8be2014-04-18 21:20:54 +000032 'scoped_vector_unittest.cc',
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000033 'stringize_macros_unittest.cc',
andrew@webrtc.org0daa8be2014-04-18 21:20:54 +000034 'stl_util_unittest.cc',
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000035 'thread_unittest.cc',
36 'thread_posix_unittest.cc',
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000037 'unittest_utilities_unittest.cc',
38 ],
39 'conditions': [
40 ['enable_data_logging==1', {
41 'sources!': [ 'data_log_unittest_disabled.cc', ],
42 }, {
43 'sources!': [ 'data_log_unittest.cc', ],
44 }],
45 ['os_posix==0', {
46 'sources!': [ 'thread_posix_unittest.cc', ],
47 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +000048 # TODO(henrike): remove build_with_chromium==1 when the bots are
49 # using Chromium's buildbots.
50 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
51 'dependencies': [
52 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
53 ],
54 }],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000055 ],
56 # Disable warnings to enable Win64 build, issue 1323.
57 'msvs_disabled_warnings': [
58 4267, # size_t to int truncation.
59 ],
60 },
61 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +000062 'conditions': [
63 # TODO(henrike): remove build_with_chromium==1 when the bots are using
64 # Chromium's buildbots.
65 ['include_tests==1 and build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
66 'targets': [
67 {
68 'target_name': 'system_wrappers_unittests_apk_target',
69 'type': 'none',
70 'dependencies': [
71 '<(apk_tests_path):system_wrappers_unittests_apk',
72 ],
73 },
74 ],
75 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +000076 ['test_isolation_mode != "noop"', {
77 'targets': [
78 {
79 'target_name': 'system_wrappers_unittests_run',
80 'type': 'none',
81 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +000082 'system_wrappers_unittests',
83 ],
84 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +000085 '../../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +000086 'system_wrappers_unittests.isolate',
87 ],
88 'sources': [
89 'system_wrappers_unittests.isolate',
90 ],
91 },
92 ],
93 }],
henrike@webrtc.org89c67402013-08-02 16:53:47 +000094 ],
andrew@webrtc.orgc1ffd332013-03-22 17:13:23 +000095}
96