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

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

Issue 2308313003: gn: Generalize process_version() and move it to build/util (Closed)
Patch Set: Move branding_file_path to chrome/process_version_rc_template.gni 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/version.gni") # TODO layering violation! 6 import("//chrome/process_version_rc_template.gni")
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("clearkeycdmadapter_resources") { 53 process_version_rc_template("clearkeycdmadapter_resources") {
54 visibility = [ ":*" ] 54 visibility = [ ":*" ]
55 template_file = chrome_version_rc_template
56 sources = [ 55 sources = [
57 "//media/clearkeycdmadapter.ver", 56 "//media/clearkeycdmadapter.ver",
58 "external_clear_key/BRANDING", 57 "external_clear_key/BRANDING",
59 ] 58 ]
60 output = "$target_gen_dir/clearkeycdmadapter_version.rc" 59 output = "$target_gen_dir/clearkeycdmadapter_version.rc"
61 } 60 }
62 61
63 ppapi_cdm_adapter("clearkeycdmadapter") { 62 ppapi_cdm_adapter("clearkeycdmadapter") {
64 output_dir = "$root_out_dir/$clearkey_cdm_path" 63 output_dir = "$root_out_dir/$clearkey_cdm_path"
65 64
66 # Check whether the plugin's origin URL is valid. 65 # Check whether the plugin's origin URL is valid.
67 defines = [ "CHECK_DOCUMENT_URL" ] 66 defines = [ "CHECK_DOCUMENT_URL" ]
68 deps = [ 67 deps = [
69 ":clearkeycdm", 68 ":clearkeycdm",
70 ":clearkeycdmadapter_resources", 69 ":clearkeycdmadapter_resources",
71 "//base", # Required for the allocator implementation. 70 "//base", # Required for the allocator implementation.
72 "//media:shared_memory_support", 71 "//media:shared_memory_support",
73 "//ui/gfx/geometry", 72 "//ui/gfx/geometry",
74 ] 73 ]
75 } 74 }
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