| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 # Declare bits | 131 # Declare bits |
| 132 DeclareBit('mac', 'Target platform is mac.', | 132 DeclareBit('mac', 'Target platform is mac.', |
| 133 exclusive_groups=('target_platform')) | 133 exclusive_groups=('target_platform')) |
| 134 DeclareBit('posix', 'Target platform is posix.') | 134 DeclareBit('posix', 'Target platform is posix.') |
| 135 env.SetBits('mac', 'posix') | 135 env.SetBits('mac', 'posix') |
| 136 | 136 |
| 137 env.Replace( | 137 env.Replace( |
| 138 TARGET_PLATFORM='MAC', | 138 TARGET_PLATFORM='MAC', |
| 139 COMPONENT_PLATFORM_SETUP=ComponentPlatformSetup, | 139 COMPONENT_PLATFORM_SETUP=ComponentPlatformSetup, |
| 140 CCFLAG_INCLUDE='-include', # Command line option to include a header | 140 CCFLAG_INCLUDE='-include', # Command line option to include a header |
| 141 |
| 142 # Code coverage related. |
| 143 COVERAGE_CCFLAGS=['-ftest-coverage', '-fprofile-arcs'], |
| 144 COVERAGE_LIBS='gcov', |
| 145 COVERAGE_STOP_CMD=[ |
| 146 '$COVERAGE_MCOV --directory "$TARGET_ROOT" --output "$TARGET"', |
| 147 ('$COVERAGE_GENHTML --output-directory $COVERAGE_HTML_DIR ' |
| 148 '$COVERAGE_OUTPUT_FILE'), |
| 149 ], |
| 141 ) | 150 ) |
| 142 | 151 |
| 143 env.Append( | 152 env.Append( |
| 144 HOST_PLATFORMS=['MAC'], | 153 HOST_PLATFORMS=['MAC'], |
| 145 CPPDEFINES=['OS_MACOSX=OS_MACOSX'], | 154 CPPDEFINES=['OS_MACOSX=OS_MACOSX'], |
| 146 | 155 |
| 147 # Settings for debug | 156 # Settings for debug |
| 148 CCFLAGS_DEBUG=['-g'], | 157 CCFLAGS_DEBUG=['-g'], |
| 149 LINKFLAGS_DEBUG=['-g'], | 158 LINKFLAGS_DEBUG=['-g'], |
| 150 | 159 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 167 BUNDLE_GENERATE_PKGINFO='echo "${BUNDLE_STRING}"', | 176 BUNDLE_GENERATE_PKGINFO='echo "${BUNDLE_STRING}"', |
| 168 BUNDLE_PKGINFO_FILENAME='PkgInfo', | 177 BUNDLE_PKGINFO_FILENAME='PkgInfo', |
| 169 BUNDLE_INFO_PLIST='Info.plist', | 178 BUNDLE_INFO_PLIST='Info.plist', |
| 170 ) | 179 ) |
| 171 | 180 |
| 172 # Add the Bundle pseudobuilder. | 181 # Add the Bundle pseudobuilder. |
| 173 env.AddMethod(BundlePseudoBuilder, 'Bundle') | 182 env.AddMethod(BundlePseudoBuilder, 'Bundle') |
| 174 | 183 |
| 175 # Add our target groups | 184 # Add our target groups |
| 176 AddTargetGroup('all_bundles', 'bundles can be built') | 185 AddTargetGroup('all_bundles', 'bundles can be built') |
| OLD | NEW |