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 18LOCAL_PATH := $(call my-dir) 19 20libprofile_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 30libprofile_rt_cflags := -Werror -Wall 31 32#===================================================================== 33# Host Static Library: libprofile_rt 34#===================================================================== 35 36include $(CLEAR_VARS) 37 38LOCAL_MODULE = libprofile_rt 39LOCAL_CFLAGS := $(libcompiler_rt_cflags) 40LOCAL_SRC_FILES := $(libprofile_rt_srcs) 41LOCAL_CPP_EXTENSION := .cc 42LOCAL_SANITIZE := never 43LOCAL_MULTILIB := both 44LOCAL_CXX_STL := none 45 46include $(BUILD_HOST_STATIC_LIBRARY) 47 48#===================================================================== 49# Device Static Library: libprofile_rt 50#===================================================================== 51 52include $(CLEAR_VARS) 53 54LOCAL_MODULE = libprofile_rt 55LOCAL_CFLAGS := $(libcompiler_rt_cflags) 56LOCAL_CLANG := true 57LOCAL_SRC_FILES := $(libprofile_rt_srcs) 58LOCAL_CPP_EXTENSION := .cc 59LOCAL_SANITIZE := never 60LOCAL_MULTILIB := both 61LOCAL_NDK_STL_VARIANT := none 62LOCAL_SDK_VERSION := 21 63 64include $(BUILD_STATIC_LIBRARY) 65