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. | 6 # normal target and everything should work correctly. |
7 template("ppapi_cdm_adapter") { | 7 template("ppapi_cdm_adapter") { |
8 if (is_mac || is_linux) { | 8 if (is_mac || is_linux) { |
9 _target_type = "loadable_module" | 9 _target_type = "loadable_module" |
10 } else { | 10 } else { |
11 _target_type = "shared_library" | 11 _target_type = "shared_library" |
12 } | 12 } |
13 | 13 |
14 target(_target_type, target_name) { | 14 target(_target_type, target_name) { |
15 # Don't filter sources list again. | 15 # Don't filter sources list again. |
16 set_sources_assignment_filter([]) | 16 set_sources_assignment_filter([]) |
17 cflags = [] | 17 cflags = [] |
18 sources = [] | 18 sources = [] |
19 ldflags = [] | 19 ldflags = [] |
20 libs = [] | 20 libs = [] |
21 forward_variables_from(invoker, "*") | 21 forward_variables_from(invoker, "*") |
22 | 22 |
23 defines += [ "USE_PPAPI_CDM_ADAPTER" ] | 23 defines += [ "USE_PPAPI_CDM_ADAPTER" ] |
24 deps += [ | 24 deps += [ |
| 25 "//build/config:exe_and_shlib_deps", |
25 "//media:cdm_api", | 26 "//media:cdm_api", |
26 "//ppapi/cpp", | 27 "//ppapi/cpp", |
27 ] | 28 ] |
28 sources += [ | 29 sources += [ |
29 "//media/cdm/cdm_helpers.cc", | 30 "//media/cdm/cdm_helpers.cc", |
30 "//media/cdm/cdm_helpers.h", | 31 "//media/cdm/cdm_helpers.h", |
31 "//media/cdm/cdm_wrapper.h", | 32 "//media/cdm/cdm_wrapper.h", |
32 "//media/cdm/ppapi/cdm_file_io_impl.cc", | 33 "//media/cdm/ppapi/cdm_file_io_impl.cc", |
33 "//media/cdm/ppapi/cdm_file_io_impl.h", | 34 "//media/cdm/ppapi/cdm_file_io_impl.h", |
34 "//media/cdm/ppapi/cdm_logging.cc", | 35 "//media/cdm/ppapi/cdm_logging.cc", |
(...skipping 24 matching lines...) Expand all Loading... |
59 | 60 |
60 if (is_linux) { | 61 if (is_linux) { |
61 # CDM adapter depends on a CDM in component and non-component builds. | 62 # CDM adapter depends on a CDM in component and non-component builds. |
62 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 63 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
63 } | 64 } |
64 | 65 |
65 # TODO(jschuh) crbug.com/167187 | 66 # TODO(jschuh) crbug.com/167187 |
66 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 67 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
67 } | 68 } |
68 } | 69 } |
OLD | NEW |