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

Unified Diff: mojo/mojo_variables.gypi

Issue 422163004: Extract mojo_base.gyp from mojo.gyp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing Created 6 years, 5 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/mojo_services.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/mojo_variables.gypi
diff --git a/mojo/mojo_variables.gypi b/mojo/mojo_variables.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..896922072759899434ea94071b0c94b8333f1ac1
--- /dev/null
+++ b/mojo/mojo_variables.gypi
@@ -0,0 +1,43 @@
+# 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.
+
+#
+# A set of GYP variables that are shared between mojo.gyp and mojo_base.gyp
+#
+{
+ 'variables': {
+ 'chromium_code': 1,
+ 'mojo_shell_debug_url%': "",
+ 'conditions': [
+ #
+ # The following mojo_system-prefixed variables are used to express a
+ # dependency on the mojo system APIs.
+ #
+ # In a component == "shared_library" build, everything can link against
+ # mojo_system_impl because it is built as a shared library. However, in a
+ # component != "shared_library" 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
+ # dependencies section. For loadable module targets (e.g., a Mojo App),
+ # add <(mojo_system_for_loadable_module) to your dependencies section.
+ #
+ # NOTE: component != "shared_library" implies that we are generating a
+ # static library, and in that case, it is expected that the target
+ # listing the component as a dependency will specify either mojo_system
+ # or mojo_system_impl to link against. This enables multiple targets to
+ # link against the same component library without having to agree on
+ # which Mojo system library they are using.
+ #
+ ['component=="shared_library"', {
+ 'mojo_system_for_component': "mojo_base.gyp:mojo_system_impl",
+ 'mojo_system_for_loadable_module': "mojo_base.gyp:mojo_system_impl",
+ }, {
+ 'mojo_system_for_component': "mojo_base.gyp:mojo_none",
+ 'mojo_system_for_loadable_module': "mojo_base.gyp:mojo_system",
+ }],
+ ],
+ },
+}
« no previous file with comments | « mojo/mojo_services.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698