Christopher Ferris | 91f4410 | 2013-05-20 17:24:15 -0700 | [diff] [blame] | 1 | # Copyright (C) 2013 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
| 17 | src_files := \ |
Dan Albert | dc847e6 | 2014-11-15 18:50:10 -0800 | [diff] [blame] | 18 | memtrack.cpp |
Christopher Ferris | 91f4410 | 2013-05-20 17:24:15 -0700 | [diff] [blame] | 19 | |
Christopher Ferris | 91f4410 | 2013-05-20 17:24:15 -0700 | [diff] [blame] | 20 | include $(CLEAR_VARS) |
Dan Albert | caacf4e | 2014-09-12 10:46:30 -0700 | [diff] [blame] | 21 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Christopher Ferris | 91f4410 | 2013-05-20 17:24:15 -0700 | [diff] [blame] | 22 | |
| 23 | LOCAL_SRC_FILES := $(src_files) |
| 24 | |
| 25 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
Christopher Ferris | 91f4410 | 2013-05-20 17:24:15 -0700 | [diff] [blame] | 26 | LOCAL_MODULE := memtrack_share |
| 27 | |
| 28 | LOCAL_C_INCLUDES += $(includes) |
| 29 | LOCAL_SHARED_LIBRARIES := \ |
Dan Albert | dc847e6 | 2014-11-15 18:50:10 -0800 | [diff] [blame] | 30 | liblog \ |
Christopher Ferris | 91f4410 | 2013-05-20 17:24:15 -0700 | [diff] [blame] | 31 | |
| 32 | include $(BUILD_EXECUTABLE) |
| 33 | |
| 34 | include $(CLEAR_VARS) |
Dan Albert | caacf4e | 2014-09-12 10:46:30 -0700 | [diff] [blame] | 35 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Christopher Ferris | 91f4410 | 2013-05-20 17:24:15 -0700 | [diff] [blame] | 36 | |
| 37 | LOCAL_SRC_FILES := $(src_files) |
| 38 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
Christopher Ferris | 91f4410 | 2013-05-20 17:24:15 -0700 | [diff] [blame] | 39 | LOCAL_MODULE := memtrack |
| 40 | |
| 41 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Christopher Ferris | 91f4410 | 2013-05-20 17:24:15 -0700 | [diff] [blame] | 42 | LOCAL_STATIC_LIBRARIES := \ |
Dan Albert | dc847e6 | 2014-11-15 18:50:10 -0800 | [diff] [blame] | 43 | libc \ |
| 44 | liblog \ |
| 45 | libc++abi \ |
| 46 | libdl \ |
Christopher Ferris | 91f4410 | 2013-05-20 17:24:15 -0700 | [diff] [blame] | 47 | |
Dan Albert | dc847e6 | 2014-11-15 18:50:10 -0800 | [diff] [blame] | 48 | LOCAL_CXX_STL := libc++_static |
Stephen Hines | 56cd394 | 2014-12-02 10:41:37 -0800 | [diff] [blame^] | 49 | |
| 50 | # Bug: 18389563 - Today, libc++_static and libgcc have duplicate sybols for |
| 51 | # __aeabi_uidiv(). Allowing multiple definitions lets the build proceed, but |
| 52 | # updating compiler-rt to be a superset of libgcc will allow this WAR to be |
| 53 | # removed. |
| 54 | LOCAL_LDFLAGS := -Wl,-z,muldefs |
| 55 | |
Christopher Ferris | 91f4410 | 2013-05-20 17:24:15 -0700 | [diff] [blame] | 56 | include $(BUILD_EXECUTABLE) |