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

Unified Diff: tools/gn/source_file_type.cc

Issue 1160773002: Add support for module-definition files to gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove conditional compilation and add tests Created 5 years, 7 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/source_file_type.h ('k') | tools/gn/toolchain.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/source_file_type.cc
diff --git a/tools/gn/source_file_type.cc b/tools/gn/source_file_type.cc
index 35c87098290b556f75bd601337f55a818824b264..2b341252ab5831d7d035af71fcd1c6ae095e028f 100644
--- a/tools/gn/source_file_type.cc
+++ b/tools/gn/source_file_type.cc
@@ -25,6 +25,8 @@ SourceFileType GetSourceFileType(const SourceFile& file) {
return SOURCE_S;
if (extension == "o" || extension == "obj")
return SOURCE_O;
+ if (extension == "def")
+ return SOURCE_DEF;
return SOURCE_UNKNOWN;
}
« no previous file with comments | « tools/gn/source_file_type.h ('k') | tools/gn/toolchain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698