| 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 import copy | 5 import copy | 
| 6 import gyp | 6 import gyp | 
| 7 import gyp.common | 7 import gyp.common | 
| 8 import gyp.msvs_emulation | 8 import gyp.msvs_emulation | 
| 9 import gyp.system_test | 9 import gyp.system_test | 
| 10 import gyp.xcode_emulation | 10 import gyp.xcode_emulation | 
| (...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1187                'plutil -convert xml1 $out $out')) | 1187                'plutil -convert xml1 $out $out')) | 
| 1188     master_ninja.rule( | 1188     master_ninja.rule( | 
| 1189       'mac_tool', | 1189       'mac_tool', | 
| 1190       description='MACTOOL $mactool_cmd $in', | 1190       description='MACTOOL $mactool_cmd $in', | 
| 1191       command='$env $mac_tool $mactool_cmd $in $out') | 1191       command='$env $mac_tool $mactool_cmd $in $out') | 
| 1192     master_ninja.rule( | 1192     master_ninja.rule( | 
| 1193       'package_framework', | 1193       'package_framework', | 
| 1194       description='PACKAGE FRAMEWORK $out, POSTBUILDS', | 1194       description='PACKAGE FRAMEWORK $out, POSTBUILDS', | 
| 1195       command='$mac_tool package-framework $out $version$postbuilds ' | 1195       command='$mac_tool package-framework $out $version$postbuilds ' | 
| 1196               '&& touch $out') | 1196               '&& touch $out') | 
| 1197   master_ninja.rule( |  | 
| 1198     'stamp', |  | 
| 1199     description='STAMP $out', |  | 
| 1200     command='${postbuilds}touch $out') |  | 
| 1201   if flavor == 'win': | 1197   if flavor == 'win': | 
|  | 1198     master_ninja.rule( | 
|  | 1199       'stamp', | 
|  | 1200       description='STAMP $out', | 
|  | 1201       command='cmd /c copy /y nul $out>nul') | 
| 1202     # TODO(scottmg): Copy fallback? | 1202     # TODO(scottmg): Copy fallback? | 
| 1203     master_ninja.rule( | 1203     master_ninja.rule( | 
| 1204       'copy', | 1204       'copy', | 
| 1205       description='COPY $in $out', | 1205       description='COPY $in $out', | 
| 1206       command='cmd /c mklink /h $out $in >nul || mklink /h /j $out $in >nul') | 1206       command='cmd /c mklink /h $out $in >nul || mklink /h /j $out $in >nul') | 
| 1207   else: | 1207   else: | 
| 1208     master_ninja.rule( | 1208     master_ninja.rule( | 
|  | 1209       'stamp', | 
|  | 1210       description='STAMP $out', | 
|  | 1211       command='${postbuilds}touch $out') | 
|  | 1212     master_ninja.rule( | 
| 1209       'copy', | 1213       'copy', | 
| 1210       description='COPY $in $out', | 1214       description='COPY $in $out', | 
| 1211       command='ln -f $in $out 2>/dev/null || (rm -rf $out && cp -af $in $out)') | 1215       command='ln -f $in $out 2>/dev/null || (rm -rf $out && cp -af $in $out)') | 
| 1212   master_ninja.newline() | 1216   master_ninja.newline() | 
| 1213 | 1217 | 
| 1214   all_targets = set() | 1218   all_targets = set() | 
| 1215   for build_file in params['build_files']: | 1219   for build_file in params['build_files']: | 
| 1216     for target in gyp.common.AllTargets(target_list, target_dicts, build_file): | 1220     for target in gyp.common.AllTargets(target_list, target_dicts, build_file): | 
| 1217       all_targets.add(target) | 1221       all_targets.add(target) | 
| 1218   all_outputs = set() | 1222   all_outputs = set() | 
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1264 | 1268 | 
| 1265   user_config = params.get('generator_flags', {}).get('config', None) | 1269   user_config = params.get('generator_flags', {}).get('config', None) | 
| 1266   if user_config: | 1270   if user_config: | 
| 1267     GenerateOutputForConfig(target_list, target_dicts, data, params, | 1271     GenerateOutputForConfig(target_list, target_dicts, data, params, | 
| 1268                             user_config) | 1272                             user_config) | 
| 1269   else: | 1273   else: | 
| 1270     config_names = target_dicts[target_list[0]]['configurations'].keys() | 1274     config_names = target_dicts[target_list[0]]['configurations'].keys() | 
| 1271     for config_name in config_names: | 1275     for config_name in config_names: | 
| 1272       GenerateOutputForConfig(target_list, target_dicts, data, params, | 1276       GenerateOutputForConfig(target_list, target_dicts, data, params, | 
| 1273                               config_name) | 1277                               config_name) | 
| OLD | NEW | 
|---|