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

Side by Side Diff: dart/tools/create_editor.py

Issue 103233006: Reapply "Change SDK/DartEditor versioning scheme to semantic versions." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « dart/tools/VERSION ('k') | dart/tools/create_windows_installer.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/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 # A script which will be invoked from gyp to create a build of the editor. 7 # A script which will be invoked from gyp to create a build of the editor.
8 # 8 #
9 # Usage: ./tools/create_editor.py 9 # Usage: ./tools/create_editor.py
10 # [--mode <mode>] [--arch <arch>] [--out <output>] [--build <build>] 10 # [--mode <mode>] [--arch <arch>] [--out <output>] [--build <build>]
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 sys.stderr.flush() 180 sys.stderr.flush()
181 181
182 buildScript = join('editor', 'tools', 'features', 182 buildScript = join('editor', 'tools', 'features',
183 'com.google.dart.tools.deploy.feature_releng', 183 'com.google.dart.tools.deploy.feature_releng',
184 'build_rcp.xml') 184 'build_rcp.xml')
185 build_cmd = [AntPath(), 185 build_cmd = [AntPath(),
186 '-lib', 186 '-lib',
187 join('third_party', 'bzip2', 'bzip2.jar'), 187 join('third_party', 'bzip2', 'bzip2.jar'),
188 '-Dbuild.out=' + OUTPUT, 188 '-Dbuild.out=' + OUTPUT,
189 '-Dbuild.configs=' + buildConfig, 189 '-Dbuild.configs=' + buildConfig,
190 '-Dbuild.revision=' + utils.GetSVNRevision(),
191 '-Ddart.version.full=' + utils.GetVersion(),
192 '-Dbuild.root=' + GetEclipseBuildRoot(), 190 '-Dbuild.root=' + GetEclipseBuildRoot(),
193 '-Dbuild.downloads=' + GetDownloadCache(), 191 '-Dbuild.downloads=' + GetDownloadCache(),
194 '-Dbuild.source=' + os.path.abspath('editor'), 192 '-Dbuild.source=' + os.path.abspath('editor'),
195 '-Dbuild.dart.sdk=' + GetSdkPath(), 193 '-Dbuild.dart.sdk=' + GetSdkPath(),
196 '-Dbuild.no.properties=true', 194 '-Dbuild.no.properties=true',
197 '-Dbuild.channel=' + utils.GetChannel(), 195 '-Dbuild.channel=' + utils.GetChannel(),
196 '-Dbuild.revision=' + utils.GetSVNRevision(),
197 '-Dbuild.version.qualifier=' + utils.GetEclipseVersionQualifier(),
198 '-Ddart.version.full=' + utils.GetVersion(),
198 '-buildfile', 199 '-buildfile',
199 buildScript] 200 buildScript]
200 print build_cmd 201 print build_cmd
201 buildRcpStatus = subprocess.call(build_cmd, shell=utils.IsWindows()) 202 buildRcpStatus = subprocess.call(build_cmd, shell=utils.IsWindows())
202 203
203 if buildRcpStatus != 0: 204 if buildRcpStatus != 0:
204 sys.exit(buildRcpStatus) 205 sys.exit(buildRcpStatus)
205 206
206 # build_rcp.xml will put the built editor archive in the OUTPUT directory 207 # build_rcp.xml will put the built editor archive in the OUTPUT directory
207 # (dart-editor-macosx.cocoa.x86.zip). It contains the editor application in a 208 # (dart-editor-macosx.cocoa.x86.zip). It contains the editor application in a
208 # dart/ subdirectory. We unzip the contents of the archive into OUTPUT. It 209 # dart/ subdirectory. We unzip the contents of the archive into OUTPUT. It
209 # will use the ../dart-sdk directory as its SDK. 210 # will use the ../dart-sdk directory as its SDK.
210 archives = glob.glob(join(OUTPUT, '*.zip')) 211 archives = glob.glob(join(OUTPUT, '*.zip'))
211 212
212 if archives: 213 if archives:
213 ProcessEditorArchive(arch, archives[0], OUTPUT) 214 ProcessEditorArchive(arch, archives[0], OUTPUT)
214 215
215 if os.path.exists(GetEditorTemp()): 216 if os.path.exists(GetEditorTemp()):
216 shutil.rmtree(GetEditorTemp()) 217 shutil.rmtree(GetEditorTemp())
217 218
218 print('\nEditor build successful') 219 print('\nEditor build successful')
219 220
220 221
221 if __name__ == '__main__': 222 if __name__ == '__main__':
222 sys.exit(Main()) 223 sys.exit(Main())
OLDNEW
« no previous file with comments | « dart/tools/VERSION ('k') | dart/tools/create_windows_installer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698