| 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/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
| 9 import("//media/media_options.gni") | 9 import("//media/media_options.gni") |
| 10 | 10 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 } | 210 } |
| 211 | 211 |
| 212 if (is_android) { | 212 if (is_android) { |
| 213 sources += [ "media_stub.cc" ] | 213 sources += [ "media_stub.cc" ] |
| 214 } else if (is_win) { | 214 } else if (is_win) { |
| 215 sources += [ "media_win.cc" ] | 215 sources += [ "media_win.cc" ] |
| 216 } else if (is_posix) { | 216 } else if (is_posix) { |
| 217 sources += [ "media_posix.cc" ] | 217 sources += [ "media_posix.cc" ] |
| 218 } | 218 } |
| 219 | 219 |
| 220 if (is_linux && use_x11) { | 220 if (is_linux && use_x11 && !is_ensemble) { |
| 221 configs += [ | 221 configs += [ |
| 222 "//build/config/linux:x11", | 222 "//build/config/linux:x11", |
| 223 "//build/config/linux:xext", | 223 "//build/config/linux:xext", |
| 224 | 224 |
| 225 # TODO(ajwong): Why does xent get a separate thing in //build/config/linux
:BUILD.gn | 225 # TODO(ajwong): Why does xent get a separate thing in //build/config/linux
:BUILD.gn |
| 226 # "//build/config/linux:xdamage", | 226 # "//build/config/linux:xdamage", |
| 227 # "//build/config/linux:xfixes", | 227 # "//build/config/linux:xfixes", |
| 228 # "//build/config/linux:xtst", | 228 # "//build/config/linux:xtst", |
| 229 ] | 229 ] |
| 230 sources += [ "user_input_monitor_linux.cc" ] | 230 sources += [ "user_input_monitor_linux.cc" ] |
| (...skipping 16 matching lines...) Expand all Loading... |
| 247 ":media_sse2", | 247 ":media_sse2", |
| 248 ] | 248 ] |
| 249 } | 249 } |
| 250 | 250 |
| 251 if (is_linux || is_win) { | 251 if (is_linux || is_win) { |
| 252 sources += [ | 252 sources += [ |
| 253 "keyboard_event_counter.cc", | 253 "keyboard_event_counter.cc", |
| 254 "keyboard_event_counter.h", | 254 "keyboard_event_counter.h", |
| 255 ] | 255 ] |
| 256 } | 256 } |
| 257 |
| 258 if (is_ensemble) { |
| 259 deps -= [ "//skia" ] |
| 260 } |
| 257 } | 261 } |
| 258 | 262 |
| 259 # Minimal media component for media/cast on iOS. | 263 # Minimal media component for media/cast on iOS. |
| 260 config("base_for_cast_ios_dependent_config") { | 264 config("base_for_cast_ios_dependent_config") { |
| 261 defines = [ "MEDIA_FOR_CAST_IOS" ] | 265 defines = [ "MEDIA_FOR_CAST_IOS" ] |
| 262 } | 266 } |
| 263 | 267 |
| 264 source_set("base_for_cast_ios") { | 268 source_set("base_for_cast_ios") { |
| 265 sources = [ | 269 sources = [ |
| 266 "video_frame.cc", | 270 "video_frame.cc", |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 if (is_posix) { | 472 if (is_posix) { |
| 469 yasm_flags += [ "-DELF" ] | 473 yasm_flags += [ "-DELF" ] |
| 470 if (cpu_arch == "x64") { | 474 if (cpu_arch == "x64") { |
| 471 # TODO(ajwong): Why isn't this true in mac? | 475 # TODO(ajwong): Why isn't this true in mac? |
| 472 yasm_flags += [ "-DPIC" ] | 476 yasm_flags += [ "-DPIC" ] |
| 473 } | 477 } |
| 474 } | 478 } |
| 475 } | 479 } |
| 476 } | 480 } |
| 477 } | 481 } |
| OLD | NEW |