| 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 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1222 "$(CFLAGS_C_$(BUILDTYPE)) " | 1222 "$(CFLAGS_C_$(BUILDTYPE)) " |
| 1223 "$(CFLAGS_OBJC_$(BUILDTYPE))") | 1223 "$(CFLAGS_OBJC_$(BUILDTYPE))") |
| 1224 self.WriteLn("$(OBJS): GYP_OBJCXXFLAGS := " | 1224 self.WriteLn("$(OBJS): GYP_OBJCXXFLAGS := " |
| 1225 "$(DEFS_$(BUILDTYPE)) " | 1225 "$(DEFS_$(BUILDTYPE)) " |
| 1226 "$(INCS_$(BUILDTYPE)) " | 1226 "$(INCS_$(BUILDTYPE)) " |
| 1227 "%s " % precompiled_header.GetInclude('mm') + | 1227 "%s " % precompiled_header.GetInclude('mm') + |
| 1228 "$(CFLAGS_$(BUILDTYPE)) " | 1228 "$(CFLAGS_$(BUILDTYPE)) " |
| 1229 "$(CFLAGS_CC_$(BUILDTYPE)) " | 1229 "$(CFLAGS_CC_$(BUILDTYPE)) " |
| 1230 "$(CFLAGS_OBJCC_$(BUILDTYPE))") | 1230 "$(CFLAGS_OBJCC_$(BUILDTYPE))") |
| 1231 | 1231 |
| 1232 self.WritePchTargets(precompiled_header.GetGchBuildCommands()) | 1232 self.WritePchTargets(precompiled_header.GetPchBuildCommands()) |
| 1233 | 1233 |
| 1234 # If there are any object files in our input file list, link them into our | 1234 # If there are any object files in our input file list, link them into our |
| 1235 # output. | 1235 # output. |
| 1236 extra_link_deps += filter(Linkable, sources) | 1236 extra_link_deps += filter(Linkable, sources) |
| 1237 | 1237 |
| 1238 self.WriteLn() | 1238 self.WriteLn() |
| 1239 | 1239 |
| 1240 def WritePchTargets(self, pch_commands): | 1240 def WritePchTargets(self, pch_commands): |
| 1241 """Writes make rules to compile prefix headers.""" | 1241 """Writes make rules to compile prefix headers.""" |
| 1242 if not pch_commands: | 1242 if not pch_commands: |
| (...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2130 root_makefile.write(" include " + include_file + "\n") | 2130 root_makefile.write(" include " + include_file + "\n") |
| 2131 root_makefile.write("endif\n") | 2131 root_makefile.write("endif\n") |
| 2132 root_makefile.write('\n') | 2132 root_makefile.write('\n') |
| 2133 | 2133 |
| 2134 if generator_flags.get('auto_regeneration', True): | 2134 if generator_flags.get('auto_regeneration', True): |
| 2135 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) | 2135 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) |
| 2136 | 2136 |
| 2137 root_makefile.write(SHARED_FOOTER) | 2137 root_makefile.write(SHARED_FOOTER) |
| 2138 | 2138 |
| 2139 root_makefile.close() | 2139 root_makefile.close() |
| OLD | NEW |