| OLD | NEW |
| 1 #!/usr/bin/python2.4 | 1 #!/usr/bin/python2.4 |
| 2 # Copyright 2008, Google Inc. | 2 # Copyright 2008, Google Inc. |
| 3 # All rights reserved. | 3 # All rights reserved. |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
| 7 # met: | 7 # met: |
| 8 # | 8 # |
| 9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
| 10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 resources=[], | 104 resources=[], |
| 105 misc=[], | 105 misc=[], |
| 106 auto_build_solution=0, | 106 auto_build_solution=0, |
| 107 MSVSCLEANCOM='rem', | 107 MSVSCLEANCOM='rem', |
| 108 MSVSBUILDCOM='rem', | 108 MSVSBUILDCOM='rem', |
| 109 MSVSREBUILD='rem', | 109 MSVSREBUILD='rem', |
| 110 buildtarget=build_target, | 110 buildtarget=build_target, |
| 111 variant=variants[0]) | 111 variant=variants[0]) |
| 112 | 112 |
| 113 # Build Visual Studio Solution file. | 113 # Build Visual Studio Solution file. |
| 114 solution =env.MSVSSolution(target=solution_name + env['MSVSSOLUTIONSUFFIX'], | 114 solution = env.MSVSSolution(target=solution_name + env['MSVSSOLUTIONSUFFIX'], |
| 115 projects=project_list, | 115 projects=project_list, |
| 116 variant=variants) | 116 variant=variants) |
| 117 # Explicitly add dependencies. | 117 # Explicitly add dependencies. |
| 118 env.Depends(solution, project_list) | 118 env.Depends(solution, project_list) |
| 119 | 119 |
| 120 return solution | 120 return solution |
| 121 | 121 |
| 122 | 122 |
| 123 def generate(env): | 123 def generate(env): |
| 124 # NOTE: SCons requires the use of this name, which fails gpylint. | 124 # NOTE: SCons requires the use of this name, which fails gpylint. |
| 125 """SCons entry point for this tool.""" | 125 """SCons entry point for this tool.""" |
| 126 | 126 |
| 127 # Add in the gather_inputs tool. | 127 # Add in the gather_inputs tool. |
| 128 env.Tool('gather_inputs') | 128 env.Tool('gather_inputs') |
| 129 | 129 |
| 130 # Add a method to generate a combined solution file. | 130 # Add a method to generate a combined solution file. |
| 131 env.AddMethod(Solution, 'Solution') | 131 env.AddMethod(Solution, 'Solution') |
| OLD | NEW |