| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 # Declare bits | 128 # Declare bits |
| 129 DeclareBit('mac', 'Target platform is mac.', | 129 DeclareBit('mac', 'Target platform is mac.', |
| 130 exclusive_groups=('target_platform')) | 130 exclusive_groups=('target_platform')) |
| 131 DeclareBit('posix', 'Target platform is posix.') | 131 DeclareBit('posix', 'Target platform is posix.') |
| 132 env.SetBits('mac', 'posix') | 132 env.SetBits('mac', 'posix') |
| 133 | 133 |
| 134 env.Replace( | 134 env.Replace( |
| 135 TARGET_PLATFORM='MAC', | 135 TARGET_PLATFORM='MAC', |
| 136 COMPONENT_PLATFORM_SETUP=ComponentPlatformSetup, | 136 COMPONENT_PLATFORM_SETUP=ComponentPlatformSetup, |
| 137 CCFLAG_INCLUDE='-include', # Command line option to include a header |
| 137 ) | 138 ) |
| 138 | 139 |
| 139 env.Append( | 140 env.Append( |
| 140 HOST_PLATFORMS=['MAC'], | 141 HOST_PLATFORMS=['MAC'], |
| 141 CPPDEFINES=['OS_MACOSX=OS_MACOSX'], | 142 CPPDEFINES=['OS_MACOSX=OS_MACOSX'], |
| 142 BITS=['mac', 'posix'], | 143 BITS=['mac', 'posix'], |
| 143 | 144 |
| 144 # Settings for debug | 145 # Settings for debug |
| 145 CCFLAGS_DEBUG=['-g'], | 146 CCFLAGS_DEBUG=['-g'], |
| 146 LINKFLAGS_DEBUG=['-g'], | 147 LINKFLAGS_DEBUG=['-g'], |
| (...skipping 17 matching lines...) Expand all Loading... |
| 164 BUNDLE_GENERATE_PKGINFO='echo "${BUNDLE_STRING}"', | 165 BUNDLE_GENERATE_PKGINFO='echo "${BUNDLE_STRING}"', |
| 165 BUNDLE_PKGINFO_FILENAME='PkgInfo', | 166 BUNDLE_PKGINFO_FILENAME='PkgInfo', |
| 166 BUNDLE_INFO_PLIST='Info.plist', | 167 BUNDLE_INFO_PLIST='Info.plist', |
| 167 ) | 168 ) |
| 168 | 169 |
| 169 # Add the Bundle pseudobuilder. | 170 # Add the Bundle pseudobuilder. |
| 170 env.AddMethod(BundlePseudoBuilder, 'Bundle') | 171 env.AddMethod(BundlePseudoBuilder, 'Bundle') |
| 171 | 172 |
| 172 # Add our target groups | 173 # Add our target groups |
| 173 AddTargetGroup('all_bundles', 'bundles can be built') | 174 AddTargetGroup('all_bundles', 'bundles can be built') |
| OLD | NEW |