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

Side by Side Diff: media/cdm/ppapi/ppapi_cdm_adapter.gni

Issue 1402413005: Rename cdm_adapter to ppapi_cdm_adapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename flag Created 5 years, 2 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/cdm/ppapi/ppapi_cdm_adapter.cc ('k') | media/cdm/ppapi/supported_cdm_versions.h » ('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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 # This template defines a CDM adapter target. Just use this as you would a 5 # This template defines a CDM adapter target. Just use this as you would a
6 # normal target and everything should work correctly. If GYP, you would instead 6 # normal target and everything should work correctly. If GYP, you would instead
7 # depend on media/media_cdm_adapter.gyp:cdmadapter which would in turn modify 7 # depend on media/media_cdm_adapter.gyp:cdmadapter which would in turn modify
8 # your target with direct_dependent_settings. 8 # your target with direct_dependent_settings.
9 template("cdm_adapter") { 9 template("ppapi_cdm_adapter") {
10 # TODO(GYP) On Mac/Linux this should be a loadable_module. 10 # TODO(GYP) On Mac/Linux this should be a loadable_module.
11 shared_library(target_name) { 11 shared_library(target_name) {
12 # Don't filter sources list again. 12 # Don't filter sources list again.
13 set_sources_assignment_filter([]) 13 set_sources_assignment_filter([])
14 cflags = [] 14 cflags = []
15 sources = [] 15 sources = []
16 ldflags = [] 16 ldflags = []
17 libs = [] 17 libs = []
18 forward_variables_from(invoker, "*") 18 forward_variables_from(invoker, "*")
19 19
20 defines += [ "USE_PPAPI_CDM_ADAPTER" ]
20 sources += [ 21 sources += [
21 "//media/cdm/api/content_decryption_module.h", 22 "//media/cdm/api/content_decryption_module.h",
22 "//media/cdm/ppapi/cdm_adapter.cc", 23 "//media/cdm/cdm_wrapper.h",
23 "//media/cdm/ppapi/cdm_adapter.h",
24 "//media/cdm/ppapi/cdm_file_io_impl.cc", 24 "//media/cdm/ppapi/cdm_file_io_impl.cc",
25 "//media/cdm/ppapi/cdm_file_io_impl.h", 25 "//media/cdm/ppapi/cdm_file_io_impl.h",
26 "//media/cdm/ppapi/cdm_helpers.cc", 26 "//media/cdm/ppapi/cdm_helpers.cc",
27 "//media/cdm/ppapi/cdm_helpers.h", 27 "//media/cdm/ppapi/cdm_helpers.h",
28 "//media/cdm/ppapi/cdm_logging.cc", 28 "//media/cdm/ppapi/cdm_logging.cc",
29 "//media/cdm/ppapi/cdm_logging.h", 29 "//media/cdm/ppapi/cdm_logging.h",
30 "//media/cdm/ppapi/cdm_wrapper.h",
31 "//media/cdm/ppapi/linked_ptr.h", 30 "//media/cdm/ppapi/linked_ptr.h",
32 "//media/cdm/ppapi/supported_cdm_versions.h", 31 "//media/cdm/ppapi/ppapi_cdm_adapter.cc",
32 "//media/cdm/ppapi/ppapi_cdm_adapter.h",
33 "//media/cdm/supported_cdm_versions.h",
33 ] 34 ]
34 if (is_mac) { 35 if (is_mac) {
35 ldflags += [ 36 ldflags += [
36 # Not to strip important symbols by -Wl,-dead_strip. 37 # Not to strip important symbols by -Wl,-dead_strip.
37 "-Wl,-exported_symbol,_PPP_GetInterface", 38 "-Wl,-exported_symbol,_PPP_GetInterface",
38 "-Wl,-exported_symbol,_PPP_InitializeModule", 39 "-Wl,-exported_symbol,_PPP_InitializeModule",
39 "-Wl,-exported_symbol,_PPP_ShutdownModule", 40 "-Wl,-exported_symbol,_PPP_ShutdownModule",
40 ] 41 ]
41 #TODO(GYP) Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', 42 #TODO(GYP) Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
42 } else if (is_posix) { 43 } else if (is_posix) {
43 cflags += [ "-fvisibility=hidden" ] 44 cflags += [ "-fvisibility=hidden" ]
44 45
45 # Required for clock_gettime() 46 # Required for clock_gettime()
46 libs += [ "rt" ] 47 libs += [ "rt" ]
47 } 48 }
48 49
49 # TODO(jschuh) crbug.com/167187 50 # TODO(jschuh) crbug.com/167187
50 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 51 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
51 } 52 }
52 } 53 }
OLDNEW
« no previous file with comments | « media/cdm/ppapi/ppapi_cdm_adapter.cc ('k') | media/cdm/ppapi/supported_cdm_versions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698