]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blob - benchmarks/Android.mk
am 081db840: Allow overlap in resolv uid => DNS iface mapping
[android-sdk/platform-bionic.git] / benchmarks / Android.mk
1 #
2 # Copyright (C) 2013 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 #
17 ifneq ($(BUILD_TINY_ANDROID), true)
19 LOCAL_PATH := $(call my-dir)
21 # -----------------------------------------------------------------------------
22 # Benchmarks.
23 # -----------------------------------------------------------------------------
25 benchmark_c_flags = \
26     -O2 \
27     -Wall -Wextra \
28     -Werror \
29     -fno-builtin \
30     -std=gnu++11 \
32 benchmark_src_files = \
33     benchmark_main.cpp \
34     math_benchmark.cpp \
35     property_benchmark.cpp \
36     string_benchmark.cpp \
37     time_benchmark.cpp \
39 # Build benchmarks for the device (with bionic's .so). Run with:
40 #   adb shell bionic-benchmarks
41 include $(CLEAR_VARS)
42 LOCAL_MODULE := bionic-benchmarks
43 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
44 LOCAL_CFLAGS += $(benchmark_c_flags)
45 LOCAL_C_INCLUDES += external/stlport/stlport bionic/ bionic/libstdc++/include
46 LOCAL_SHARED_LIBRARIES += libstlport
47 LOCAL_SRC_FILES := $(benchmark_src_files)
48 include $(BUILD_EXECUTABLE)
50 endif # !BUILD_TINY_ANDROID