| 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. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 "-Wl,-exported_symbol,_PPP_ShutdownModule", | 43 "-Wl,-exported_symbol,_PPP_ShutdownModule", |
| 44 ] | 44 ] |
| 45 #TODO(GYP) Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 45 #TODO(GYP) Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
| 46 } else if (is_posix) { | 46 } else if (is_posix) { |
| 47 cflags += [ "-fvisibility=hidden" ] | 47 cflags += [ "-fvisibility=hidden" ] |
| 48 | 48 |
| 49 # Required for clock_gettime() | 49 # Required for clock_gettime() |
| 50 libs += [ "rt" ] | 50 libs += [ "rt" ] |
| 51 } | 51 } |
| 52 | 52 |
| 53 if (is_linux && !is_component_build) { |
| 54 # CDM adapter depends on a CDM even in non-component builds. |
| 55 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 56 } |
| 57 |
| 53 # TODO(jschuh) crbug.com/167187 | 58 # TODO(jschuh) crbug.com/167187 |
| 54 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 59 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 55 } | 60 } |
| 56 } | 61 } |
| OLD | NEW |