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

Unified Diff: mojo/system.gni

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/shell/BUILD.gn ('k') | third_party/libxslt/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system.gni
diff --git a/mojo/system.gni b/mojo/system.gni
new file mode 100644
index 0000000000000000000000000000000000000000..c7c07ad721bc38dd9e14b53c50e0c26d8930ec4a
--- /dev/null
+++ b/mojo/system.gni
@@ -0,0 +1,24 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# The following mojo_system-prefixed variables are used to express a dependency
+# on the mojo system APIs.
+#
+# In an is_component_build build, everything can link against
+# mojo_system_impl because it is built as a shared library. However, in a static
+# build, mojo_system_impl is linked into an executable (e.g.,
+# mojo_shell), and must be injected into other shared libraries (i.e., Mojo
+# Apps) that need the mojo system API.
+#
+# For component targets, add mojo_system_for_component to your deps section.
+# For shared_library targets (e.g., a Mojo App), add
+# mojo_system_for_shared_library to your deps
+
+if (is_component_build) {
+ mojo_system_for_component = [ "//mojo/system" ]
+ mojo_system_for_shared_library = [ "//mojo/system" ]
+} else {
+ mojo_system_for_component = [] # nothing to link against here
+ mojo_system_for_shared_library = [ "//mojo/public/c/system" ]
+}
« no previous file with comments | « mojo/shell/BUILD.gn ('k') | third_party/libxslt/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698