Android.mk revision 808f34a8cab52569bfca26cec6fd96740aa2ea25
1# Copyright (C) 2009 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15# 16 17LOCAL_PATH := $(call my-dir) 18 19astl_common_src_files := \ 20 basic_ios.cpp \ 21 ios_base.cpp \ 22 ios_globals.cpp \ 23 ios_pos_types.cpp \ 24 list.cpp \ 25 ostream.cpp \ 26 stdio_filebuf.cpp \ 27 streambuf.cpp \ 28 string.cpp 29 30# Build the target lib 31include $(CLEAR_VARS) 32 33LOCAL_SRC_FILES := $(astl_common_src_files) 34 35LOCAL_C_INCLUDES := external/astl/include 36 37LOCAL_CFLAGS += -I bionic/libstdc++/include -I external/astl/include 38 39LOCAL_SYSTEM_SHARED_LIBRARIES := libc libstdc++ libutils 40 41LOCAL_MODULE:= libastl 42 43include $(BUILD_STATIC_LIBRARY) 44 45# Define the ASTL_TESTS environment variable to build the host lib 46# needed for testing under valgrind. 47# This is done automatically if you use: runtest astl 48 49ifdef ASTL_TESTS 50 51include $(CLEAR_VARS) 52 53LOCAL_SRC_FILES := $(astl_common_src_files) 54 55LOCAL_C_INCLUDES := external/astl/include 56 57LOCAL_CFLAGS += -I bionic/libstdc++/include -I external/astl/include 58 59LOCAL_SYSTEM_SHARED_LIBRARIES := libc libstdc++ libutils 60 61LOCAL_MODULE:= libastl 62 63include $(BUILD_HOST_STATIC_LIBRARY) 64 65endif #ASTL_TESTS 66