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

Side by Side Diff: tools/gn/xcode_object.cc

Issue 2029073002: [GN] Adding missing source type for extension .appex. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "tools/gn/xcode_object.h" 5 #include "tools/gn/xcode_object.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 #include <sstream> 8 #include <sstream>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 struct SourceTypeForExt { 93 struct SourceTypeForExt {
94 const char* ext; 94 const char* ext;
95 const char* source_type; 95 const char* source_type;
96 }; 96 };
97 97
98 const SourceTypeForExt kSourceTypeForExt[] = { 98 const SourceTypeForExt kSourceTypeForExt[] = {
99 {".a", "archive.ar"}, 99 {".a", "archive.ar"},
100 {".app", "wrapper.application"}, 100 {".app", "wrapper.application"},
101 {".appex", "wrapper.app-extension"},
101 {".bdic", "file"}, 102 {".bdic", "file"},
102 {".bundle", "wrapper.cfbundle"}, 103 {".bundle", "wrapper.cfbundle"},
103 {".c", "sourcecode.c.c"}, 104 {".c", "sourcecode.c.c"},
104 {".cc", "sourcecode.cpp.cpp"}, 105 {".cc", "sourcecode.cpp.cpp"},
105 {".cpp", "sourcecode.cpp.cpp"}, 106 {".cpp", "sourcecode.cpp.cpp"},
106 {".css", "text.css"}, 107 {".css", "text.css"},
107 {".cxx", "sourcecode.cpp.cpp"}, 108 {".cxx", "sourcecode.cpp.cpp"},
108 {".dart", "sourcecode"}, 109 {".dart", "sourcecode"},
109 {".dylib", "compiled.mach-o.dylib"}, 110 {".dylib", "compiled.mach-o.dylib"},
110 {".framework", "wrapper.framework"}, 111 {".framework", "wrapper.framework"},
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 const std::string indent_str(indent, '\t'); 859 const std::string indent_str(indent, '\t');
859 const IndentRules rules = {false, indent + 1}; 860 const IndentRules rules = {false, indent + 1};
860 out << indent_str << Reference() << " = {\n"; 861 out << indent_str << Reference() << " = {\n";
861 PrintProperty(out, rules, "isa", ToString(Class())); 862 PrintProperty(out, rules, "isa", ToString(Class()));
862 PrintProperty(out, rules, "buildConfigurations", configurations_); 863 PrintProperty(out, rules, "buildConfigurations", configurations_);
863 PrintProperty(out, rules, "defaultConfigurationIsVisible", 1u); 864 PrintProperty(out, rules, "defaultConfigurationIsVisible", 1u);
864 PrintProperty(out, rules, "defaultConfigurationName", 865 PrintProperty(out, rules, "defaultConfigurationName",
865 configurations_[0]->Name()); 866 configurations_[0]->Name());
866 out << indent_str << "};\n"; 867 out << indent_str << "};\n";
867 } 868 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698