Brian Carlstrom | fa42b44 | 2013-06-17 12:53:45 -0700 | [diff] [blame] | 1 | # |
| 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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
Brian Carlstrom | 906c27d | 2014-06-29 15:03:29 -0700 | [diff] [blame] | 19 | include art/build/Android.common.mk |
| 20 | |
Ian Rogers | 507dfdd | 2014-05-15 16:42:40 -0700 | [diff] [blame] | 21 | dalvikvm_cflags := -Wall -Werror -Wextra -std=gnu++11 |
Elliott Hughes | 025218c | 2013-07-30 17:13:06 -0700 | [diff] [blame] | 22 | |
Brian Carlstrom | fa42b44 | 2013-06-17 12:53:45 -0700 | [diff] [blame] | 23 | include $(CLEAR_VARS) |
| 24 | LOCAL_MODULE := dalvikvm |
| 25 | LOCAL_MODULE_TAGS := optional |
| 26 | LOCAL_CPP_EXTENSION := cc |
Dmitriy Ivanov | e49a4f6 | 2014-10-20 14:11:00 -0700 | [diff] [blame] | 27 | LOCAL_SRC_FILES := dalvikvm.cc |
Elliott Hughes | 025218c | 2013-07-30 17:13:06 -0700 | [diff] [blame] | 28 | LOCAL_CFLAGS := $(dalvikvm_cflags) |
Ian Rogers | 507dfdd | 2014-05-15 16:42:40 -0700 | [diff] [blame] | 29 | LOCAL_C_INCLUDES := art/runtime |
Dmitriy Ivanov | f57874d | 2014-10-07 13:43:23 -0700 | [diff] [blame] | 30 | LOCAL_SHARED_LIBRARIES := libdl liblog libnativehelper |
Dmitriy Ivanov | e49a4f6 | 2014-10-20 14:11:00 -0700 | [diff] [blame] | 31 | LOCAL_WHOLE_STATIC_LIBRARIES := libsigchain |
Dmitriy Ivanov | 7de85ca | 2015-04-01 11:17:46 -0700 | [diff] [blame] | 32 | LOCAL_LDFLAGS := -Wl,--export-dynamic |
Brian Carlstrom | fa42b44 | 2013-06-17 12:53:45 -0700 | [diff] [blame] | 33 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Brian Carlstrom | 906c27d | 2014-06-29 15:03:29 -0700 | [diff] [blame] | 34 | LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common.mk |
Andreas Gampe | afbaa1a | 2014-03-25 18:09:32 -0700 | [diff] [blame] | 35 | LOCAL_MULTILIB := both |
Yongqin Liu | 2bb4436 | 2014-05-13 17:51:47 +0800 | [diff] [blame] | 36 | LOCAL_MODULE_STEM_32 := dalvikvm32 |
Andreas Gampe | afbaa1a | 2014-03-25 18:09:32 -0700 | [diff] [blame] | 37 | LOCAL_MODULE_STEM_64 := dalvikvm64 |
Dan Albert | 31fb260 | 2014-09-30 22:10:10 -0700 | [diff] [blame] | 38 | LOCAL_NATIVE_COVERAGE := $(ART_COVERAGE) |
Brian Carlstrom | fa42b44 | 2013-06-17 12:53:45 -0700 | [diff] [blame] | 39 | include $(BUILD_EXECUTABLE) |
Yongqin Liu | 2bb4436 | 2014-05-13 17:51:47 +0800 | [diff] [blame] | 40 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 41 | # Create symlink for the primary version target. |
Yongqin Liu | 2bb4436 | 2014-05-13 17:51:47 +0800 | [diff] [blame] | 42 | include $(BUILD_SYSTEM)/executable_prefer_symlink.mk |
| 43 | |
Brian Carlstrom | fa50baa | 2013-08-02 01:00:27 -0700 | [diff] [blame] | 44 | ART_TARGET_EXECUTABLES += $(TARGET_OUT_EXECUTABLES)/$(LOCAL_MODULE) |
Brian Carlstrom | 906c27d | 2014-06-29 15:03:29 -0700 | [diff] [blame] | 45 | ART_TARGET_EXECUTABLES += $(TARGET_OUT_EXECUTABLES)/$(LOCAL_MODULE)$(ART_PHONY_TEST_TARGET_SUFFIX) |
| 46 | ifdef 2ND_ART_PHONY_TEST_TARGET_SUFFIX |
| 47 | ART_TARGET_EXECUTABLES += $(TARGET_OUT_EXECUTABLES)/$(LOCAL_MODULE)$(2ND_ART_PHONY_TEST_TARGET_SUFFIX) |
| 48 | endif |
Brian Carlstrom | fa42b44 | 2013-06-17 12:53:45 -0700 | [diff] [blame] | 49 | |
| 50 | include $(CLEAR_VARS) |
| 51 | LOCAL_MODULE := dalvikvm |
| 52 | LOCAL_MODULE_TAGS := optional |
Ian Rogers | 507dfdd | 2014-05-15 16:42:40 -0700 | [diff] [blame] | 53 | LOCAL_CLANG := true |
Brian Carlstrom | fa42b44 | 2013-06-17 12:53:45 -0700 | [diff] [blame] | 54 | LOCAL_CPP_EXTENSION := cc |
Dmitriy Ivanov | e49a4f6 | 2014-10-20 14:11:00 -0700 | [diff] [blame] | 55 | LOCAL_SRC_FILES := dalvikvm.cc |
Elliott Hughes | 025218c | 2013-07-30 17:13:06 -0700 | [diff] [blame] | 56 | LOCAL_CFLAGS := $(dalvikvm_cflags) |
Ian Rogers | 507dfdd | 2014-05-15 16:42:40 -0700 | [diff] [blame] | 57 | LOCAL_C_INCLUDES := art/runtime |
Brian Carlstrom | fa42b44 | 2013-06-17 12:53:45 -0700 | [diff] [blame] | 58 | LOCAL_SHARED_LIBRARIES := libnativehelper |
Dmitriy Ivanov | e49a4f6 | 2014-10-20 14:11:00 -0700 | [diff] [blame] | 59 | LOCAL_WHOLE_STATIC_LIBRARIES := libsigchain |
Dmitriy Ivanov | 1d74e57 | 2014-10-14 12:18:10 -0700 | [diff] [blame] | 60 | LOCAL_LDFLAGS := -ldl -lpthread |
| 61 | # Mac OS linker doesn't understand --export-dynamic. |
| 62 | ifneq ($(HOST_OS),darwin) |
| 63 | LOCAL_LDFLAGS += -Wl,--export-dynamic |
Dmitriy Ivanov | 1d74e57 | 2014-10-14 12:18:10 -0700 | [diff] [blame] | 64 | endif |
Brian Carlstrom | 906c27d | 2014-06-29 15:03:29 -0700 | [diff] [blame] | 65 | LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk |
| 66 | LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common.mk |
Ian Rogers | bd5ea6a | 2014-04-16 16:34:44 -0700 | [diff] [blame] | 67 | LOCAL_IS_HOST_MODULE := true |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 68 | LOCAL_MULTILIB := both |
Ying Wang | 754a445 | 2015-07-21 12:05:30 -0700 | [diff] [blame] | 69 | ifdef ART_MULTILIB_OVERRIDE_host |
| 70 | LOCAL_MULTILIB := $(ART_MULTILIB_OVERRIDE_host) |
| 71 | endif |
| 72 | ifeq ($(LOCAL_MULTILIB),both) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 73 | LOCAL_MODULE_STEM_32 := dalvikvm32 |
| 74 | LOCAL_MODULE_STEM_64 := dalvikvm64 |
Ying Wang | 754a445 | 2015-07-21 12:05:30 -0700 | [diff] [blame] | 75 | endif |
Dan Albert | 31fb260 | 2014-09-30 22:10:10 -0700 | [diff] [blame] | 76 | LOCAL_NATIVE_COVERAGE := $(ART_COVERAGE) |
Brian Carlstrom | fa42b44 | 2013-06-17 12:53:45 -0700 | [diff] [blame] | 77 | include $(BUILD_HOST_EXECUTABLE) |
Ian Rogers | a929ded | 2014-06-25 21:32:30 -0700 | [diff] [blame] | 78 | # Create symlink for the primary version target. |
Ying Wang | 754a445 | 2015-07-21 12:05:30 -0700 | [diff] [blame] | 79 | ifeq ($(LOCAL_MULTILIB),both) |
Ian Rogers | a929ded | 2014-06-25 21:32:30 -0700 | [diff] [blame] | 80 | include $(BUILD_SYSTEM)/executable_prefer_symlink.mk |
| 81 | |
Brian Carlstrom | 906c27d | 2014-06-29 15:03:29 -0700 | [diff] [blame] | 82 | ART_HOST_EXECUTABLES += $(HOST_OUT_EXECUTABLES)/$(LOCAL_MODULE)$(ART_PHONY_TEST_HOST_SUFFIX) |
| 83 | ifdef 2ND_ART_PHONY_TEST_HOST_SUFFIX |
| 84 | ART_HOST_EXECUTABLES += $(HOST_OUT_EXECUTABLES)/$(LOCAL_MODULE)$(2ND_ART_PHONY_TEST_HOST_SUFFIX) |
| 85 | endif |
Ying Wang | 754a445 | 2015-07-21 12:05:30 -0700 | [diff] [blame] | 86 | endif |
| 87 | ART_HOST_EXECUTABLES += $(HOST_OUT_EXECUTABLES)/$(LOCAL_MODULE) |