diff options
author | Feng Qian <fqian@google.com> | 2009-04-17 16:17:43 -0700 |
---|---|---|
committer | Feng Qian <fqian@google.com> | 2009-04-17 16:17:43 -0700 |
commit | a3e5874ecf2f437ac79ab48d84870614683f6739 (patch) | |
tree | 6a69ce34705840486fb0750ceafaa2305f91b238 /v8 | |
parent | 9d6c0fe1a576c623a6db3b95e0460519f984da64 (diff) | |
download | external_webkit-a3e5874ecf2f437ac79ab48d84870614683f6739.zip external_webkit-a3e5874ecf2f437ac79ab48d84870614683f6739.tar.gz external_webkit-a3e5874ecf2f437ac79ab48d84870614683f6739.tar.bz2 |
Add Android makefiles for v8 and v8shell.
To build v8 librariy, use make libv8, and build v8 shell, use make v8shell.
v8 is built as a shared library, it requires libv8.so be in core/prelink-linux-arm.map
Diffstat (limited to 'v8')
-rw-r--r-- | v8/Android.mk | 165 | ||||
-rw-r--r-- | v8/Android.v8shell.mk | 13 | ||||
-rw-r--r-- | v8/tools/jsmin.pyc | bin | 6912 -> 0 bytes |
3 files changed, 178 insertions, 0 deletions
diff --git a/v8/Android.mk b/v8/Android.mk new file mode 100644 index 0000000..eaa1e50 --- /dev/null +++ b/v8/Android.mk @@ -0,0 +1,165 @@ +## +LOCAL_PATH := $(call my-dir) +# libv8.so +# =================================================== +include $(CLEAR_VARS) + +# Set up the target identity +LOCAL_MODULE := libv8 +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +intermediates := $(call local-intermediates-dir) + +LOCAL_CPP_EXTENSION := .cc + +LOCAL_SRC_FILES := \ + src/accessors.cc \ + src/allocation.cc \ + src/api.cc \ + src/assembler.cc \ + src/ast.cc \ + src/bootstrapper.cc \ + src/builtins.cc \ + src/checks.cc \ + src/code-stubs.cc \ + src/codegen.cc \ + src/compilation-cache.cc \ + src/compiler.cc \ + src/contexts.cc \ + src/conversions.cc \ + src/counters.cc \ + src/dateparser.cc \ + src/disassembler.cc \ + src/execution.cc \ + src/factory.cc \ + src/flags.cc \ + src/frames.cc \ + src/func-name-inferrer.cc \ + src/global-handles.cc \ + src/handles.cc \ + src/hashmap.cc \ + src/heap.cc \ + src/ic.cc \ + src/interpreter-irregexp.cc \ + src/jsregexp.cc \ + src/jump-target.cc \ + src/log.cc \ + src/mark-compact.cc \ + src/messages.cc \ + src/objects.cc \ + src/oprofile-agent.cc \ + src/parser.cc \ + src/property.cc \ + src/regexp-macro-assembler.cc \ + src/regexp-macro-assembler-irregexp.cc \ + src/regexp-stack.cc \ + src/register-allocator.cc \ + src/rewriter.cc \ + src/runtime.cc \ + src/scanner.cc \ + src/scopeinfo.cc \ + src/scopes.cc \ + src/serialize.cc \ + src/snapshot-common.cc \ + src/spaces.cc \ + src/string-stream.cc \ + src/stub-cache.cc \ + src/token.cc \ + src/top.cc \ + src/unicode.cc \ + src/usage-analyzer.cc \ + src/utils.cc \ + src/v8-counters.cc \ + src/v8.cc \ + src/v8threads.cc \ + src/variables.cc \ + src/virtual-frame.cc \ + src/zone.cc + +ifeq ($(TARGET_ARCH),arm) + LOCAL_SRC_FILES += \ + src/assembler-arm.cc \ + src/builtins-arm.cc \ + src/codegen-arm.cc \ + src/cpu-arm.cc \ + src/disasm-arm.cc \ + src/frames-arm.cc \ + src/ic-arm.cc \ + src/jump-target-arm.cc \ + src/macro-assembler-arm.cc \ + src/regexp-macro-assembler-arm.cc \ + src/register-allocator-arm.cc \ + src/stub-cache-arm.cc \ + src/virtual-frame-arm.cc +endif + +ifeq ($(TARGET_ARCH),x86) + LOCAL_SRC_FILES += \ + src/assembler-ia32.cc \ + src/builtins-ia32.cc \ + src/codegen-ia32.cc \ + src/cpu-ia32.cc \ + src/disasm-ia32.cc \ + src/frames-ia32.cc \ + src/ic-ia32.cc \ + src/jump-target-ia32.cc \ + src/macro-assembler-ia32.cc \ + src/regexp-macro-assembler-ia32.cc \ + src/register-allocator-ia32.cc \ + src/stub-cache-ia32.cc \ + src/virtual-frame-ia32.cc +endif + +ifeq ($(TARGET_OS),linux) + LOCAL_SRC_FILES += \ + src/platform-linux.cc \ + src/platform-posix.cc +endif + +ifeq ($(TARGET_BUILD_TYPE),debug) + LOCAL_SRC_FILES += \ + src/objects-debug.cc \ + src/prettyprinter.cc \ + src/regexp-macro-assembler-tracer.cc +endif + +# Don't use snapshot for now. +LOCAL_SRC_FILES += \ + src/snapshot-empty.cc \ + src/dtoa-config.c + +LOCAL_JS_LIBRARY_FILES := $(addprefix $(LOCAL_PATH)/, \ + src/runtime.js \ + src/v8natives.js \ + src/array.js \ + src/string.js \ + src/uri.js \ + src/math.js \ + src/messages.js \ + src/apinatives.js \ + src/date-delay.js \ + src/regexp-delay.js \ + src/macros.py \ +) + +# Generate libraries.cc +GEN1 := $(intermediates)/libraries.cc $(intermediates)/libraries-empty.cc +$(GEN1): SCRIPT := $(LOCAL_PATH)/tools/js2c.py +$(GEN1): $(LOCAL_JS_LIBRARY_FILES) + @echo "Generating libraries.cc" + @mkdir -p $(dir $@) + python $(SCRIPT) $(GEN1) CORE $(LOCAL_JS_LIBRARY_FILES) +LOCAL_GENERATED_SOURCES += $(intermediates)/libraries.cc + +LOCAL_CFLAGS += \ + -Wno-endif-labels \ + -Wno-import \ + -Wno-format \ + -fno-exceptions + +ifeq ($(TARGET_ARCH),arm) + LOCAL_CFLAGS += -DARM +endif + +LOCAL_C_INCLUDES += $(LOCAL_PATH)/src + +include $(BUILD_SHARED_LIBRARY) diff --git a/v8/Android.v8shell.mk b/v8/Android.v8shell.mk new file mode 100644 index 0000000..537987b --- /dev/null +++ b/v8/Android.v8shell.mk @@ -0,0 +1,13 @@ +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_SRC_FILES:= samples/shell.cc +LOCAL_MODULE := v8shell + +LOCAL_CPP_EXTENSION := .cc + +LOCAL_SHARED_LIBRARIES := libv8 + +LOCAL_C_INCLUDES += $(LOCAL_PATH)/include + +include $(BUILD_EXECUTABLE) diff --git a/v8/tools/jsmin.pyc b/v8/tools/jsmin.pyc Binary files differdeleted file mode 100644 index 341b5e1..0000000 --- a/v8/tools/jsmin.pyc +++ /dev/null |