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

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

Issue 106993002: Revert "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(),
190 '-Dbuild.root=' + GetEclipseBuildRoot(), 192 '-Dbuild.root=' + GetEclipseBuildRoot(),
191 '-Dbuild.downloads=' + GetDownloadCache(), 193 '-Dbuild.downloads=' + GetDownloadCache(),
192 '-Dbuild.source=' + os.path.abspath('editor'), 194 '-Dbuild.source=' + os.path.abspath('editor'),
193 '-Dbuild.dart.sdk=' + GetSdkPath(), 195 '-Dbuild.dart.sdk=' + GetSdkPath(),
194 '-Dbuild.no.properties=true', 196 '-Dbuild.no.properties=true',
195 '-Dbuild.channel=' + utils.GetChannel(), 197 '-Dbuild.channel=' + utils.GetChannel(),
196 '-Dbuild.revision=' + utils.GetSVNRevision(),
197 '-Dbuild.version.qualifier=' + utils.GetEclipseVersionQualifier(),
198 '-Ddart.version.full=' + utils.GetVersion(),
199 '-buildfile', 198 '-buildfile',
200 buildScript] 199 buildScript]
201 print build_cmd 200 print build_cmd
202 buildRcpStatus = subprocess.call(build_cmd, shell=utils.IsWindows()) 201 buildRcpStatus = subprocess.call(build_cmd, shell=utils.IsWindows())
203 202
204 if buildRcpStatus != 0: 203 if buildRcpStatus != 0:
205 sys.exit(buildRcpStatus) 204 sys.exit(buildRcpStatus)
206 205
207 # build_rcp.xml will put the built editor archive in the OUTPUT directory 206 # build_rcp.xml will put the built editor archive in the OUTPUT directory
208 # (dart-editor-macosx.cocoa.x86.zip). It contains the editor application in a 207 # (dart-editor-macosx.cocoa.x86.zip). It contains the editor application in a
209 # dart/ subdirectory. We unzip the contents of the archive into OUTPUT. It 208 # dart/ subdirectory. We unzip the contents of the archive into OUTPUT. It
210 # will use the ../dart-sdk directory as its SDK. 209 # will use the ../dart-sdk directory as its SDK.
211 archives = glob.glob(join(OUTPUT, '*.zip')) 210 archives = glob.glob(join(OUTPUT, '*.zip'))
212 211
213 if archives: 212 if archives:
214 ProcessEditorArchive(arch, archives[0], OUTPUT) 213 ProcessEditorArchive(arch, archives[0], OUTPUT)
215 214
216 if os.path.exists(GetEditorTemp()): 215 if os.path.exists(GetEditorTemp()):
217 shutil.rmtree(GetEditorTemp()) 216 shutil.rmtree(GetEditorTemp())
218 217
219 print('\nEditor build successful') 218 print('\nEditor build successful')
220 219
221 220
222 if __name__ == '__main__': 221 if __name__ == '__main__':
223 sys.exit(Main()) 222 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