Home | History | Annotate | Download | only in src
      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 
     17 LOCAL_PATH := $(call my-dir)
     18 
     19 astl_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     sstream.cpp \
     27     stdio_filebuf.cpp \
     28     streambuf.cpp \
     29     string.cpp
     30 
     31 # Target build
     32 include $(CLEAR_VARS)
     33 
     34 LOCAL_SRC_FILES := $(astl_common_src_files)
     35 LOCAL_C_INCLUDES := external/astl/include
     36 LOCAL_CFLAGS += -I bionic/libstdc++/include -I external/astl/include
     37 LOCAL_SYSTEM_SHARED_LIBRARIES := libc libstdc++ libutils
     38 LOCAL_MODULE:= libastl
     39 
     40 include $(BUILD_STATIC_LIBRARY)
     41 
     42 # On linux we build a host version of the lib to run under valgrind.
     43 ifeq ($(HOST_OS),linux)
     44 include $(CLEAR_VARS)
     45 
     46 LOCAL_SRC_FILES := $(astl_common_src_files)
     47 LOCAL_C_INCLUDES := external/astl/include
     48 LOCAL_CFLAGS += -I bionic/libstdc++/include -I external/astl/include
     49 LOCAL_SYSTEM_SHARED_LIBRARIES := libc libstdc++ libutils
     50 LOCAL_MODULE:= libastl_host
     51 
     52 include $(BUILD_HOST_STATIC_LIBRARY)
     53 endif
     54 
     55