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 12 matching lines...) Expand all Loading... |
23 "//media/cdm/cdm_wrapper.h", | 23 "//media/cdm/cdm_wrapper.h", |
24 "//media/cdm/ppapi/cdm_file_io_impl.cc", | 24 "//media/cdm/ppapi/cdm_file_io_impl.cc", |
25 "//media/cdm/ppapi/cdm_file_io_impl.h", | 25 "//media/cdm/ppapi/cdm_file_io_impl.h", |
26 "//media/cdm/ppapi/cdm_helpers.cc", | 26 "//media/cdm/ppapi/cdm_helpers.cc", |
27 "//media/cdm/ppapi/cdm_helpers.h", | 27 "//media/cdm/ppapi/cdm_helpers.h", |
28 "//media/cdm/ppapi/cdm_logging.cc", | 28 "//media/cdm/ppapi/cdm_logging.cc", |
29 "//media/cdm/ppapi/cdm_logging.h", | 29 "//media/cdm/ppapi/cdm_logging.h", |
30 "//media/cdm/ppapi/linked_ptr.h", | 30 "//media/cdm/ppapi/linked_ptr.h", |
31 "//media/cdm/ppapi/ppapi_cdm_adapter.cc", | 31 "//media/cdm/ppapi/ppapi_cdm_adapter.cc", |
32 "//media/cdm/ppapi/ppapi_cdm_adapter.h", | 32 "//media/cdm/ppapi/ppapi_cdm_adapter.h", |
| 33 "//media/cdm/supported_cdm_versions.cc", |
33 "//media/cdm/supported_cdm_versions.h", | 34 "//media/cdm/supported_cdm_versions.h", |
34 ] | 35 ] |
35 if (is_mac) { | 36 if (is_mac) { |
36 ldflags += [ | 37 ldflags += [ |
37 # Not to strip important symbols by -Wl,-dead_strip. | 38 # Not to strip important symbols by -Wl,-dead_strip. |
38 "-Wl,-exported_symbol,_PPP_GetInterface", | 39 "-Wl,-exported_symbol,_PPP_GetInterface", |
39 "-Wl,-exported_symbol,_PPP_InitializeModule", | 40 "-Wl,-exported_symbol,_PPP_InitializeModule", |
40 "-Wl,-exported_symbol,_PPP_ShutdownModule", | 41 "-Wl,-exported_symbol,_PPP_ShutdownModule", |
41 ] | 42 ] |
42 #TODO(GYP) Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 43 #TODO(GYP) Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
43 } else if (is_posix) { | 44 } else if (is_posix) { |
44 cflags += [ "-fvisibility=hidden" ] | 45 cflags += [ "-fvisibility=hidden" ] |
45 | 46 |
46 # Required for clock_gettime() | 47 # Required for clock_gettime() |
47 libs += [ "rt" ] | 48 libs += [ "rt" ] |
48 } | 49 } |
49 | 50 |
50 # TODO(jschuh) crbug.com/167187 | 51 # TODO(jschuh) crbug.com/167187 |
51 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 52 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
52 } | 53 } |
53 } | 54 } |
OLD | NEW |