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

Side by Side Diff: pylib/gyp/generator/make.py

Issue 10407108: ninja windows: support precompiled headers (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: try from svn Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pylib/gyp/generator/ninja.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 Google Inc. All rights reserved. 1 # Copyright (c) 2012 Google Inc. 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 # Notes: 5 # Notes:
6 # 6 #
7 # This is all roughly based on the Makefile system used by the Linux 7 # This is all roughly based on the Makefile system used by the Linux
8 # kernel, but is a non-recursive make -- we put the entire dependency 8 # kernel, but is a non-recursive make -- we put the entire dependency
9 # graph in front of make and let it figure it out. 9 # graph in front of make and let it figure it out.
10 # 10 #
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 "$(CFLAGS_C_$(BUILDTYPE)) " 1226 "$(CFLAGS_C_$(BUILDTYPE)) "
1227 "$(CFLAGS_OBJC_$(BUILDTYPE))") 1227 "$(CFLAGS_OBJC_$(BUILDTYPE))")
1228 self.WriteLn("$(OBJS): GYP_OBJCXXFLAGS := " 1228 self.WriteLn("$(OBJS): GYP_OBJCXXFLAGS := "
1229 "$(DEFS_$(BUILDTYPE)) " 1229 "$(DEFS_$(BUILDTYPE)) "
1230 "$(INCS_$(BUILDTYPE)) " 1230 "$(INCS_$(BUILDTYPE)) "
1231 "%s " % precompiled_header.GetInclude('mm') + 1231 "%s " % precompiled_header.GetInclude('mm') +
1232 "$(CFLAGS_$(BUILDTYPE)) " 1232 "$(CFLAGS_$(BUILDTYPE)) "
1233 "$(CFLAGS_CC_$(BUILDTYPE)) " 1233 "$(CFLAGS_CC_$(BUILDTYPE)) "
1234 "$(CFLAGS_OBJCC_$(BUILDTYPE))") 1234 "$(CFLAGS_OBJCC_$(BUILDTYPE))")
1235 1235
1236 self.WritePchTargets(precompiled_header.GetGchBuildCommands()) 1236 self.WritePchTargets(precompiled_header.GetPchBuildCommands())
1237 1237
1238 # If there are any object files in our input file list, link them into our 1238 # If there are any object files in our input file list, link them into our
1239 # output. 1239 # output.
1240 extra_link_deps += filter(Linkable, sources) 1240 extra_link_deps += filter(Linkable, sources)
1241 1241
1242 self.WriteLn() 1242 self.WriteLn()
1243 1243
1244 def WritePchTargets(self, pch_commands): 1244 def WritePchTargets(self, pch_commands):
1245 """Writes make rules to compile prefix headers.""" 1245 """Writes make rules to compile prefix headers."""
1246 if not pch_commands: 1246 if not pch_commands:
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
2134 root_makefile.write(" include " + include_file + "\n") 2134 root_makefile.write(" include " + include_file + "\n")
2135 root_makefile.write("endif\n") 2135 root_makefile.write("endif\n")
2136 root_makefile.write('\n') 2136 root_makefile.write('\n')
2137 2137
2138 if generator_flags.get('auto_regeneration', True): 2138 if generator_flags.get('auto_regeneration', True):
2139 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) 2139 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files)
2140 2140
2141 root_makefile.write(SHARED_FOOTER) 2141 root_makefile.write(SHARED_FOOTER)
2142 2142
2143 root_makefile.close() 2143 root_makefile.close()
OLDNEW
« no previous file with comments | « no previous file | pylib/gyp/generator/ninja.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698