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 import("../../mojo_sdk.gni")
7 mojo_sdk_source_set("system") {
12 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ]
13 mojo_sdk_deps = [ "mojo/public/c/system" ]
15 # The GYP target analogous to this one builds this code into a
16 # static library. When building for Android, both the GYP and GN
17 # builds add --exclude-libs=ALL globally, which means that all
18 # symbols in static libraries are excluded from export. That's a
19 # problem, as code outside this target needs to be able to call
20 # MojoSetSystemThunks(). Therefore, the GYP target needs to specifiy
21 # that all dependent targets remove that link flag. Since GN uses a
22 # source_set here, this flag change is not needed.
25 mojo_sdk_source_set("gles2") {
29 "gles2_impl_thunks.cc",
30 "gles2_impl_thunks.h",
31 "gles2_impl_chromium_texture_mailbox_thunks.cc",
32 "gles2_impl_chromium_texture_mailbox_thunks.h",
33 "gles2_impl_chromium_sync_point_thunks.cc",
34 "gles2_impl_chromium_sync_point_thunks.h",
37 defines = [ "MOJO_GLES2_IMPLEMENTATION" ]
39 configs = [ "//third_party/khronos:khronos_headers" ]
42 "mojo/public/c/gles2:headers",
43 "mojo/public/c/environment",
44 "mojo/public/c/system",
48 # TODO(GYP): Make it a run-path dependent library.
49 # 'DYLIB_INSTALL_NAME_BASE': '@loader_path',