Fix the ordering of the JS library sources to make ordering requirements clear
The ordering of these sources is important to satisfy compile dependencies.
Change-Id: I81cc1e35966906e8b493822592279d01321ecc71
diff --git a/Android.v8common.mk b/Android.v8common.mk
index d8f12bc..8b6d843 100644
--- a/Android.v8common.mk
+++ b/Android.v8common.mk
@@ -128,6 +128,9 @@
V8_LOCAL_SRC_FILES += \
src/dtoa-config.c
+# The order of these JS library sources is important. The order here determines
+# the ordering of the JS code in libraries.cc, which must be in a specific order
+# to meet compiler dependency requirements.
V8_LOCAL_JS_LIBRARY_FILES := \
src/runtime.js \
src/v8natives.js \
@@ -136,11 +139,17 @@
src/uri.js \
src/math.js \
src/messages.js \
- src/apinatives.js \
+ src/apinatives.js
+
+# These JS library sources must follow the above sources but their order is not
+# important.
+V8_LOCAL_JS_LIBRARY_FILES += \
src/date.js \
- src/regexp.js \
- src/json.js \
- src/mirror-debugger.js \
src/debug-debugger.js \
+ src/json.js \
src/liveedit-debugger.js \
+ src/mirror-debugger.js \
+ src/regexp.js
+
+V8_LOCAL_JS_LIBRARY_FILES += \
src/macros.py