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