Home | History | Annotate | Download | only in tinyxml
      1 # Copyright 2005 The Android Open Source Project
      2 #
      3 # Android.mk for TinyXml.
      4 #
      5 # Add -DTIXML_USE_STL to CFLAGS to use STL.
      6 #
      7 
      8 commonSources:= \
      9 	tinyxml.cpp \
     10 	tinyxmlparser.cpp \
     11 	tinyxmlerror.cpp \
     12 	tinystr.cpp
     13 
     14 commonFlags := \
     15 	-Wno-undefined-bool-conversion \
     16 	-Wno-missing-braces \
     17         -Wno-logical-op-parentheses \
     18         -Werror
     19 
     20 # For the host
     21 # =====================================================
     22 LOCAL_PATH:= $(call my-dir)
     23 include $(CLEAR_VARS)
     24 
     25 LOCAL_SRC_FILES:= \
     26 	$(commonSources)
     27 
     28 LOCAL_MODULE:= libtinyxml
     29 
     30 LOCAL_CFLAGS+= $(TOOL_CFLAGS) $(commonFlags)
     31 LOCAL_LDFLAGS:= $(TOOL_LDFLAGS) -lstdc++ -lc
     32 
     33 LOCAL_MULTILIB := both
     34 
     35 include $(BUILD_HOST_STATIC_LIBRARY)
     36 
     37 
     38 # For the device (static)
     39 # =====================================================
     40 include $(CLEAR_VARS)
     41 
     42 LOCAL_SRC_FILES:= \
     43 	$(commonSources)
     44 
     45 LOCAL_MODULE:= libtinyxml
     46 
     47 LOCAL_CFLAGS+= $(commonFlags)
     48 
     49 include $(BUILD_STATIC_LIBRARY)
     50 
     51 
     52 # For the device
     53 # =====================================================
     54 include $(CLEAR_VARS)
     55 
     56 LOCAL_SRC_FILES:= \
     57 	$(commonSources)
     58 
     59 LOCAL_MODULE:= libtinyxml
     60 
     61 LOCAL_VENDOR_MODULE := true
     62 
     63 LOCAL_CFLAGS+= $(commonFlags)
     64 
     65 LOCAL_SHARED_LIBRARIES := \
     66     libc \
     67     libstdc++
     68 
     69 include $(BUILD_SHARED_LIBRARY)
     70 
     71 
     72