Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / mojo / public / gles2 / BUILD.gn
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.
4
5 config("gles2_config") {
6   defines = [ "GLES2_USE_MOJO" ]
7 }
8
9 shared_library("gles2") {
10   output_name = "mojo_gles2"
11
12   defines = [
13     "MOJO_GLES2_IMPLEMENTATION",
14   ]
15
16   configs += [
17     ":gles2_config",
18     "//third_party/khronos:khronos_headers",
19   ]
20   direct_dependent_configs = [ ":gles2_config" ]
21
22   sources = [
23     "../c/gles2/gles2.h",
24     "../c/gles2/gles2_export.h",
25     "../platform/native/gles2_thunks.cc",
26     "../platform/native/gles2_thunks.h",
27     "gles2_interface.h",
28   ]
29
30   if (is_mac) {
31     # TODO(GYP): Make it a run-path dependent library.
32     # 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
33   }
34 }
35