diff options
| author | Steve Block <steveblock@google.com> | 2009-10-30 11:49:00 +0000 |
|---|---|---|
| committer | Steve Block <steveblock@google.com> | 2009-11-03 17:23:38 +0000 |
| commit | a7e24c173cf37484693b9abb38e494fa7bd7baeb (patch) | |
| tree | 4aeefe31292fbed0d94f1b93fe86c51849b001c2 /Android.mk | |
| parent | af654c46444383e0baed1cb27a4c1d1bdcac8dd9 (diff) | |
| download | android_external_v8-a7e24c173cf37484693b9abb38e494fa7bd7baeb.tar.gz android_external_v8-a7e24c173cf37484693b9abb38e494fa7bd7baeb.tar.bz2 android_external_v8-a7e24c173cf37484693b9abb38e494fa7bd7baeb.zip | |
Move V8 to external/v8
Change-Id: If68025d67453785a651c5dfb34fad298c16676a4
Diffstat (limited to 'Android.mk')
| -rw-r--r-- | Android.mk | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 00000000..37c79ff4 --- /dev/null +++ b/Android.mk @@ -0,0 +1,48 @@ +## +## +## 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. +## + +BASE_PATH := $(call my-dir) +include $(CLEAR_VARS) + +# 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. + +NEED_V8 = false +ifeq ($(JS_ENGINE),v8) + NEED_V8 = true +else + ifneq ($(JS_ENGINE),jsc) + ifeq ($(USE_ALT_JS_ENGINE),true) + NEED_V8 = true + endif + endif +endif + +ifeq ($(NEED_V8),true) + # Build libv8 and v8shell + ifeq ($(ENABLE_V8_SNAPSHOT),true) + include $(BASE_PATH)/Android.mksnapshot.mk + endif + include $(BASE_PATH)/Android.libv8.mk + include $(BASE_PATH)/Android.v8shell.mk +endif |
