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

Side by Side Diff: media/media_cdm_adapter.gyp

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, 1 month 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/supported_cdm_versions.h ('k') | third_party/widevine/cdm/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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 file defines a common base target for all CDM adapter implementations. 5 # This file defines a common base target for all CDM adapter implementations.
6 # We use 'direct_dependent_settings' to override target type and settings so 6 # We use 'direct_dependent_settings' to override target type and settings so
7 # that all CDM adapter implementations have the correct type and settings 7 # that all CDM adapter implementations have the correct type and settings
8 # automatically. 8 # automatically.
9 # 9 #
10 # WARNING: Keep 'cdmadapter' target out of media.gyp. /build/all.gyp:All depends 10 # WARNING: Keep 'cdmadapter' target out of media.gyp. /build/all.gyp:All depends
11 # directly on media.gyp:*. If 'cdmadapter' is defined in media.gyp, then 11 # directly on media.gyp:*. If 'cdmadapter' is defined in media.gyp, then
12 # 'direct_dependent_settings' will be applied to 'All' target and bad 12 # 'direct_dependent_settings' will be applied to 'All' target and bad
13 # things happen, e.g. the type of 'All' target becomes a plugin on Mac. 13 # things happen, e.g. the type of 'All' target becomes a plugin on Mac.
14 { 14 {
15 'conditions': [ 15 'conditions': [
16 ['enable_pepper_cdms==1', { 16 ['enable_pepper_cdms==1', {
17 'targets': [ 17 'targets': [
18 { 18 {
19 # GN version: Use the template cdm_adapter in 19 # GN version: Use the template cdm_adapter in
20 # //media/cdm/ppapi/cdm_adapter.gni. 20 # //media/cdm/ppapi/ppapi_cdm_adapter.gni.
21 'target_name': 'cdmadapter', 21 'target_name': 'cdmadapter',
22 'type': 'none', 22 'type': 'none',
23 'direct_dependent_settings': { 23 'direct_dependent_settings': {
24 'defines': [
25 'USE_PPAPI_CDM_ADAPTER',
26 ],
24 'sources': [ 27 'sources': [
25 'cdm/api/content_decryption_module.h', 28 'cdm/api/content_decryption_module.h',
26 'cdm/ppapi/cdm_adapter.cc', 29 'cdm/cdm_wrapper.h',
27 'cdm/ppapi/cdm_adapter.h', 30 'cdm/ppapi/ppapi_cdm_adapter.cc',
31 'cdm/ppapi/ppapi_cdm_adapter.h',
28 'cdm/ppapi/cdm_file_io_impl.cc', 32 'cdm/ppapi/cdm_file_io_impl.cc',
29 'cdm/ppapi/cdm_file_io_impl.h', 33 'cdm/ppapi/cdm_file_io_impl.h',
30 'cdm/ppapi/cdm_helpers.cc', 34 'cdm/ppapi/cdm_helpers.cc',
31 'cdm/ppapi/cdm_helpers.h', 35 'cdm/ppapi/cdm_helpers.h',
32 'cdm/ppapi/cdm_logging.cc', 36 'cdm/ppapi/cdm_logging.cc',
33 'cdm/ppapi/cdm_logging.h', 37 'cdm/ppapi/cdm_logging.h',
34 'cdm/ppapi/cdm_wrapper.h',
35 'cdm/ppapi/linked_ptr.h', 38 'cdm/ppapi/linked_ptr.h',
36 'cdm/ppapi/supported_cdm_versions.h', 39 'cdm/supported_cdm_versions.h',
37 ], 40 ],
38 'conditions': [ 41 'conditions': [
39 ['os_posix == 1 and OS != "mac"', { 42 ['os_posix == 1 and OS != "mac"', {
40 'cflags': ['-fvisibility=hidden'], 43 'cflags': ['-fvisibility=hidden'],
41 'type': 'loadable_module', 44 'type': 'loadable_module',
42 # Allow the adapter to find the CDM in the same directory. 45 # Allow the adapter to find the CDM in the same directory.
43 'ldflags': ['-Wl,-rpath=\$$ORIGIN'], 46 'ldflags': ['-Wl,-rpath=\$$ORIGIN'],
44 }], 47 }],
45 ['OS == "win"', { 48 ['OS == "win"', {
46 'type': 'shared_library', 49 'type': 'shared_library',
(...skipping 13 matching lines...) Expand all
60 'DYLIB_INSTALL_NAME_BASE': '@loader_path', 63 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
61 }, 64 },
62 }], 65 }],
63 ], 66 ],
64 }, 67 },
65 }, 68 },
66 ], 69 ],
67 }], 70 }],
68 ], 71 ],
69 } 72 }
OLDNEW
« no previous file with comments | « media/cdm/supported_cdm_versions.h ('k') | third_party/widevine/cdm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698