blob: 5e5e40ccfdf4e3491c0903d8db206e801d826537 [file] [log] [blame]
Brian Carlstromfa42b442013-06-17 12:53:45 -07001#
2# Copyright (C) 2013 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#
16
17LOCAL_PATH := $(call my-dir)
18
19include $(CLEAR_VARS)
20LOCAL_MODULE := dalvikvm
21LOCAL_MODULE_TAGS := optional
22LOCAL_CPP_EXTENSION := cc
23LOCAL_SRC_FILES := dalvikvm.cc
24LOCAL_CFLAGS := -Werror
25LOCAL_SHARED_LIBRARIES := libnativehelper libstlport libdl
26LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
27include external/stlport/libstlport.mk
28include $(BUILD_EXECUTABLE)
29
Brian Carlstrom35bd61a2013-06-18 14:49:30 -070030ifeq ($(WITH_HOST_DALVIK),true)
Brian Carlstromfa42b442013-06-17 12:53:45 -070031include $(CLEAR_VARS)
32LOCAL_MODULE := dalvikvm
33LOCAL_MODULE_TAGS := optional
34LOCAL_CPP_EXTENSION := cc
35LOCAL_SRC_FILES := dalvikvm.cc
36LOCAL_CFLAGS := -Werror
37LOCAL_SHARED_LIBRARIES := libnativehelper
38LOCAL_LDFLAGS := -ldl
39LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
40include $(BUILD_HOST_EXECUTABLE)
Brian Carlstrom35bd61a2013-06-18 14:49:30 -070041endif