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

Side by Side Diff: media/cdm/ppapi/BUILD.gn

Issue 2338093003: Revert of gn: Generalize process_version() and move it to build/util (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « ios/crnet/BUILD.gn ('k') | remoting/build/config/remoting_build.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/features.gni") 5 import("//build/config/features.gni")
6 import("//chrome/process_version_rc_template.gni") 6 import("//chrome/version.gni") # TODO layering violation!
7 import("//media/cdm/ppapi/cdm_paths.gni") 7 import("//media/cdm/ppapi/cdm_paths.gni")
8 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") 8 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni")
9 import("//media/media_options.gni") 9 import("//media/media_options.gni")
10 10
11 shared_library("clearkeycdm") { 11 shared_library("clearkeycdm") {
12 output_dir = "$root_out_dir/$clearkey_cdm_path" 12 output_dir = "$root_out_dir/$clearkey_cdm_path"
13 sources = [ 13 sources = [
14 "cdm_file_io_test.cc", 14 "cdm_file_io_test.cc",
15 "cdm_file_io_test.h", 15 "cdm_file_io_test.h",
16 "external_clear_key/cdm_video_decoder.cc", 16 "external_clear_key/cdm_video_decoder.cc",
(...skipping 26 matching lines...) Expand all
43 ] 43 ]
44 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ] 44 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ]
45 deps += [ "//third_party/ffmpeg" ] 45 deps += [ "//third_party/ffmpeg" ]
46 } 46 }
47 47
48 if (is_mac) { 48 if (is_mac) {
49 ldflags = [ "-Wl,-install_name,@loader_path/libclearkeycdm.dylib" ] 49 ldflags = [ "-Wl,-install_name,@loader_path/libclearkeycdm.dylib" ]
50 } 50 }
51 } 51 }
52 52
53 process_version_rc_template("clearkeycdmadapter_resources") { 53 process_version("clearkeycdmadapter_resources") {
54 visibility = [ ":*" ] 54 visibility = [ ":*" ]
55 template_file = chrome_version_rc_template
55 sources = [ 56 sources = [
56 "//media/clearkeycdmadapter.ver", 57 "//media/clearkeycdmadapter.ver",
57 "external_clear_key/BRANDING", 58 "external_clear_key/BRANDING",
58 ] 59 ]
59 output = "$target_gen_dir/clearkeycdmadapter_version.rc" 60 output = "$target_gen_dir/clearkeycdmadapter_version.rc"
60 } 61 }
61 62
62 ppapi_cdm_adapter("clearkeycdmadapter") { 63 ppapi_cdm_adapter("clearkeycdmadapter") {
63 output_dir = "$root_out_dir/$clearkey_cdm_path" 64 output_dir = "$root_out_dir/$clearkey_cdm_path"
64 65
65 # Check whether the plugin's origin URL is valid. 66 # Check whether the plugin's origin URL is valid.
66 defines = [ "CHECK_DOCUMENT_URL" ] 67 defines = [ "CHECK_DOCUMENT_URL" ]
67 deps = [ 68 deps = [
68 ":clearkeycdm", 69 ":clearkeycdm",
69 ":clearkeycdmadapter_resources", 70 ":clearkeycdmadapter_resources",
70 "//base", # Required for the allocator implementation. 71 "//base", # Required for the allocator implementation.
71 "//media:shared_memory_support", 72 "//media:shared_memory_support",
72 "//ui/gfx/geometry", 73 "//ui/gfx/geometry",
73 ] 74 ]
74 } 75 }
OLDNEW
« no previous file with comments | « ios/crnet/BUILD.gn ('k') | remoting/build/config/remoting_build.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698