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) |