OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//build/config/linux/pkg_config.gni") | 9 import("//build/config/linux/pkg_config.gni") |
10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 if (media_use_ffmpeg) { | 210 if (media_use_ffmpeg) { |
211 sources += [ | 211 sources += [ |
212 "audio_video_metadata_extractor.cc", | 212 "audio_video_metadata_extractor.cc", |
213 "audio_video_metadata_extractor.h", | 213 "audio_video_metadata_extractor.h", |
214 "container_names.cc", | 214 "container_names.cc", |
215 "container_names.h", | 215 "container_names.h", |
216 "media_file_checker.cc", | 216 "media_file_checker.cc", |
217 "media_file_checker.h", | 217 "media_file_checker.h", |
218 ] | 218 ] |
219 if (is_win) { | |
220 sources += [ "media_win.cc" ] | |
221 } else if (is_posix) { | |
222 sources += [ "media_posix.cc" ] | |
223 } | |
224 | 219 |
225 deps += [ "//third_party/ffmpeg" ] | 220 deps += [ "//third_party/ffmpeg" ] |
226 } | 221 } |
227 | 222 |
228 if (enable_browser_cdms) { | 223 if (enable_browser_cdms) { |
229 sources += [ | 224 sources += [ |
230 "browser_cdm.cc", | 225 "browser_cdm.cc", |
231 "browser_cdm.h", | 226 "browser_cdm.h", |
232 "browser_cdm_factory.cc", | 227 "browser_cdm_factory.cc", |
233 "browser_cdm_factory.h", | 228 "browser_cdm_factory.h", |
234 ] | 229 ] |
235 } | 230 } |
236 | 231 |
237 if (is_android) { | 232 if (is_android) { |
238 sources += [ "media_stub.cc" ] | |
239 public_deps = [ | 233 public_deps = [ |
240 "//media/base/android", | 234 "//media/base/android", |
241 "//media/base/android:media_java", | 235 "//media/base/android:media_java", |
242 "//media/base/android:media_jni_headers", | 236 "//media/base/android:media_jni_headers", |
243 "//media/base/android:video_capture_jni_headers", | 237 "//media/base/android:video_capture_jni_headers", |
244 ] | 238 ] |
245 allow_circular_includes_from += [ "//media/base/android" ] | 239 allow_circular_includes_from += [ "//media/base/android" ] |
246 } | 240 } |
247 | 241 |
248 if (is_linux && use_x11) { | 242 if (is_linux && use_x11) { |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 if (is_posix) { | 513 if (is_posix) { |
520 yasm_flags += [ "-DELF" ] | 514 yasm_flags += [ "-DELF" ] |
521 if (current_cpu == "x64") { | 515 if (current_cpu == "x64") { |
522 # TODO(ajwong): Why isn't this true in mac? | 516 # TODO(ajwong): Why isn't this true in mac? |
523 yasm_flags += [ "-DPIC" ] | 517 yasm_flags += [ "-DPIC" ] |
524 } | 518 } |
525 } | 519 } |
526 } | 520 } |
527 } | 521 } |
528 } | 522 } |
OLD | NEW |