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

Unified Diff: tools/gn/variables.cc

Issue 1827103005: [GN] Add support for generating Xcode projects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve comment about "assert(product_type != "")" Created 4 years, 8 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 | « tools/gn/variables.h ('k') | tools/gn/visual_studio_writer.cc » ('j') | 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 eea5bca9fb8d43dd0404cbe5d37a0e58d0faf4bf..a65d9403e3188336f4e3da69bb86567e29e5de6c 100644
--- a/tools/gn/variables.cc
+++ b/tools/gn/variables.cc
@@ -1326,6 +1326,19 @@ const char kPrecompiledSource_Help[] =
" using \"msvc\"-style precompiled headers. It will be implicitly added\n"
" to the sources of the target. See \"gn help precompiled_header\".\n";
+const char kProductType[] = "product_type";
+const char kProductType_HelpShort[] =
+ "product_type: [string] Product type for Xcode projects.";
+const char kProductType_Help[] =
+ "product_type: Product type for Xcode projects.\n"
+ "\n"
+ " Correspond to the type of the product of a create_bundle target. Only\n"
+ " meaningful to Xcode (used as part of the Xcode project generation).\n"
+ "\n"
+ " When generating Xcode project files, only create_bundle target with\n"
+ " a non-empty product_type will have a corresponding target in Xcode\n"
+ " project.\n";
+
const char kPublic[] = "public";
const char kPublic_HelpShort[] =
"public: [file list] Declare public header files for a target.";
@@ -1698,6 +1711,7 @@ const VariableInfoMap& GetTargetVariables() {
INSERT_VARIABLE(Outputs)
INSERT_VARIABLE(PrecompiledHeader)
INSERT_VARIABLE(PrecompiledSource)
+ INSERT_VARIABLE(ProductType)
INSERT_VARIABLE(Public)
INSERT_VARIABLE(PublicConfigs)
INSERT_VARIABLE(PublicDeps)
« no previous file with comments | « tools/gn/variables.h ('k') | tools/gn/visual_studio_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698