Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / system_wrappers / source / system_wrappers_tests.gyp
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',
14       'type': '<(gtest_target_type)',
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_array_unittest.cc',
22         'aligned_malloc_unittest.cc',
23         'clock_unittest.cc',
24         'condition_variable_unittest.cc',
25         'critical_section_unittest.cc',
26         'event_tracer_unittest.cc',
27         'logging_unittest.cc',
28         'data_log_unittest.cc',
29         'data_log_unittest_disabled.cc',
30         'data_log_helpers_unittest.cc',
31         'data_log_c_helpers_unittest.c',
32         'data_log_c_helpers_unittest.h',
33         'rtp_to_ntp_unittest.cc',
34         'scoped_vector_unittest.cc',
35         'stringize_macros_unittest.cc',
36         'stl_util_unittest.cc',
37         'thread_unittest.cc',
38         'thread_posix_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         }],
49         ['OS=="android"', {
50           'dependencies': [
51             '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
52           ],
53         }],
54       ],
55       # Disable warnings to enable Win64 build, issue 1323.
56       'msvs_disabled_warnings': [
57         4267,  # size_t to int truncation.
58       ],
59     },
60   ],
61   'conditions': [
62     ['include_tests==1 and OS=="android"', {
63       'targets': [
64         {
65           'target_name': 'system_wrappers_unittests_apk_target',
66           'type': 'none',
67           'dependencies': [
68             '<(apk_tests_path):system_wrappers_unittests_apk',
69           ],
70         },
71       ],
72     }],
73     ['test_isolation_mode != "noop"', {
74       'targets': [
75         {
76           'target_name': 'system_wrappers_unittests_run',
77           'type': 'none',
78           'dependencies': [
79             'system_wrappers_unittests',
80           ],
81           'includes': [
82             '../../build/isolate.gypi',
83           ],
84           'sources': [
85             'system_wrappers_unittests.isolate',
86           ],
87         },
88       ],
89     }],
90   ],
91 }
92