OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 'player_x11_renderer%': 'x11', | 8 'player_x11_renderer%': 'x11', |
9 }, | 9 }, |
10 'target_defaults': { | |
11 'conditions': [ | |
12 ['OS!="linux"', {'sources/': [['exclude', '/linux/']]}], | |
13 ['OS!="freebsd"', {'sources/': [['exclude', '/freebsd/']]}], | |
14 ['OS!="mac"', {'sources/': [['exclude', '/mac/']]}], | |
15 ['OS!="win"', {'sources/': [['exclude', '/win/']]}], | |
16 ], | |
17 }, | |
18 'targets': [ | 10 'targets': [ |
19 { | 11 { |
20 'target_name': 'media', | 12 'target_name': 'media', |
21 'type': '<(library)', | 13 'type': '<(library)', |
22 'dependencies': [ | 14 'dependencies': [ |
23 'omx_wrapper', | 15 'omx_wrapper', |
24 '../base/base.gyp:base', | 16 '../base/base.gyp:base', |
25 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | 17 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
26 ], | 18 ], |
27 'include_dirs': [ | 19 'include_dirs': [ |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 'filters/video_renderer_base.cc', | 125 'filters/video_renderer_base.cc', |
134 'filters/video_renderer_base.h', | 126 'filters/video_renderer_base.h', |
135 ], | 127 ], |
136 'direct_dependent_settings': { | 128 'direct_dependent_settings': { |
137 'include_dirs': [ | 129 'include_dirs': [ |
138 '..', | 130 '..', |
139 ], | 131 ], |
140 }, | 132 }, |
141 'conditions': [ | 133 'conditions': [ |
142 ['OS =="linux"', { | 134 ['OS =="linux"', { |
143 'sources/': [ ['exclude', '_(mac|win)\\.cc$'], | |
144 ['exclude', '\\.mm?$' ] ], | |
145 'link_settings': { | 135 'link_settings': { |
146 'libraries': [ | 136 'libraries': [ |
147 '-lasound', | 137 '-lasound', |
148 ], | 138 ], |
149 }, | 139 }, |
150 }], | 140 }], |
151 ['OS =="freebsd"', { | |
152 'sources/': [ ['exclude', '_(mac|win)\\.cc$'], | |
153 ['exclude', '\\.mm?$' ] ], | |
154 'link_settings': { | |
155 'libraries': [ | |
156 ], | |
157 }, | |
158 }], | |
159 ['OS =="mac"', { | 141 ['OS =="mac"', { |
160 'link_settings': { | 142 'link_settings': { |
161 'libraries': [ | 143 'libraries': [ |
162 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', | 144 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', |
163 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', | 145 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', |
164 ], | 146 ], |
165 }, | 147 }, |
166 'sources/': [ ['exclude', '_(linux|win)\\.cc$'], | |
167 ], | |
168 }], | |
169 [ 'OS == "win"', { | |
170 'sources/': [ ['exclude', '_(linux|mac|posix)\\.cc$'], | |
171 ['exclude', '\\.mm?$' ] ], | |
172 }], | 148 }], |
173 ], | 149 ], |
174 }, | 150 }, |
175 { | 151 { |
176 'target_name': 'media_unittests', | 152 'target_name': 'media_unittests', |
177 'type': 'executable', | 153 'type': 'executable', |
178 'msvs_guid': 'C8C6183C-B03C-11DD-B471-DFD256D89593', | 154 'msvs_guid': 'C8C6183C-B03C-11DD-B471-DFD256D89593', |
179 'dependencies': [ | 155 'dependencies': [ |
180 'media', | 156 'media', |
181 '../base/base.gyp:base', | 157 '../base/base.gyp:base', |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 ], | 412 ], |
437 }], | 413 }], |
438 ], | 414 ], |
439 } | 415 } |
440 | 416 |
441 # Local Variables: | 417 # Local Variables: |
442 # tab-width:2 | 418 # tab-width:2 |
443 # indent-tabs-mode:nil | 419 # indent-tabs-mode:nil |
444 # End: | 420 # End: |
445 # vim: set expandtab tabstop=2 shiftwidth=2: | 421 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |