The Android Open Source Project | 562be06 | 2009-03-03 19:30:48 -0800 | [diff] [blame] | 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 | # For the host |
| 15 | # ===================================================== |
| 16 | LOCAL_PATH:= $(call my-dir) |
| 17 | include $(CLEAR_VARS) |
| 18 | |
| 19 | LOCAL_SRC_FILES:= \ |
| 20 | $(commonSources) |
| 21 | |
| 22 | LOCAL_MODULE:= libtinyxml |
| 23 | |
| 24 | LOCAL_CFLAGS+= $(TOOL_CFLAGS) |
| 25 | LOCAL_LDFLAGS:= $(TOOL_LDFLAGS) -lstdc++ -lc |
| 26 | |
Ian Rogers | 2cd2914 | 2014-06-27 16:12:08 -0700 | [diff] [blame] | 27 | LOCAL_MULTILIB := both |
Ian Rogers | 817e380 | 2014-06-05 10:09:57 -0700 | [diff] [blame] | 28 | |
The Android Open Source Project | 562be06 | 2009-03-03 19:30:48 -0800 | [diff] [blame] | 29 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 30 | |
| 31 | |
Dan Albert | 61291ab | 2014-08-20 16:58:42 -0700 | [diff] [blame] | 32 | # For the device (static) |
| 33 | # ===================================================== |
| 34 | include $(CLEAR_VARS) |
| 35 | |
| 36 | LOCAL_SRC_FILES:= \ |
| 37 | $(commonSources) |
| 38 | |
| 39 | LOCAL_MODULE:= libtinyxml |
| 40 | |
| 41 | include $(BUILD_STATIC_LIBRARY) |
| 42 | |
| 43 | |
The Android Open Source Project | 562be06 | 2009-03-03 19:30:48 -0800 | [diff] [blame] | 44 | # For the device |
| 45 | # ===================================================== |
Adam Hampson | 02d5b26 | 2013-01-23 08:54:11 -0800 | [diff] [blame] | 46 | include $(CLEAR_VARS) |
| 47 | |
| 48 | LOCAL_SRC_FILES:= \ |
| 49 | $(commonSources) |
| 50 | |
| 51 | LOCAL_MODULE:= libtinyxml |
| 52 | |
Adam Hampson | 494e448 | 2013-01-29 08:46:46 -0800 | [diff] [blame] | 53 | LOCAL_SHARED_LIBRARIES := \ |
| 54 | libc \ |
| 55 | libstdc++ |
| 56 | |
Adam Hampson | 02d5b26 | 2013-01-23 08:54:11 -0800 | [diff] [blame] | 57 | include $(BUILD_SHARED_LIBRARY) |
The Android Open Source Project | 562be06 | 2009-03-03 19:30:48 -0800 | [diff] [blame] | 58 | |
| 59 | |