| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright (c) 2009 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 3 """ | 7 """ |
| 4 SCons generator. | 8 SCons generator. |
| 5 | 9 |
| 6 This contains class definitions and supporting functions for generating | 10 This contains class definitions and supporting functions for generating |
| 7 pieces of SCons files for the different types of GYP targets. | 11 pieces of SCons files for the different types of GYP targets. |
| 8 """ | 12 """ |
| 9 | 13 |
| 10 import os | 14 import os |
| 11 | 15 |
| 12 | 16 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 'none' : NoneTarget, | 190 'none' : NoneTarget, |
| 187 'settings' : SettingsTarget, | 191 'settings' : SettingsTarget, |
| 188 'executable' : ProgramTarget, | 192 'executable' : ProgramTarget, |
| 189 'static_library' : StaticLibraryTarget, | 193 'static_library' : StaticLibraryTarget, |
| 190 'shared_library' : SharedLibraryTarget, | 194 'shared_library' : SharedLibraryTarget, |
| 191 'loadable_module' : LoadableModuleTarget, | 195 'loadable_module' : LoadableModuleTarget, |
| 192 } | 196 } |
| 193 | 197 |
| 194 def Target(spec): | 198 def Target(spec): |
| 195 return TargetMap[spec.get('type')](spec) | 199 return TargetMap[spec.get('type')](spec) |
| OLD | NEW |