Skip to content

Commit

Permalink
media: Fix gn deps on media/ targets.
Browse files Browse the repository at this point in the history
gn check out/GN //media/ passes.

BUG=599578

Review URL: https://codereview.chromium.org/1862543002

Cr-Commit-Position: refs/heads/master@{#387212}
  • Loading branch information
jrummell-chromium authored and Commit bot committed Apr 14, 2016
1 parent 2a5e604 commit 0200f0d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
11 changes: 10 additions & 1 deletion media/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ config("media_dependent_config") {
}
}

source_set("cdm_api") {
sources = [
"cdm/api/content_decryption_module.h",
]
}

component("media") {
sources = [
"cdm/aes_decryptor.cc",
Expand All @@ -80,6 +86,7 @@ component("media") {
"cdm/cdm_allocator.h",
"cdm/cdm_helpers.cc",
"cdm/cdm_helpers.h",
"cdm/cdm_wrapper.h",
"cdm/default_cdm_factory.cc",
"cdm/default_cdm_factory.h",
"cdm/json_web_key.cc",
Expand Down Expand Up @@ -227,7 +234,9 @@ component("media") {
cflags = []
libs = []
defines = []
deps = []
deps = [
":cdm_api",
]

include_dirs = [ "." ]
if (media_use_ffmpeg) {
Expand Down
2 changes: 1 addition & 1 deletion media/cdm/cdm_helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#if defined(USE_PPAPI_CDM_ADAPTER)
// When building the ppapi adapter do not include any non-trivial base/ headers.
#include "ppapi/cpp/logging.h"
#include "ppapi/cpp/logging.h" // nogncheck
#define PLATFORM_DCHECK PP_DCHECK
#else
#include "base/logging.h"
Expand Down
2 changes: 1 addition & 1 deletion media/cdm/cdm_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#if defined(USE_PPAPI_CDM_ADAPTER)
// When building the ppapi adapter do not include any non-trivial base/ headers.
#include "ppapi/cpp/logging.h"
#include "ppapi/cpp/logging.h" // nogncheck
#define PLATFORM_DCHECK PP_DCHECK
#else
#include "base/logging.h"
Expand Down
1 change: 0 additions & 1 deletion media/cdm/ppapi/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,5 @@ ppapi_cdm_adapter("clearkeycdmadapter") {
":clearkeycdm",
":clearkeycdmadapter_resources",
"//base", # Required for the allocator implementation.
"//ppapi/cpp",
]
}
5 changes: 4 additions & 1 deletion media/cdm/ppapi/ppapi_cdm_adapter.gni
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ template("ppapi_cdm_adapter") {
forward_variables_from(invoker, "*")

defines += [ "USE_PPAPI_CDM_ADAPTER" ]
deps += [
"//media:cdm_api",
"//ppapi/cpp",
]
sources += [
"//media/cdm/api/content_decryption_module.h",
"//media/cdm/cdm_helpers.cc",
"//media/cdm/cdm_helpers.h",
"//media/cdm/cdm_wrapper.h",
Expand Down
1 change: 0 additions & 1 deletion third_party/widevine/cdm/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ if ((is_chrome_branded || enable_widevine) && enable_pepper_cdms) {
":version_h",
":widevinecdm",
":widevinecdmadapter_resources",
"//ppapi/cpp",
]

if (is_linux) {
Expand Down

0 comments on commit 0200f0d

Please sign in to comment.