| 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", | |
| 26 "//media:cdm_api", | 25 "//media:cdm_api", |
| 27 "//ppapi/cpp", | 26 "//ppapi/cpp", |
| 28 ] | 27 ] |
| 29 sources += [ | 28 sources += [ |
| 30 "//media/cdm/cdm_helpers.cc", | 29 "//media/cdm/cdm_helpers.cc", |
| 31 "//media/cdm/cdm_helpers.h", | 30 "//media/cdm/cdm_helpers.h", |
| 32 "//media/cdm/cdm_wrapper.h", | 31 "//media/cdm/cdm_wrapper.h", |
| 33 "//media/cdm/ppapi/cdm_file_io_impl.cc", | 32 "//media/cdm/ppapi/cdm_file_io_impl.cc", |
| 34 "//media/cdm/ppapi/cdm_file_io_impl.h", | 33 "//media/cdm/ppapi/cdm_file_io_impl.h", |
| 35 "//media/cdm/ppapi/cdm_logging.cc", | 34 "//media/cdm/ppapi/cdm_logging.cc", |
| (...skipping 24 matching lines...) Expand all Loading... |
| 60 | 59 |
| 61 if (is_linux) { | 60 if (is_linux) { |
| 62 # CDM adapter depends on a CDM in component and non-component builds. | 61 # CDM adapter depends on a CDM in component and non-component builds. |
| 63 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 62 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 64 } | 63 } |
| 65 | 64 |
| 66 # TODO(jschuh) crbug.com/167187 | 65 # TODO(jschuh) crbug.com/167187 |
| 67 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 66 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 68 } | 67 } |
| 69 } | 68 } |
| OLD | NEW |