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

Unified Diff: mojo/gles2/BUILD.gn

Issue 461903002: GN: Add mojo_shell_tests, get more things working on android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix up android linking Created 6 years, 4 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/environment/BUILD.gn ('k') | mojo/mojo.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gles2/BUILD.gn
diff --git a/mojo/gles2/BUILD.gn b/mojo/gles2/BUILD.gn
index 9b4ffb9bd34a45b4efe962a82de3a257f8b5a8bc..a37647a3d93876aa62301566183fb47277378611 100644
--- a/mojo/gles2/BUILD.gn
+++ b/mojo/gles2/BUILD.gn
@@ -3,7 +3,17 @@
# found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
+import("//mojo/system.gni")
+config("mojo_use_gles2") {
+ defines = [ "MOJO_USE_GLES2_IMPL" ]
+}
+
+config("gles2_use_mojo") {
+ defines = [ "USE_MOJO_GLES2" ]
+}
+
+# GYP version: mojo/mojo_base.gyp:mojo_gles2_impl
component("gles2") {
output_name = "mojo_gles2_impl"
@@ -18,12 +28,19 @@ component("gles2") {
"//mojo/services/gles2:interfaces",
"//mojo/environment:chromium",
]
+ deps += mojo_system_for_component
- if (is_component_build) {
- deps += [ "//mojo/system" ]
- }
+ defines = [
+ "MOJO_GLES2_IMPL_IMPLEMENTATION",
+ "MOJO_GLES2_IMPLEMENTATION",
+ ]
- defines = [ "MOJO_GLES2_IMPL_IMPLEMENTATION" ]
+ configs += [
+ ":gles2_use_mojo",
+ ":mojo_use_gles2",
+ ]
+ direct_dependent_configs = [ ":gles2_use_mojo" ]
+ all_dependent_configs = [ ":mojo_use_gles2" ]
sources = [
"command_buffer_client_impl.cc",
« no previous file with comments | « mojo/environment/BUILD.gn ('k') | mojo/mojo.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698