Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: site_scons/site_tools/target_platform_mac.py

Issue 13134: Pulling in hammer changes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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')
OLDNEW
« no previous file with comments | « site_scons/site_tools/target_platform_linux.py ('k') | site_scons/site_tools/target_platform_windows.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698