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

Unified Diff: tools/create_sdk.py

Issue 11414044: Enable CurlClient tests on Windows by bundling curl.exe. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Really fix resource loading Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/curl/openssl.LICENSE ('k') | utils/pub/curl_client.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_sdk.py
diff --git a/tools/create_sdk.py b/tools/create_sdk.py
index a3235e8b2524f425a2e7cfff91c7803756925276..158fac17e075ef21b1f7646f09e6f171471e4fbb 100755
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -263,6 +263,21 @@ def Main(argv):
"var pathTo7zip = '7zip/7za.exe';"),
])
+ # Copy in cURL on all operating systems, since we need the certificates file
+ # even outside Windows.
+ copytree(join(HOME, 'third_party', 'curl'),
+ join(join(UTIL, 'pub'), 'curl'),
+ ignore=ignore_patterns('.svn'))
Bob Nystrom 2012/11/19 21:50:30 How about just copying the needed files on non-Win
nweiz 2012/11/19 23:00:37 Done.
+
+ ReplaceInFiles([
+ join(UTIL, 'pub', 'curl_client.dart'),
+ ], [
+ ("var pathToCurl = '../../third_party/curl/curl.exe';",
+ "var pathToCurl = 'curl/curl.exe';"),
+ ("var pathToCertificates = '../../third_party/curl/ca-certificates.crt';",
+ "var pathToCertificates = 'curl/ca-certificates.crt';"),
+ ])
+
version = utils.GetVersion()
# Copy dart2js/dartdoc/pub.
« no previous file with comments | « third_party/curl/openssl.LICENSE ('k') | utils/pub/curl_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698