blob: abee34531c620f12d22c0f4c42b629c898fc0eeb [file] [log] [blame]
andresp@webrtc.org86e1e482015-01-14 09:30:52 +00001# Copyright (c) 2012 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.org9ce01e62015-01-15 09:12:45 +000010 'includes': [ '../build/common.gypi', ],
11 'targets': [
12 {
13 'target_name': 'system_wrappers',
14 'type': 'static_library',
15 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000016 '<(webrtc_root)/common.gyp:webrtc_common',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000017 '../base/base.gyp:rtc_base_approved',
18 ],
19 'sources': [
Henrik Kjellander98f53512015-10-28 18:17:40 +010020 'include/aligned_array.h',
21 'include/aligned_malloc.h',
22 'include/atomic32.h',
23 'include/clock.h',
Henrik Kjellander98f53512015-10-28 18:17:40 +010024 'include/cpu_features_wrapper.h',
kjellander080a1e32016-05-25 11:37:11 -070025 'include/cpu_info.h',
Henrik Kjellander98f53512015-10-28 18:17:40 +010026 'include/critical_section_wrapper.h',
Henrik Kjellander98f53512015-10-28 18:17:40 +010027 'include/event_wrapper.h',
28 'include/field_trial.h',
29 'include/file_wrapper.h',
30 'include/fix_interlocked_exchange_pointer_win.h',
Henrik Kjellander98f53512015-10-28 18:17:40 +010031 'include/logging.h',
32 'include/metrics.h',
danilchapb1ac2032015-11-26 09:01:10 -080033 'include/ntp_time.h',
Henrik Kjellander98f53512015-10-28 18:17:40 +010034 'include/rtp_to_ntp.h',
35 'include/rw_lock_wrapper.h',
Henrik Kjellander98f53512015-10-28 18:17:40 +010036 'include/sleep.h',
37 'include/sort.h',
38 'include/static_instance.h',
39 'include/stl_util.h',
40 'include/stringize_macros.h',
Henrik Kjellander98f53512015-10-28 18:17:40 +010041 'include/timestamp_extrapolator.h',
42 'include/trace.h',
43 'include/utf_util_win.h',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000044 'source/aligned_malloc.cc',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000045 'source/atomic32_win.cc',
46 'source/clock.cc',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000047 'source/condition_variable_event_win.cc',
48 'source/condition_variable_event_win.h',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000049 'source/cpu_features.cc',
kjellander080a1e32016-05-25 11:37:11 -070050 'source/cpu_info.cc',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000051 'source/event.cc',
Peter Boström64c03662015-04-08 11:24:19 +020052 'source/event_timer_posix.cc',
53 'source/event_timer_posix.h',
54 'source/event_timer_win.cc',
55 'source/event_timer_win.h',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000056 'source/file_impl.cc',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000057 'source/logging.cc',
58 'source/rtp_to_ntp.cc',
59 'source/rw_lock.cc',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +000060 'source/rw_lock_posix.cc',
61 'source/rw_lock_posix.h',
62 'source/rw_lock_win.cc',
63 'source/rw_lock_win.h',
tommi61046eb2016-01-19 02:59:56 -080064 'source/rw_lock_winxp_win.cc',
65 'source/rw_lock_winxp_win.h',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000066 'source/sleep.cc',
67 'source/sort.cc',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000068 'source/timestamp_extrapolator.cc',
69 'source/trace_impl.cc',
70 'source/trace_impl.h',
71 'source/trace_posix.cc',
72 'source/trace_posix.h',
73 'source/trace_win.cc',
74 'source/trace_win.h',
75 ],
76 'conditions': [
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000077 ['OS=="android"', {
78 'defines': [
79 'WEBRTC_THREAD_RR',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000080 ],
fdegans@chromium.org8919cfe2015-01-23 16:35:17 +000081 'conditions': [
82 ['build_with_chromium==1', {
83 'dependencies': [
84 'cpu_features_chromium.gyp:cpu_features_android',
85 ],
86 }, {
87 'dependencies': [
88 'cpu_features_webrtc.gyp:cpu_features_android',
89 ],
90 }],
91 ],
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000092 'link_settings': {
93 'libraries': [
94 '-llog',
95 ],
96 },
kjellander080a1e32016-05-25 11:37:11 -070097 'sources': [
Henrik Kjellander98f53512015-10-28 18:17:40 +010098 'include/logcat_trace_context.h',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +000099 'source/logcat_trace_context.cc',
100 ],
101 }],
102 ['OS=="linux"', {
103 'defines': [
104 'WEBRTC_THREAD_RR',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +0000105 ],
simon.hosie953b1c12016-04-06 14:02:26 -0700106 'conditions': [
107 ['build_with_chromium==0', {
108 'dependencies': [
109 'cpu_features_webrtc.gyp:cpu_features_linux',
110 ],
111 }],
112 ],
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +0000113 'link_settings': {
114 'libraries': [ '-lrt', ],
115 },
116 }],
117 ['OS=="mac"', {
118 'link_settings': {
119 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', ],
120 },
kjellander080a1e32016-05-25 11:37:11 -0700121 }],
122 ['OS=="linux" or OS=="android"', {
123 'sources': [
124 'source/atomic32_non_darwin_unix.cc',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +0000125 ],
126 }],
127 ['OS=="ios" or OS=="mac"', {
128 'defines': [
129 'WEBRTC_THREAD_RR',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +0000130 ],
kjellander080a1e32016-05-25 11:37:11 -0700131 'sources': [
132 'source/atomic32_darwin.cc',
133 ],
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +0000134 }],
135 ['OS=="win"', {
136 'link_settings': {
137 'libraries': [ '-lwinmm.lib', ],
138 },
139 }],
140 ], # conditions
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +0000141 # Disable warnings to enable Win64 build, issue 1323.
142 'msvs_disabled_warnings': [
143 4267, # size_t to int truncation.
144 4334, # Ignore warning on shift operator promotion.
145 ],
146 }, {
147 'target_name': 'field_trial_default',
148 'type': 'static_library',
149 'sources': [
Henrik Kjellander98f53512015-10-28 18:17:40 +0100150 'include/field_trial_default.h',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +0000151 'source/field_trial_default.cc',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +0000152 ]
153 }, {
154 'target_name': 'metrics_default',
155 'type': 'static_library',
156 'sources': [
asapersson01d70a32016-05-20 06:29:46 -0700157 'include/metrics_default.h',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +0000158 'source/metrics_default.cc',
159 ],
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +0000160 }, {
161 'target_name': 'system_wrappers_default',
162 'type': 'static_library',
163 'dependencies': [
sergeyu5ab193f2015-11-03 09:36:52 -0800164 'system_wrappers',
andresp@webrtc.org9ce01e62015-01-15 09:12:45 +0000165 'field_trial_default',
166 'metrics_default',
167 ]
168 },
169 ], # targets
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000170}
171