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

Unified Diff: tools/BUILD_simulator.py

Issue 1414643002: Enable BUILD file compilation of skia and dm with --config=android_arm. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Use -mfpu=neon everywhere for Android; fold opts targets back into srcs. Created 5 years, 2 months 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 | « tools/BUILD.public.expected ('k') | tools/flags/SkCommandLineFlags.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/BUILD_simulator.py
diff --git a/tools/BUILD_simulator.py b/tools/BUILD_simulator.py
index bd4a832b7ba5b0e3f17798750549f9e5e0ecf203..209259fee8d6892302b33357ef0b80aa48877f27 100755
--- a/tools/BUILD_simulator.py
+++ b/tools/BUILD_simulator.py
@@ -18,6 +18,14 @@ import re
def noop(*args, **kwargs):
pass
+def select_simulator(d):
+ result = []
+ for k in d:
+ result.append("*** BEGIN %s ***" % k)
+ result.extend(d[k])
+ result.append("*** END %s ***" % k)
+ return result
+
DOUBLE_STAR_RE = re.compile(r'/\*\*/')
STAR_RE = re.compile(r'\*')
DOUBLE_STAR_PLACEHOLDER = "xxxdoublestarxxx"
@@ -63,13 +71,16 @@ def BUILD_glob(include, exclude=()):
# Python code. This pulls its variable definitions (SRCS, HDRS,
# DEFINES, etc.) into local_names.
global_names = {
- 'exports_files': noop,
'cc_library': noop,
'cc_test': noop,
+ 'exports_files': noop,
'glob': BUILD_glob,
- 'EXTERNAL_DEPS': [],
+ 'select': select_simulator,
'BASE_DIR': "",
+ 'CONDITION_ANDROID': "CONDITION_ANDROID",
'DM_EXTERNAL_DEPS': [],
+ 'EXTERNAL_DEPS_ANDROID': [],
+ 'EXTERNAL_DEPS_UNIX': [],
}
local_names = {}
execfile('BUILD.public', global_names, local_names)
« no previous file with comments | « tools/BUILD.public.expected ('k') | tools/flags/SkCommandLineFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698