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

Unified Diff: tools/gn/variables.cc

Issue 1386783003: [GN]: Support for loadable modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark comments Created 5 years, 2 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
« build/toolchain/mac/BUILD.gn ('K') | « tools/gn/variables.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/variables.cc
diff --git a/tools/gn/variables.cc b/tools/gn/variables.cc
index 6f9c8486fe323f3a87a143519e1647dd371b9ab9..294e05c6513b1f2cbab144f97a654904db24e94e 100644
--- a/tools/gn/variables.cc
+++ b/tools/gn/variables.cc
@@ -611,6 +611,22 @@ const char kConsole_Help[] =
" console = true\n"
" }\n";
+const char kDarwinBundle[] = "darwin_bundle";
+const char kDarwinBundle_HelpShort[] =
+ "darwin_bundle: [boolean] Produce a bundle on Darwin platforms";
+const char kDarwinBundle_Help[] =
+ "darwin_bundle: Produce an .app or .framework directory.\n"
+ "\n"
+ " Bundles on Darwin platforms are directories with standardized\n"
+ " hierarchical structures that hold executable code and the resources\n"
+ " used by that code.\n"
+ "\n"
+ "Example\n"
+ "\n"
+ " executable(\"combustible_lemons_app\") {\n"
+ " darwin_bundle = true\n"
+ " }\n";
+
const char kData[] = "data";
const char kData_HelpShort[] =
"data: [file list] Runtime data file dependencies.";
@@ -941,6 +957,24 @@ const char kLibs_Help[] =
" On Linux:\n"
" libs = [ \"ld\" ]\n";
+const char kLoadableModule[] = "loadable_module";
+const char kLoadableModule_HelpShort[] =
+ "loadable_module: [boolean] Produce a loadable module from a shared lib.";
+const char kLoadableModule_Help[] =
+ "darwin_bundle: Produce a loadable module from a shared library target.\n"
+ "\n"
+ " Loadable modules are different from shared libraries in that they are\n"
+ " not linked at compile time and can only be dynamically loaded at\n"
+ " runtime.\n"
+ "\n"
+ " The flag only applies to \"shared_library\" targets.\n"
+ "\n"
+ "Example\n"
+ "\n"
+ " shared_library(\"combustible_lemons_lib\") {\n"
+ " loadable_module = true\n"
+ " }\n";
+
const char kOutputExtension[] = "output_extension";
const char kOutputExtension_HelpShort[] =
"output_extension: [string] Value to use for the output's file extension.";
« build/toolchain/mac/BUILD.gn ('K') | « tools/gn/variables.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698