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
17LOCAL_PATH := $(call my-dir)
18
19google_benchmark_c_flags := \
20  -no-integrated-as \
21  -DBENCHMARK_ANDROID \
22  -DHAVE_POSIX_REGEX \
23
24google_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
39include $(CLEAR_VARS)
40LOCAL_MODULE := libgoogle-benchmark
41LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
42LOCAL_CFLAGS := $(google_benchmark_c_flags)
43LOCAL_CPP_EXTENSION := .cc
44LOCAL_SRC_FILES := $(google_benchmark_src_files)
45LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
46include $(BUILD_STATIC_LIBRARY)
47
48include $(CLEAR_VARS)
49LOCAL_MODULE := libgoogle-benchmark
50LOCAL_MODULE_HOST_OS := linux
51LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
52LOCAL_CFLAGS := $(google_benchmark_c_flags)
53LOCAL_CPP_EXTENSION := .cc
54LOCAL_SRC_FILES := $(google_benchmark_src_files)
55LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
56include $(BUILD_HOST_STATIC_LIBRARY)
57