Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2016 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 | |
| 18 | LOCAL_PATH := $(call my-dir) |
| 19 | |
| 20 | libprofile_rt_srcs := \ |
| 21 | GCDAProfiling.c \ |
| 22 | InstrProfiling.c \ |
| 23 | InstrProfilingBuffer.c \ |
| 24 | InstrProfilingFile.c \ |
| 25 | InstrProfilingPlatformDarwin.c \ |
| 26 | InstrProfilingPlatformOther.c \ |
| 27 | InstrProfilingRuntime.cc \ |
| 28 | InstrProfilingUtil.c \ |
| 29 | |
| 30 | libprofile_rt_cflags := -Werror -Wall |
| 31 | |
| 32 | #===================================================================== |
| 33 | # Host Static Library: libprofile_rt |
| 34 | #===================================================================== |
| 35 | |
| 36 | include $(CLEAR_VARS) |
| 37 | |
| 38 | LOCAL_MODULE = libprofile_rt |
| 39 | LOCAL_CFLAGS := $(libcompiler_rt_cflags) |
| 40 | LOCAL_SRC_FILES := $(libprofile_rt_srcs) |
| 41 | LOCAL_CPP_EXTENSION := .cc |
| 42 | LOCAL_SANITIZE := never |
| 43 | LOCAL_MULTILIB := both |
| 44 | LOCAL_CXX_STL := none |
| 45 | |
| 46 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 47 | |
| 48 | #===================================================================== |
| 49 | # Device Static Library: libprofile_rt |
| 50 | #===================================================================== |
| 51 | |
| 52 | include $(CLEAR_VARS) |
| 53 | |
| 54 | LOCAL_MODULE = libprofile_rt |
| 55 | LOCAL_CFLAGS := $(libcompiler_rt_cflags) |
| 56 | LOCAL_CLANG := true |
| 57 | LOCAL_SRC_FILES := $(libprofile_rt_srcs) |
| 58 | LOCAL_CPP_EXTENSION := .cc |
| 59 | LOCAL_SANITIZE := never |
| 60 | LOCAL_MULTILIB := both |
| 61 | LOCAL_NDK_STL_VARIANT := none |
| 62 | LOCAL_SDK_VERSION := 21 |
| 63 | |
| 64 | include $(BUILD_STATIC_LIBRARY) |