| 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. |
| 7 # depend on media/media_cdm_adapter.gyp:cdmadapter which would in turn modify | |
| 8 # your target with direct_dependent_settings. | |
| 9 template("ppapi_cdm_adapter") { | 7 template("ppapi_cdm_adapter") { |
| 10 if (is_mac || is_linux) { | 8 if (is_mac || is_linux) { |
| 11 _target_type = "loadable_module" | 9 _target_type = "loadable_module" |
| 12 } else { | 10 } else { |
| 13 _target_type = "shared_library" | 11 _target_type = "shared_library" |
| 14 } | 12 } |
| 15 | 13 |
| 16 target(_target_type, target_name) { | 14 target(_target_type, target_name) { |
| 17 # Don't filter sources list again. | 15 # Don't filter sources list again. |
| 18 set_sources_assignment_filter([]) | 16 set_sources_assignment_filter([]) |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 59 |
| 62 if (is_linux) { | 60 if (is_linux) { |
| 63 # 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. |
| 64 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 62 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 65 } | 63 } |
| 66 | 64 |
| 67 # TODO(jschuh) crbug.com/167187 | 65 # TODO(jschuh) crbug.com/167187 |
| 68 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 66 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 69 } | 67 } |
| 70 } | 68 } |
| OLD | NEW |