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

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

Issue 1123433002: Add a GN flag for the Windows multi-dll build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « gpu/config/BUILD.gn ('k') | remoting/remoting_version.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/version.gni") # TODO layering violation!
7 import("//media/cdm/ppapi/cdm_adapter.gni") 7 import("//media/cdm/ppapi/cdm_adapter.gni")
8 8
9 # Android doesn't use ffmpeg. 9 # Android doesn't use ffmpeg.
10 use_ffmpeg = !is_android 10 use_ffmpeg = !is_android
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 "external_clear_key/ffmpeg_cdm_video_decoder.cc", 42 "external_clear_key/ffmpeg_cdm_video_decoder.cc",
43 "external_clear_key/ffmpeg_cdm_video_decoder.h", 43 "external_clear_key/ffmpeg_cdm_video_decoder.h",
44 ] 44 ]
45 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ] 45 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ]
46 deps += [ "//third_party/ffmpeg" ] 46 deps += [ "//third_party/ffmpeg" ]
47 } 47 }
48 48
49 # TODO(GYP) on Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', 49 # TODO(GYP) on Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
50 } 50 }
51 51
52 clearkeycdmadapter_rc_file = "$target_gen_dir/clearkeycdmadapter_version.rc"
53
54 process_version("clearkeycdmadapter_resources") { 52 process_version("clearkeycdmadapter_resources") {
55 visibility = [ ":*" ] 53 visibility = [ ":*" ]
56 sources = [ 54 sources = [
57 "//media/clearkeycdmadapter.ver", 55 "//media/clearkeycdmadapter.ver",
58 "external_clear_key/BRANDING", 56 "external_clear_key/BRANDING",
59 ] 57 ]
60 output = clearkeycdmadapter_rc_file 58 output = "$target_gen_dir/clearkeycdmadapter_version.rc"
61 } 59 }
62 60
63 cdm_adapter("clearkeycdmadapter") { 61 cdm_adapter("clearkeycdmadapter") {
64 sources = [
65 clearkeycdmadapter_rc_file,
66 ]
67
68 # Check whether the plugin's origin URL is valid. 62 # Check whether the plugin's origin URL is valid.
69 defines = [ "CHECK_DOCUMENT_URL" ] 63 defines = [ "CHECK_DOCUMENT_URL" ]
70 deps = [ 64 deps = [
71 ":clearkeycdm", 65 ":clearkeycdm",
72 ":clearkeycdmadapter_resources", 66 ":clearkeycdmadapter_resources",
73 "//ppapi/cpp", 67 "//ppapi/cpp",
74 ] 68 ]
75 69
76 if (is_posix && !is_mac && enable_pepper_cdms) { 70 if (is_posix && !is_mac && enable_pepper_cdms) {
77 # Because clearkeycdm has type 'loadable_module', we must explicitly 71 # Because clearkeycdm has type 'loadable_module', we must explicitly
78 # specify this dependency. 72 # specify this dependency.
79 ldflags = [ rebase_path("$root_out_dir/libclearkeycdm.so", root_build_dir) ] 73 ldflags = [ rebase_path("$root_out_dir/libclearkeycdm.so", root_build_dir) ]
80 libs = [ "rt" ] 74 libs = [ "rt" ]
81 } 75 }
82 } 76 }
OLDNEW
« no previous file with comments | « gpu/config/BUILD.gn ('k') | remoting/remoting_version.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698