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

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

Issue 9094: Adding in new software construction toolkit version. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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
« no previous file with comments | « site_scons/site_tools/replicate.py ('k') | site_scons/site_tools/visual_studio_solution.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 'cp -rf ${SOURCES[2:]} $TARGET/Contents/Resources']) 106 'cp -rf ${SOURCES[2:]} $TARGET/Contents/Resources'])
107 107
108 # Add an alias for this target. 108 # Add an alias for this target.
109 # This also allows the 'all_bundles' target to build me. 109 # This also allows the 'all_bundles' target to build me.
110 a = env.Alias(target, p) 110 a = env.Alias(target, p)
111 for group in env['COMPONENT_BUNDLE_GROUPS']: 111 for group in env['COMPONENT_BUNDLE_GROUPS']:
112 SCons.Script.Alias(group, a) 112 SCons.Script.Alias(group, a)
113 113
114 return env.Dir(target) 114 return env.Dir(target)
115 115
116 #------------------------------------------------------------------------------
117
118
116 def generate(env): 119 def generate(env):
117 # NOTE: SCons requires the use of this name, which fails gpylint. 120 # NOTE: SCons requires the use of this name, which fails gpylint.
118 """SCons entry point for this tool.""" 121 """SCons entry point for this tool."""
119 122
120 # Use g++ 123 # Use g++
121 env.Tool('g++') 124 env.Tool('g++')
122 env.Tool('gcc') 125 env.Tool('gcc')
123 env.Tool('gnulink') 126 env.Tool('gnulink')
124 env.Tool('ar') 127 env.Tool('ar')
125 env.Tool('as') 128 env.Tool('as')
126 env.Tool('applelink') 129 env.Tool('applelink')
127 130
128 # Declare bits 131 # Declare bits
129 DeclareBit('mac', 'Target platform is mac.', 132 DeclareBit('mac', 'Target platform is mac.',
130 exclusive_groups=('target_platform')) 133 exclusive_groups=('target_platform'))
131 DeclareBit('posix', 'Target platform is posix.') 134 DeclareBit('posix', 'Target platform is posix.')
132 env.SetBits('mac', 'posix') 135 env.SetBits('mac', 'posix')
133 136
134 env.Replace( 137 env.Replace(
135 TARGET_PLATFORM='MAC', 138 TARGET_PLATFORM='MAC',
136 COMPONENT_PLATFORM_SETUP=ComponentPlatformSetup, 139 COMPONENT_PLATFORM_SETUP=ComponentPlatformSetup,
137 CCFLAG_INCLUDE='-include', # Command line option to include a header 140 CCFLAG_INCLUDE='-include', # Command line option to include a header
138 ) 141 )
139 142
140 env.Append( 143 env.Append(
141 HOST_PLATFORMS=['MAC'], 144 HOST_PLATFORMS=['MAC'],
142 CPPDEFINES=['OS_MACOSX=OS_MACOSX'], 145 CPPDEFINES=['OS_MACOSX=OS_MACOSX'],
143 BITS=['mac', 'posix'],
144 146
145 # Settings for debug 147 # Settings for debug
146 CCFLAGS_DEBUG=['-g'], 148 CCFLAGS_DEBUG=['-g'],
147 LINKFLAGS_DEBUG=['-g'], 149 LINKFLAGS_DEBUG=['-g'],
148 150
149 # Settings for optimized 151 # Settings for optimized
150 CCFLAGS_OPTIMIZED=['-O2'], 152 CCFLAGS_OPTIMIZED=['-O2'],
151 153
152 # Settings for component_builders 154 # Settings for component_builders
153 COMPONENT_LIBRARY_LINK_SUFFIXES=['.dylib', '.a'], 155 COMPONENT_LIBRARY_LINK_SUFFIXES=['.dylib', '.a'],
(...skipping 11 matching lines...) Expand all
165 BUNDLE_GENERATE_PKGINFO='echo "${BUNDLE_STRING}"', 167 BUNDLE_GENERATE_PKGINFO='echo "${BUNDLE_STRING}"',
166 BUNDLE_PKGINFO_FILENAME='PkgInfo', 168 BUNDLE_PKGINFO_FILENAME='PkgInfo',
167 BUNDLE_INFO_PLIST='Info.plist', 169 BUNDLE_INFO_PLIST='Info.plist',
168 ) 170 )
169 171
170 # Add the Bundle pseudobuilder. 172 # Add the Bundle pseudobuilder.
171 env.AddMethod(BundlePseudoBuilder, 'Bundle') 173 env.AddMethod(BundlePseudoBuilder, 'Bundle')
172 174
173 # Add our target groups 175 # Add our target groups
174 AddTargetGroup('all_bundles', 'bundles can be built') 176 AddTargetGroup('all_bundles', 'bundles can be built')
OLDNEW
« no previous file with comments | « site_scons/site_tools/replicate.py ('k') | site_scons/site_tools/visual_studio_solution.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698