Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / mojo / public / gles2 / BUILD.gn
blobdc73e2635f3675439b2123c553b95ddec51b6d86
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
3 # found in the LICENSE file.
5 config("gles2_config") {
6   defines = [ "GLES2_USE_MOJO" ]
9 # GYP version: mojo/mojo_public.gypi:mojo_gles2
10 static_library("gles2") {
11   defines = [
12     "MOJO_GLES2_IMPLEMENTATION",
13   ]
15   configs += [
16     ":gles2_config",
17     "//third_party/khronos:khronos_headers",
18   ]
19   direct_dependent_configs = [
20     ":gles2_config",
21     "//third_party/khronos:khronos_headers",
22   ]
24   sources = [
25     "../c/gles2/gles2.h",
26     "../c/gles2/gles2_export.h",
27     "../platform/native/gles2_thunks.cc",
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",
35     "gles2_interface.h",
36   ]
38   if (is_mac) {
39     # TODO(GYP): Make it a run-path dependent library.
40     # 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
41   }