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 LOCAL_PATH := $(call my-dir) 18 19 google_benchmark_c_flags := \ 20 -no-integrated-as \ 21 -DBENCHMARK_ANDROID \ 22 -DHAVE_POSIX_REGEX \ 23 24 google_benchmark_src_files := \ 25 src/benchmark.cc \ 26 src/colorprint.cc \ 27 src/commandlineflags.cc \ 28 src/console_reporter.cc \ 29 src/csv_reporter.cc \ 30 src/json_reporter.cc \ 31 src/log.cc \ 32 src/reporter.cc \ 33 src/re_posix.cc \ 34 src/sleep.cc \ 35 src/string_util.cc \ 36 src/sysinfo.cc \ 37 src/walltime.cc \ 38 39 include $(CLEAR_VARS) 40 LOCAL_MODULE := libgoogle-benchmark 41 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 42 LOCAL_CFLAGS := $(google_benchmark_c_flags) 43 LOCAL_CPP_EXTENSION := .cc 44 LOCAL_SRC_FILES := $(google_benchmark_src_files) 45 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 46 include $(BUILD_STATIC_LIBRARY) 47 48 include $(CLEAR_VARS) 49 LOCAL_MODULE := libgoogle-benchmark 50 LOCAL_MODULE_HOST_OS := linux 51 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 52 LOCAL_CFLAGS := $(google_benchmark_c_flags) 53 LOCAL_CPP_EXTENSION := .cc 54 LOCAL_SRC_FILES := $(google_benchmark_src_files) 55 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 56 include $(BUILD_HOST_STATIC_LIBRARY) 57