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

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

Issue 929793006: Update existing uses of /wd4267 to use the GN config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@x64
Patch Set: Created 5 years, 10 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 | « media/BUILD.gn ('k') | net/BUILD.gn » ('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 6
7 # Android doesn't use ffmpeg. 7 # Android doesn't use ffmpeg.
8 use_ffmpeg = !is_android 8 use_ffmpeg = !is_android
9 9
10 # The GYP version supports build flags "use_fake_video_decoder" and 10 # The GYP version supports build flags "use_fake_video_decoder" and
11 # "use_vpx". These should be added here if necessary but its not clear if 11 # "use_vpx". These should be added here if necessary but its not clear if
12 # they are required any more. 12 # they are required any more.
13 shared_library("clearkeycdm") { 13 shared_library("clearkeycdm") {
14 sources = [ 14 sources = [
15 "cdm_file_io_test.cc", 15 "cdm_file_io_test.cc",
16 "cdm_file_io_test.h", 16 "cdm_file_io_test.h",
17 "external_clear_key/cdm_video_decoder.cc", 17 "external_clear_key/cdm_video_decoder.cc",
18 "external_clear_key/cdm_video_decoder.h", 18 "external_clear_key/cdm_video_decoder.h",
19 "external_clear_key/clear_key_cdm.cc", 19 "external_clear_key/clear_key_cdm.cc",
20 "external_clear_key/clear_key_cdm.h", 20 "external_clear_key/clear_key_cdm.h",
21 "external_clear_key/clear_key_cdm_common.h", 21 "external_clear_key/clear_key_cdm_common.h",
22 ] 22 ]
23 23
24 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
25 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
26
24 defines = [ "CDM_IMPLEMENTATION" ] 27 defines = [ "CDM_IMPLEMENTATION" ]
25 28
26 deps = [ 29 deps = [
27 "//base", 30 "//base",
28 "//media", # For media::AudioTimestampHelper 31 "//media", # For media::AudioTimestampHelper
29 "//media:shared_memory_support", # For media::AudioBus. 32 "//media:shared_memory_support", # For media::AudioBus.
30 "//url", 33 "//url",
31 ] 34 ]
32 35
33 if (use_ffmpeg) { 36 if (use_ffmpeg) {
34 sources += [ 37 sources += [
35 "external_clear_key/ffmpeg_cdm_audio_decoder.cc", 38 "external_clear_key/ffmpeg_cdm_audio_decoder.cc",
36 "external_clear_key/ffmpeg_cdm_audio_decoder.h", 39 "external_clear_key/ffmpeg_cdm_audio_decoder.h",
37 "external_clear_key/ffmpeg_cdm_video_decoder.cc", 40 "external_clear_key/ffmpeg_cdm_video_decoder.cc",
38 "external_clear_key/ffmpeg_cdm_video_decoder.h", 41 "external_clear_key/ffmpeg_cdm_video_decoder.h",
39 ] 42 ]
40 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ] 43 defines += [ "CLEAR_KEY_CDM_USE_FFMPEG_DECODER" ]
41 deps += [ "//third_party/ffmpeg" ] 44 deps += [ "//third_party/ffmpeg" ]
42 } 45 }
43 46
44 if (is_win) {
45 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
46 cflags = [ "/wd4267" ]
47 }
48
49 # TODO(GYP) on Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', 47 # TODO(GYP) on Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
50 } 48 }
51 49
52 # TODO(GYP): clearkeycdmadapter_resources 50 # TODO(GYP): clearkeycdmadapter_resources
53 51
54 group("clearkeycdmadapter") { 52 group("clearkeycdmadapter") {
55 deps = [ 53 deps = [
56 #":cdmadapter", TODO(GYP) 54 #":cdmadapter", TODO(GYP)
57 ":clearkeycdm", 55 ":clearkeycdm",
58 56
59 #":clearkeycdmadapter_resources", TODO(GYP) 57 #":clearkeycdmadapter_resources", TODO(GYP)
60 "//ppapi/cpp", 58 "//ppapi/cpp",
61 ] 59 ]
62 } 60 }
OLDNEW
« no previous file with comments | « media/BUILD.gn ('k') | net/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698