Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: media/base/BUILD.gn

Issue 1141703002: Chromium changes for static linking ffmpeg (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating media library initialize calls Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 if (media_use_ffmpeg) { 209 if (media_use_ffmpeg) {
210 sources += [ 210 sources += [
211 "audio_video_metadata_extractor.cc", 211 "audio_video_metadata_extractor.cc",
212 "audio_video_metadata_extractor.h", 212 "audio_video_metadata_extractor.h",
213 "container_names.cc", 213 "container_names.cc",
214 "container_names.h", 214 "container_names.h",
215 "media_file_checker.cc", 215 "media_file_checker.cc",
216 "media_file_checker.h", 216 "media_file_checker.h",
217 ] 217 ]
218 if (is_win) {
219 sources += [ "media_win.cc" ]
220 } else if (is_posix) {
221 sources += [ "media_posix.cc" ]
222 }
223 218
224 deps += [ "//third_party/ffmpeg" ] 219 deps += [ "//third_party/ffmpeg" ]
225 } 220 }
226 221
227 if (enable_browser_cdms) { 222 if (enable_browser_cdms) {
228 sources += [ 223 sources += [
229 "browser_cdm.cc", 224 "browser_cdm.cc",
230 "browser_cdm.h", 225 "browser_cdm.h",
231 "browser_cdm_factory.cc", 226 "browser_cdm_factory.cc",
232 "browser_cdm_factory.h", 227 "browser_cdm_factory.h",
233 ] 228 ]
234 } 229 }
235 230
236 if (is_android) { 231 if (is_android) {
237 sources += [ "media_stub.cc" ]
238 public_deps = [ 232 public_deps = [
239 "//media/base/android", 233 "//media/base/android",
240 "//media/base/android:media_java", 234 "//media/base/android:media_java",
241 "//media/base/android:media_jni_headers", 235 "//media/base/android:media_jni_headers",
242 "//media/base/android:video_capture_jni_headers", 236 "//media/base/android:video_capture_jni_headers",
243 ] 237 ]
244 allow_circular_includes_from += [ "//media/base/android" ] 238 allow_circular_includes_from += [ "//media/base/android" ]
245 } 239 }
246 240
247 if (is_linux && use_x11) { 241 if (is_linux && use_x11) {
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 if (is_posix) { 525 if (is_posix) {
532 yasm_flags += [ "-DELF" ] 526 yasm_flags += [ "-DELF" ]
533 if (current_cpu == "x64") { 527 if (current_cpu == "x64") {
534 # TODO(ajwong): Why isn't this true in mac? 528 # TODO(ajwong): Why isn't this true in mac?
535 yasm_flags += [ "-DPIC" ] 529 yasm_flags += [ "-DPIC" ]
536 } 530 }
537 } 531 }
538 } 532 }
539 } 533 }
540 } 534 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698