summaryrefslogtreecommitdiffstats
path: root/vm/ReconfigureDvm.mk
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2009-11-03 16:19:11 -0800
committerBen Cheng <bccheng@google.com>2009-11-04 14:49:00 -0800
commitbb0dce59d58b10ed18947d94a65a9a665e104793 (patch)
treeac2812a837047612574c2d366a6f04be14cbef77 /vm/ReconfigureDvm.mk
parent93c995b8eab585a05b058ed17ec1b391c4946d77 (diff)
downloadandroid_dalvik-bb0dce59d58b10ed18947d94a65a9a665e104793.tar.gz
android_dalvik-bb0dce59d58b10ed18947d94a65a9a665e104793.tar.bz2
android_dalvik-bb0dce59d58b10ed18947d94a65a9a665e104793.zip
Remove cruft in the default libdvm.so and add 3 more special targets.
The idea is similar to having libc.so as the default/optimal build and libc_debug.so at a handy place. libdvm.so : default build to be installed with JIT on and assertion off. libdvm_interp.so: JIT statically compiled out and assertion off. libdvm_assert.so: assert/JIT-tuning enabled. libdvm_sv.so : assert/JIT-self-verification enabled. Compile time of "mmm dalvik" from clean build with -j1: real 2m36.144s user 2m23.029s sys 0m12.253s Compile time of "mmm dalvik" from touching Interp.c with -j1: real 0m8.493s user 0m7.416s sys 0m1.280s Code size: 638152 Nov 3 16:17 libdvm.so 785604 Nov 3 16:17 libdvm_assert.so 556888 Nov 3 16:17 libdvm_interp.so 793804 Nov 3 16:17 libdvm_sv.so
Diffstat (limited to 'vm/ReconfigureDvm.mk')
-rw-r--r--vm/ReconfigureDvm.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/vm/ReconfigureDvm.mk b/vm/ReconfigureDvm.mk
new file mode 100644
index 000000000..62a0e0fcb
--- /dev/null
+++ b/vm/ReconfigureDvm.mk
@@ -0,0 +1,34 @@
+# Copyright (C) 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.
+
+include $(CLEAR_VARS)
+
+# Variables used in the included Dvm.mk.
+dvm_os := $(TARGET_OS)
+dvm_arch := $(TARGET_ARCH)
+dvm_arch_variant := $(TARGET_ARCH_VARIANT)
+dvm_simulator := $(TARGET_SIMULATOR)
+
+include $(LOCAL_PATH)/Dvm.mk
+
+LOCAL_SHARED_LIBRARIES += \
+ liblog libcutils libnativehelper libz
+
+LOCAL_STATIC_LIBRARIES += libdex
+
+# Don't prelink by default
+LOCAL_PRELINK_MODULE := false
+
+# Don't install on any build by default
+LOCAL_MODULE_TAGS := optional