| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |