Android.mk revision a0f945f21dd38df48946fcea57d798a9692734b8
1#
2# Copyright (C) 2010 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15# Copyright The Android Open Source Project
16
17LOCAL_PATH := $(call my-dir)
18
19test_module = dalvik-vm-unit-tests
20test_tags = eng tests
21
22test_src_files = \
23    dvmHumanReadableDescriptor_test.cpp \
24    
25test_c_includes = \
26    dalvik \
27    dalvik/vm \
28
29# Build for the device. Run with:
30#   adb shell /data/nativetest/dalvik-vm-unit-tests/dalvik-vm-unit-tests
31include $(CLEAR_VARS)
32LOCAL_CFLAGS += -DANDROID_SMP=1
33LOCAL_C_INCLUDES += $(test_c_includes)
34LOCAL_MODULE := $(test_module)
35LOCAL_MODULE_TAGS := $(test_tags)
36LOCAL_SRC_FILES := $(test_src_files)
37LOCAL_SHARED_LIBRARIES += libcutils libutils libdvm
38include $(BUILD_NATIVE_TEST)
39
40# Build for the host.
41# TODO: BUILD_HOST_NATIVE_TEST doesn't work yet; STL-related compile-time and
42# run-time failures, presumably astl/stlport/genuine host STL confusion.
43#include $(CLEAR_VARS)
44#LOCAL_C_INCLUDES += $(test_c_includes)
45#LOCAL_MODULE := $(test_module)
46#LOCAL_MODULE_TAGS := $(test_tags)
47#LOCAL_SRC_FILES := $(test_src_files)
48#LOCAL_SHARED_LIBRARIES += libdvm libcrypto libssl libicuuc libicui18n
49#LOCAL_WHOLE_STATIC_LIBRARIES += libcutils libutils liblog libdvm
50#include $(BUILD_HOST_NATIVE_TEST)
51