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

Unified Diff: mojo/public/platform/native/BUILD.gn

Issue 604223002: Fix up gles2 thunk targets a bit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn_check_mojo
Patch Set: declare proper gles2 dependency in png_viewer 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/gles2/gles2_interface.h ('k') | mojo/services/public/cpp/view_manager/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/native/BUILD.gn
diff --git a/mojo/public/platform/native/BUILD.gn b/mojo/public/platform/native/BUILD.gn
index c0cdbae32834ece60b374dc85cdc9d24af0bdcae..a3e720b0a8ac500e68ce29e0c46c50e0af48d54a 100644
--- a/mojo/public/platform/native/BUILD.gn
+++ b/mojo/public/platform/native/BUILD.gn
@@ -24,3 +24,36 @@ source_set("system_thunks") {
# that all dependent targets remove that link flag. Since GN uses a
# source_set here, this flag change is not needed.
}
+
+# GYP version: mojo/mojo_public.gypi:mojo_gles2
+source_set("gles2_thunks") {
+ visibility = [ "//mojo/public/gles2:for_shared_library" ]
+
+ sources = [
+ "gles2_thunks.cc",
+ "gles2_thunks.h",
+ "gles2_impl_thunks.cc",
+ "gles2_impl_thunks.h",
+ "gles2_impl_chromium_texture_mailbox_thunks.cc",
+ "gles2_impl_chromium_texture_mailbox_thunks.h",
+ "gles2_impl_chromium_sync_point_thunks.cc",
+ "gles2_impl_chromium_sync_point_thunks.h",
+ ]
+
+ defines = [
+ "MOJO_GLES2_IMPLEMENTATION",
+ ]
+
+ configs += [ "//third_party/khronos:khronos_headers" ]
+
+ deps = [
+ "//mojo/public/c/gles2",
+ "//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/gles2/gles2_interface.h ('k') | mojo/services/public/cpp/view_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698