summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2009-10-27 09:08:45 -0700
committerJean-Baptiste Queru <jbq@google.com>2009-10-27 09:08:45 -0700
commitcd48476e20ed1833b13fe3b7a826af35346fd902 (patch)
tree145b749eae771ac8b58278976c0091219cf1bf74 /Android.mk
downloadwebkit-android-sdk-2.0_r1_snapshot.tar.gz
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk43
1 files changed, 43 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 000000000..33c5bf0bf
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,43 @@
+##
+##
+## Copyright 2009, The Android Open Source Project
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+
+LOCAL_PATH := $(call my-dir)
+
+# Two ways to control which JS engine is used:
+# 1. use JS_ENGINE environment variable, value can be either 'jsc' or 'v8'
+# This is the preferred way.
+# 2. if JS_ENGINE is not set, or is not 'jsc' or 'v8', this makefile picks
+# up a default engine to build.
+# To help setup buildbot, a new environment variable, USE_ALT_JS_ENGINE,
+# can be set to true, so that two builds can be different but without
+# specifying which JS engine to use.
+
+# Check JS_ENGINE environment variable
+ifeq ($(JS_ENGINE),jsc)
+ include $(LOCAL_PATH)/Android.jsc.mk
+else
+ ifeq ($(JS_ENGINE),v8)
+ include $(LOCAL_PATH)/Android.v8.mk
+ else
+ # No JS engine is specified, pickup the one we want as default.
+ ifeq ($(USE_ALT_JS_ENGINE),true)
+ include $(LOCAL_PATH)/Android.v8.mk
+ else
+ include $(LOCAL_PATH)/Android.jsc.mk
+ endif # USE_ALT_JS_ENGINE == true
+ endif # JS_ENGINE == v8
+endif # JS_ENGINE == jsc