| OLD | NEW |
| 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 { | 9 { |
| 10 'includes': [ '../build/common.gypi', ], | 10 'includes': [ '../build/common.gypi', ], |
| 11 'targets': [ | 11 'targets': [ |
| 12 { | 12 { |
| 13 'target_name': 'system_wrappers', | 13 'target_name': 'system_wrappers', |
| 14 'type': 'static_library', | 14 'type': 'static_library', |
| 15 'dependencies': [ | 15 'dependencies': [ |
| 16 '<(webrtc_root)/common.gyp:webrtc_common', | 16 '<(webrtc_root)/common.gyp:webrtc_common', |
| 17 '../base/base.gyp:rtc_base_approved', | 17 '../base/base.gyp:rtc_base_approved', |
| 18 ], | 18 ], |
| 19 'sources': [ | 19 'sources': [ |
| 20 'include/aligned_array.h', | 20 'include/aligned_array.h', |
| 21 'include/aligned_malloc.h', | 21 'include/aligned_malloc.h', |
| 22 'include/atomic32.h', | 22 'include/atomic32.h', |
| 23 'include/clock.h', | 23 'include/clock.h', |
| 24 'include/cpu_features_wrapper.h', |
| 24 'include/cpu_info.h', | 25 'include/cpu_info.h', |
| 25 'include/cpu_features_wrapper.h', | |
| 26 'include/critical_section_wrapper.h', | 26 'include/critical_section_wrapper.h', |
| 27 'include/data_log.h', | 27 'include/data_log.h', |
| 28 'include/data_log_c.h', | 28 'include/data_log_c.h', |
| 29 'include/data_log_impl.h', | 29 'include/data_log_impl.h', |
| 30 'include/event_wrapper.h', | 30 'include/event_wrapper.h', |
| 31 'include/field_trial.h', | 31 'include/field_trial.h', |
| 32 'include/file_wrapper.h', | 32 'include/file_wrapper.h', |
| 33 'include/fix_interlocked_exchange_pointer_win.h', | 33 'include/fix_interlocked_exchange_pointer_win.h', |
| 34 'include/logcat_trace_context.h', | |
| 35 'include/logging.h', | 34 'include/logging.h', |
| 36 'include/metrics.h', | 35 'include/metrics.h', |
| 37 'include/ntp_time.h', | 36 'include/ntp_time.h', |
| 38 'include/rtp_to_ntp.h', | 37 'include/rtp_to_ntp.h', |
| 39 'include/rw_lock_wrapper.h', | 38 'include/rw_lock_wrapper.h', |
| 40 'include/sleep.h', | 39 'include/sleep.h', |
| 41 'include/sort.h', | 40 'include/sort.h', |
| 42 'include/static_instance.h', | 41 'include/static_instance.h', |
| 43 'include/stl_util.h', | 42 'include/stl_util.h', |
| 44 'include/stringize_macros.h', | 43 'include/stringize_macros.h', |
| 45 'include/timestamp_extrapolator.h', | 44 'include/timestamp_extrapolator.h', |
| 46 'include/trace.h', | 45 'include/trace.h', |
| 47 'include/utf_util_win.h', | 46 'include/utf_util_win.h', |
| 48 'source/aligned_malloc.cc', | 47 'source/aligned_malloc.cc', |
| 49 'source/atomic32_mac.cc', | |
| 50 'source/atomic32_posix.cc', | |
| 51 'source/atomic32_win.cc', | 48 'source/atomic32_win.cc', |
| 52 'source/clock.cc', | 49 'source/clock.cc', |
| 53 'source/condition_variable_event_win.cc', | 50 'source/condition_variable_event_win.cc', |
| 54 'source/condition_variable_event_win.h', | 51 'source/condition_variable_event_win.h', |
| 52 'source/cpu_features.cc', |
| 55 'source/cpu_info.cc', | 53 'source/cpu_info.cc', |
| 56 'source/cpu_features.cc', | |
| 57 'source/data_log.cc', | |
| 58 'source/data_log_c.cc', | 54 'source/data_log_c.cc', |
| 59 'source/data_log_no_op.cc', | |
| 60 'source/event.cc', | 55 'source/event.cc', |
| 61 'source/event_timer_posix.cc', | 56 'source/event_timer_posix.cc', |
| 62 'source/event_timer_posix.h', | 57 'source/event_timer_posix.h', |
| 63 'source/event_timer_win.cc', | 58 'source/event_timer_win.cc', |
| 64 'source/event_timer_win.h', | 59 'source/event_timer_win.h', |
| 65 'source/file_impl.cc', | 60 'source/file_impl.cc', |
| 66 'source/file_impl.h', | 61 'source/file_impl.h', |
| 67 'source/logcat_trace_context.cc', | |
| 68 'source/logging.cc', | 62 'source/logging.cc', |
| 69 'source/rtp_to_ntp.cc', | 63 'source/rtp_to_ntp.cc', |
| 70 'source/rw_lock.cc', | 64 'source/rw_lock.cc', |
| 71 'source/rw_lock_posix.cc', | 65 'source/rw_lock_posix.cc', |
| 72 'source/rw_lock_posix.h', | 66 'source/rw_lock_posix.h', |
| 73 'source/rw_lock_win.cc', | 67 'source/rw_lock_win.cc', |
| 74 'source/rw_lock_win.h', | 68 'source/rw_lock_win.h', |
| 75 'source/rw_lock_winxp_win.cc', | 69 'source/rw_lock_winxp_win.cc', |
| 76 'source/rw_lock_winxp_win.h', | 70 'source/rw_lock_winxp_win.h', |
| 77 'source/sleep.cc', | 71 'source/sleep.cc', |
| 78 'source/sort.cc', | 72 'source/sort.cc', |
| 79 'source/timestamp_extrapolator.cc', | 73 'source/timestamp_extrapolator.cc', |
| 80 'source/trace_impl.cc', | 74 'source/trace_impl.cc', |
| 81 'source/trace_impl.h', | 75 'source/trace_impl.h', |
| 82 'source/trace_posix.cc', | 76 'source/trace_posix.cc', |
| 83 'source/trace_posix.h', | 77 'source/trace_posix.h', |
| 84 'source/trace_win.cc', | 78 'source/trace_win.cc', |
| 85 'source/trace_win.h', | 79 'source/trace_win.h', |
| 86 ], | 80 ], |
| 87 'conditions': [ | 81 'conditions': [ |
| 88 ['enable_data_logging==1', { | 82 ['enable_data_logging==1', { |
| 89 'sources!': [ 'source/data_log_no_op.cc', ], | 83 'sources': [ 'source/data_log.cc', ], |
| 90 }, { | 84 }, { |
| 91 'sources!': [ 'source/data_log.cc', ], | 85 'sources': [ 'source/data_log_no_op.cc', ], |
| 92 },], | 86 },], |
| 93 ['OS=="android"', { | 87 ['OS=="android"', { |
| 94 'defines': [ | 88 'defines': [ |
| 95 'WEBRTC_THREAD_RR', | 89 'WEBRTC_THREAD_RR', |
| 96 ], | 90 ], |
| 97 'conditions': [ | 91 'conditions': [ |
| 98 ['build_with_chromium==1', { | 92 ['build_with_chromium==1', { |
| 99 'dependencies': [ | 93 'dependencies': [ |
| 100 'cpu_features_chromium.gyp:cpu_features_android', | 94 'cpu_features_chromium.gyp:cpu_features_android', |
| 101 ], | 95 ], |
| 102 }, { | 96 }, { |
| 103 'dependencies': [ | 97 'dependencies': [ |
| 104 'cpu_features_webrtc.gyp:cpu_features_android', | 98 'cpu_features_webrtc.gyp:cpu_features_android', |
| 105 ], | 99 ], |
| 106 }], | 100 }], |
| 107 ], | 101 ], |
| 108 'link_settings': { | 102 'link_settings': { |
| 109 'libraries': [ | 103 'libraries': [ |
| 110 '-llog', | 104 '-llog', |
| 111 ], | 105 ], |
| 112 }, | 106 }, |
| 113 }, { # OS!="android" | 107 'sources': [ |
| 114 'sources!': [ | |
| 115 'include/logcat_trace_context.h', | 108 'include/logcat_trace_context.h', |
| 116 'source/logcat_trace_context.cc', | 109 'source/logcat_trace_context.cc', |
| 117 ], | 110 ], |
| 118 }], | 111 }], |
| 119 ['OS=="linux"', { | 112 ['OS=="linux"', { |
| 120 'defines': [ | 113 'defines': [ |
| 121 'WEBRTC_THREAD_RR', | 114 'WEBRTC_THREAD_RR', |
| 122 ], | 115 ], |
| 123 'conditions': [ | 116 'conditions': [ |
| 124 ['build_with_chromium==0', { | 117 ['build_with_chromium==0', { |
| 125 'dependencies': [ | 118 'dependencies': [ |
| 126 'cpu_features_webrtc.gyp:cpu_features_linux', | 119 'cpu_features_webrtc.gyp:cpu_features_linux', |
| 127 ], | 120 ], |
| 128 }], | 121 }], |
| 129 ], | 122 ], |
| 130 'link_settings': { | 123 'link_settings': { |
| 131 'libraries': [ '-lrt', ], | 124 'libraries': [ '-lrt', ], |
| 132 }, | 125 }, |
| 133 }], | 126 }], |
| 134 ['OS=="mac"', { | 127 ['OS=="mac"', { |
| 135 'link_settings': { | 128 'link_settings': { |
| 136 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/ApplicationServ
ices.framework', ], | 129 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/ApplicationServ
ices.framework', ], |
| 137 }, | 130 }, |
| 138 'sources!': [ | 131 }], |
| 139 'source/atomic32_posix.cc', | 132 ['OS=="linux" or OS=="android"', { |
| 133 'sources': [ |
| 134 'source/atomic32_non_darwin_unix.cc', |
| 140 ], | 135 ], |
| 141 }], | 136 }], |
| 142 ['OS=="ios" or OS=="mac"', { | 137 ['OS=="ios" or OS=="mac"', { |
| 143 'defines': [ | 138 'defines': [ |
| 144 'WEBRTC_THREAD_RR', | 139 'WEBRTC_THREAD_RR', |
| 145 ], | 140 ], |
| 141 'sources': [ |
| 142 'source/atomic32_darwin.cc', |
| 143 ], |
| 146 }], | 144 }], |
| 147 ['OS=="win"', { | 145 ['OS=="win"', { |
| 148 'link_settings': { | 146 'link_settings': { |
| 149 'libraries': [ '-lwinmm.lib', ], | 147 'libraries': [ '-lwinmm.lib', ], |
| 150 }, | 148 }, |
| 151 }], | 149 }], |
| 152 ], # conditions | 150 ], # conditions |
| 153 'target_conditions': [ | |
| 154 # We need to do this in a target_conditions block to override the | |
| 155 # filename_rules filters. | |
| 156 ['OS=="ios"', { | |
| 157 # Pull in specific Mac files for iOS (which have been filtered out | |
| 158 # by file name rules). | |
| 159 'sources/': [ | |
| 160 ['include', '^source/atomic32_mac\\.'], | |
| 161 ], | |
| 162 'sources!': [ | |
| 163 'source/atomic32_posix.cc', | |
| 164 ], | |
| 165 }], | |
| 166 ], | |
| 167 # Disable warnings to enable Win64 build, issue 1323. | 151 # Disable warnings to enable Win64 build, issue 1323. |
| 168 'msvs_disabled_warnings': [ | 152 'msvs_disabled_warnings': [ |
| 169 4267, # size_t to int truncation. | 153 4267, # size_t to int truncation. |
| 170 4334, # Ignore warning on shift operator promotion. | 154 4334, # Ignore warning on shift operator promotion. |
| 171 ], | 155 ], |
| 172 }, { | 156 }, { |
| 173 'target_name': 'field_trial_default', | 157 'target_name': 'field_trial_default', |
| 174 'type': 'static_library', | 158 'type': 'static_library', |
| 175 'sources': [ | 159 'sources': [ |
| 176 'include/field_trial_default.h', | 160 'include/field_trial_default.h', |
| (...skipping 11 matching lines...) Expand all Loading... |
| 188 'type': 'static_library', | 172 'type': 'static_library', |
| 189 'dependencies': [ | 173 'dependencies': [ |
| 190 'system_wrappers', | 174 'system_wrappers', |
| 191 'field_trial_default', | 175 'field_trial_default', |
| 192 'metrics_default', | 176 'metrics_default', |
| 193 ] | 177 ] |
| 194 }, | 178 }, |
| 195 ], # targets | 179 ], # targets |
| 196 } | 180 } |
| 197 | 181 |
| OLD | NEW |