Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(829)

Unified Diff: mojo/public/gles2/BUILD.gn

Issue 599283003: Make gn check //mojo/public/* pass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/utility/tests/BUILD.gn ('k') | mojo/public/platform/native/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/gles2/BUILD.gn
diff --git a/mojo/public/gles2/BUILD.gn b/mojo/public/gles2/BUILD.gn
index de5f7076202f800ff19df0db1ae63c5d24e0818b..b5172d39285129629bf83291211693311e9f6d3e 100644
--- a/mojo/public/gles2/BUILD.gn
+++ b/mojo/public/gles2/BUILD.gn
@@ -2,46 +2,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-config("gles2_config") {
- defines = [ "GLES2_USE_MOJO" ]
-}
-
-# GYP version: mojo/mojo_public.gypi:mojo_gles2
-static_library("gles2") {
- defines = [
- "MOJO_GLES2_IMPLEMENTATION",
- ]
-
- configs += [
- ":gles2_config",
- "//third_party/khronos:khronos_headers",
- ]
- public_configs = [
- ":gles2_config",
- "//third_party/khronos:khronos_headers",
- ]
-
- sources = [
- "../c/gles2/gles2.h",
- "../c/gles2/gles2_export.h",
- "../platform/native/gles2_thunks.cc",
- "../platform/native/gles2_thunks.h",
- "../platform/native/gles2_impl_thunks.cc",
- "../platform/native/gles2_impl_thunks.h",
- "../platform/native/gles2_impl_chromium_texture_mailbox_thunks.cc",
- "../platform/native/gles2_impl_chromium_texture_mailbox_thunks.h",
- "../platform/native/gles2_impl_chromium_sync_point_thunks.cc",
- "../platform/native/gles2_impl_chromium_sync_point_thunks.h",
- "gles2_interface.h",
- ]
-
- if (is_mac) {
- # TODO(GYP): Make it a run-path dependent library.
- # 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
- }
-}
-
-
# In an is_component_build build, everything can link against //mojo/gles2
# because it is built as a shared library. However, in a static build,
# //mojo/gles2 is linked into an executable (e.g., mojo_shell), and must be
@@ -67,3 +27,37 @@ group("for_component") {
deps = [ "//mojo/gles2" ]
}
}
+
+# GYP version: mojo/mojo_public.gypi:mojo_gles2
+static_library("gles2") {
+ visibility = [ ":for_shared_library" ]
+
+ sources = [
+ "../platform/native/gles2_thunks.cc",
+ "../platform/native/gles2_thunks.h",
+ "../platform/native/gles2_impl_thunks.cc",
+ "../platform/native/gles2_impl_thunks.h",
+ "../platform/native/gles2_impl_chromium_texture_mailbox_thunks.cc",
+ "../platform/native/gles2_impl_chromium_texture_mailbox_thunks.h",
+ "../platform/native/gles2_impl_chromium_sync_point_thunks.cc",
+ "../platform/native/gles2_impl_chromium_sync_point_thunks.h",
+ "gles2_interface.h",
+ ]
+
+ public_configs = [ "//third_party/khronos:khronos_headers" ]
+
+ public_deps = [ "//mojo/public/c/gles2" ]
+
+ defines = [
+ "MOJO_GLES2_IMPLEMENTATION",
+ ]
+ deps = [
+ "//mojo/public/c/environment",
+ "//mojo/public/c/system",
+ ]
+
+ if (is_mac) {
+ # TODO(GYP): Make it a run-path dependent library.
+ # 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
+ }
+}
« no previous file with comments | « mojo/public/cpp/utility/tests/BUILD.gn ('k') | mojo/public/platform/native/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698