OLD | NEW |
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("ppapi_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 defines += [ "USE_PPAPI_CDM_ADAPTER" ] |
| 21 deps += [ |
| 22 "//media:cdm_api", |
| 23 "//ppapi/cpp", |
| 24 ] |
21 sources += [ | 25 sources += [ |
22 "//media/cdm/api/content_decryption_module.h", | |
23 "//media/cdm/cdm_helpers.cc", | 26 "//media/cdm/cdm_helpers.cc", |
24 "//media/cdm/cdm_helpers.h", | 27 "//media/cdm/cdm_helpers.h", |
25 "//media/cdm/cdm_wrapper.h", | 28 "//media/cdm/cdm_wrapper.h", |
26 "//media/cdm/ppapi/cdm_file_io_impl.cc", | 29 "//media/cdm/ppapi/cdm_file_io_impl.cc", |
27 "//media/cdm/ppapi/cdm_file_io_impl.h", | 30 "//media/cdm/ppapi/cdm_file_io_impl.h", |
28 "//media/cdm/ppapi/cdm_logging.cc", | 31 "//media/cdm/ppapi/cdm_logging.cc", |
29 "//media/cdm/ppapi/cdm_logging.h", | 32 "//media/cdm/ppapi/cdm_logging.h", |
30 "//media/cdm/ppapi/linked_ptr.h", | 33 "//media/cdm/ppapi/linked_ptr.h", |
31 "//media/cdm/ppapi/ppapi_cdm_adapter.cc", | 34 "//media/cdm/ppapi/ppapi_cdm_adapter.cc", |
32 "//media/cdm/ppapi/ppapi_cdm_adapter.h", | 35 "//media/cdm/ppapi/ppapi_cdm_adapter.h", |
(...skipping 19 matching lines...) Expand all Loading... |
52 | 55 |
53 if (is_linux && !is_component_build) { | 56 if (is_linux && !is_component_build) { |
54 # CDM adapter depends on a CDM even in non-component builds. | 57 # CDM adapter depends on a CDM even in non-component builds. |
55 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 58 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
56 } | 59 } |
57 | 60 |
58 # TODO(jschuh) crbug.com/167187 | 61 # TODO(jschuh) crbug.com/167187 |
59 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 62 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
60 } | 63 } |
61 } | 64 } |
OLD | NEW |