| 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 config("gles2_config") { | 5 config("gles2_config") { |
| 6 defines = [ "GLES2_USE_MOJO" ] | 6 defines = [ "GLES2_USE_MOJO" ] |
| 7 } | 7 } |
| 8 | 8 |
| 9 shared_library("gles2") { | 9 # GYP version: mojo/mojo_public.gypi:mojo_gles2 |
| 10 output_name = "mojo_gles2" | 10 static_library("gles2") { |
| 11 | |
| 12 defines = [ | 11 defines = [ |
| 13 "MOJO_GLES2_IMPLEMENTATION", | 12 "MOJO_GLES2_IMPLEMENTATION", |
| 14 ] | 13 ] |
| 15 | 14 |
| 16 configs += [ | 15 configs += [ |
| 17 ":gles2_config", | 16 ":gles2_config", |
| 18 "//third_party/khronos:khronos_headers", | 17 "//third_party/khronos:khronos_headers", |
| 19 ] | 18 ] |
| 20 direct_dependent_configs = [ ":gles2_config" ] | 19 direct_dependent_configs = [ |
| 20 ":gles2_config", |
| 21 "//third_party/khronos:khronos_headers", |
| 22 ] |
| 21 | 23 |
| 22 sources = [ | 24 sources = [ |
| 23 "../c/gles2/gles2.h", | 25 "../c/gles2/gles2.h", |
| 24 "../c/gles2/gles2_export.h", | 26 "../c/gles2/gles2_export.h", |
| 25 "../platform/native/gles2_thunks.cc", | 27 "../platform/native/gles2_thunks.cc", |
| 26 "../platform/native/gles2_thunks.h", | 28 "../platform/native/gles2_thunks.h", |
| 29 "../platform/native/gles2_impl_thunks.cc", |
| 30 "../platform/native/gles2_impl_thunks.h", |
| 31 "../platform/native/gles2_impl_chromium_texture_mailbox_thunks.cc", |
| 32 "../platform/native/gles2_impl_chromium_texture_mailbox_thunks.h", |
| 33 "../platform/native/gles2_impl_chromium_sync_point_thunks.cc", |
| 34 "../platform/native/gles2_impl_chromium_sync_point_thunks.h", |
| 27 "gles2_interface.h", | 35 "gles2_interface.h", |
| 28 ] | 36 ] |
| 29 | 37 |
| 30 if (is_mac) { | 38 if (is_mac) { |
| 31 # TODO(GYP): Make it a run-path dependent library. | 39 # TODO(GYP): Make it a run-path dependent library. |
| 32 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 40 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
| 33 } | 41 } |
| 34 } | 42 } |
| 35 | 43 |
| OLD | NEW |