| 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 shared_library("gles2") { |
| 10 output_name = "mojo_gles2" | 10 output_name = "mojo_gles2" |
| 11 | 11 |
| 12 defines = [ | 12 defines = [ |
| 13 "MOJO_GLES2_IMPLEMENTATION", | 13 "MOJO_GLES2_IMPLEMENTATION", |
| 14 ] | 14 ] |
| 15 | 15 |
| 16 configs += [ | 16 configs += [ |
| 17 ":gles2_config", | 17 ":gles2_config", |
| 18 "//third_party/khronos:khronos_headers", | 18 "//third_party/khronos:khronos_headers", |
| 19 ] | 19 ] |
| 20 direct_dependent_configs = [ ":gles2_config" ] | 20 direct_dependent_configs = [ ":gles2_config" ] |
| 21 | 21 |
| 22 sources = [ | 22 sources = [ |
| 23 "../c/gles2/gles2.h", | 23 "../c/gles2/gles2.h", |
| 24 "../c/gles2/gles2_export.h", | 24 "../c/gles2/gles2_export.h", |
| 25 "../platform/native/gles2_thunks.cc", | 25 "gles2_private.cc", |
| 26 "../platform/native/gles2_thunks.h", | 26 "gles2_private.h", |
| 27 "gles2_interface.h", | |
| 28 ] | 27 ] |
| 29 | 28 |
| 30 if (is_mac) { | 29 if (is_mac) { |
| 31 # TODO(GYP): Make it a run-path dependent library. | 30 # TODO(GYP): Make it a run-path dependent library. |
| 32 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 31 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
| 33 } | 32 } |
| 34 } | 33 } |
| 35 | 34 |
| OLD | NEW |