-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from abarth/improve_roll_tools
Improve roll.py to work with HEAD Chromium
- Loading branch information
Showing
3 changed files
with
116 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- a/build/android/pylib/constants/__init__.py | ||
+++ b/build/android/pylib/constants/__init__.py | ||
@@ -184,7 +184,7 @@ class ANDROID_SDK_VERSION_CODES(object): | ||
LOLLIPOP_MR1 = 22 | ||
|
||
ANDROID_SDK_VERSION = ANDROID_SDK_VERSION_CODES.LOLLIPOP_MR1 | ||
-ANDROID_SDK_BUILD_TOOLS_VERSION = '22.0.0' | ||
+ANDROID_SDK_BUILD_TOOLS_VERSION = '22.0.1' | ||
ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, | ||
'third_party/android_tools/sdk') | ||
ANDROID_SDK_TOOLS = os.path.join(ANDROID_SDK_ROOT, | ||
--- a/build/common.gypi | ||
+++ b/build/common.gypi | ||
@@ -1682,7 +1682,7 @@ | ||
'android_host_arch%': '<!(uname -m)', | ||
# Android API-level of the SDK used for compilation. | ||
'android_sdk_version%': '22', | ||
- 'android_sdk_build_tools_version%': '22.0.0', | ||
+ 'android_sdk_build_tools_version%': '22.0.1', | ||
'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", | ||
}, | ||
# Copy conditionally-set variables out one scope. | ||
--- a/build/config/android/config.gni | ||
+++ b/build/config/android/config.gni | ||
@@ -17,7 +17,7 @@ if (is_android) { | ||
if (!defined(default_android_sdk_root)) { | ||
default_android_sdk_root = "//third_party/android_tools/sdk" | ||
default_android_sdk_version = "22" | ||
- default_android_sdk_build_tools_version = "22.0.0" | ||
+ default_android_sdk_build_tools_version = "22.0.1" | ||
} | ||
|
||
if (!defined(google_play_services_library)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env python | ||
# Copyright 2014 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import os | ||
import subprocess | ||
import utils | ||
|
||
def patch_and_filter(): | ||
"""Applies the *.patch files in the current dir and some hardcoded filters.""" | ||
os.chdir(utils.mojo_root_dir) | ||
|
||
utils.filter_file("build/landmines.py", | ||
lambda line: not "gyp_environment" in line) | ||
utils.commit("filter gyp_environment out of build/landmines.py") | ||
|
||
patch() | ||
|
||
|
||
def patch(relative_patches_dir=os.curdir): | ||
"""Applies the *.patch files in |relative_patches_dir|. | ||
Args: | ||
relative_patches_dir: A directory path relative to the current directory. | ||
Defaults to the directory of this file. | ||
Raises: | ||
subprocess.CalledProcessError if the patch couldn't be applied. | ||
""" | ||
patches_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), | ||
relative_patches_dir) | ||
assert os.path.isdir(patches_dir) | ||
|
||
os.chdir(utils.mojo_root_dir) | ||
for p in utils.find(["*.patch"], patches_dir): | ||
print "applying patch %s" % os.path.basename(p) | ||
try: | ||
utils.system(["git", "apply", p]) | ||
utils.commit("applied patch %s" % os.path.basename(p)) | ||
except subprocess.CalledProcessError: | ||
print "ERROR: patch %s failed to apply" % os.path.basename(p) | ||
raise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters