| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 source_set("system_thunks") { | 5 source_set("system_thunks") { |
| 6 visibility = [ | 6 visibility = [ |
| 7 "//mojo/public/c/system:for_component", | 7 "//mojo/public/c/system:for_component", |
| 8 "//mojo/public/c/system:for_shared_library", | 8 "//mojo/public/c/system:for_shared_library", |
| 9 ] | 9 ] |
| 10 | 10 |
| 11 sources = [ | 11 sources = [ |
| 12 "system_thunks.h", | 12 "system_thunks.h", |
| 13 "system_thunks.cc", | 13 "system_thunks.cc", |
| 14 ] | 14 ] |
| 15 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ] | 15 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ] |
| 16 deps = [ "//mojo/public/c/system" ] | 16 deps = [ "//mojo/public/c/system" ] |
| 17 | 17 |
| 18 # The GYP target analogous to this one builds this code into a | 18 # The GYP target analogous to this one builds this code into a |
| 19 # static library. When building for Android, both the GYP and GN | 19 # static library. When building for Android, both the GYP and GN |
| 20 # builds add --exclude-libs=ALL globally, which means that all | 20 # builds add --exclude-libs=ALL globally, which means that all |
| 21 # symbols in static libraries are excluded from export. That's a | 21 # symbols in static libraries are excluded from export. That's a |
| 22 # problem, as code outside this target needs to be able to call | 22 # problem, as code outside this target needs to be able to call |
| 23 # MojoSetSystemThunks(). Therefore, the GYP target needs to specifiy | 23 # MojoSetSystemThunks(). Therefore, the GYP target needs to specifiy |
| 24 # that all dependent targets remove that link flag. Since GN uses a | 24 # that all dependent targets remove that link flag. Since GN uses a |
| 25 # source_set here, this flag change is not needed. | 25 # source_set here, this flag change is not needed. |
| 26 } | 26 } |
| 27 | 27 |
| 28 # GYP version: mojo/mojo_public.gypi:mojo_gles2 | 28 # GYP version: mojo/mojo_public_gles2_for_loadable_module.gypi |
| 29 source_set("gles2_thunks") { | 29 source_set("gles2_thunks") { |
| 30 visibility = [ "//mojo/public/gles2:for_shared_library" ] | 30 visibility = [ "//mojo/public/gles2:for_shared_library" ] |
| 31 | 31 |
| 32 sources = [ | 32 sources = [ |
| 33 "gles2_thunks.cc", | 33 "gles2_thunks.cc", |
| 34 "gles2_thunks.h", | 34 "gles2_thunks.h", |
| 35 "gles2_impl_thunks.cc", | 35 "gles2_impl_thunks.cc", |
| 36 "gles2_impl_thunks.h", | 36 "gles2_impl_thunks.h", |
| 37 "gles2_impl_chromium_texture_mailbox_thunks.cc", | 37 "gles2_impl_chromium_texture_mailbox_thunks.cc", |
| 38 "gles2_impl_chromium_texture_mailbox_thunks.h", | 38 "gles2_impl_chromium_texture_mailbox_thunks.h", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 50 "//mojo/public/c/gles2", | 50 "//mojo/public/c/gles2", |
| 51 "//mojo/public/c/environment", | 51 "//mojo/public/c/environment", |
| 52 "//mojo/public/c/system", | 52 "//mojo/public/c/system", |
| 53 ] | 53 ] |
| 54 | 54 |
| 55 if (is_mac) { | 55 if (is_mac) { |
| 56 # TODO(GYP): Make it a run-path dependent library. | 56 # TODO(GYP): Make it a run-path dependent library. |
| 57 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 57 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
| 58 } | 58 } |
| 59 } | 59 } |
| OLD | NEW |