The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
Rom Lemarchand | 113bd47 | 2013-01-10 15:21:18 -0800 | [diff] [blame] | 4 | |
| 5 | # ======================================================== |
| 6 | # Static library |
| 7 | # ======================================================== |
| 8 | include $(CLEAR_VARS) |
| 9 | LOCAL_MODULE := liblogwrap |
| 10 | LOCAL_SRC_FILES := logwrap.c |
| 11 | LOCAL_SHARED_LIBRARIES := libcutils liblog |
| 12 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 13 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
Mark Salyzyn | 5254c4a | 2014-04-30 09:04:25 -0700 | [diff] [blame] | 14 | LOCAL_CFLAGS := -Werror |
Rom Lemarchand | 113bd47 | 2013-01-10 15:21:18 -0800 | [diff] [blame] | 15 | include $(BUILD_STATIC_LIBRARY) |
| 16 | |
| 17 | # ======================================================== |
| 18 | # Shared library |
| 19 | # ======================================================== |
| 20 | include $(CLEAR_VARS) |
| 21 | LOCAL_MODULE := liblogwrap |
| 22 | LOCAL_SHARED_LIBRARIES := libcutils liblog |
| 23 | LOCAL_WHOLE_STATIC_LIBRARIES := liblogwrap |
| 24 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 25 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
Mark Salyzyn | 5254c4a | 2014-04-30 09:04:25 -0700 | [diff] [blame] | 26 | LOCAL_CFLAGS := -Werror |
Rom Lemarchand | 113bd47 | 2013-01-10 15:21:18 -0800 | [diff] [blame] | 27 | include $(BUILD_SHARED_LIBRARY) |
| 28 | |
| 29 | # ======================================================== |
| 30 | # Executable |
| 31 | # ======================================================== |
| 32 | include $(CLEAR_VARS) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 33 | LOCAL_SRC_FILES:= logwrapper.c |
| 34 | LOCAL_MODULE := logwrapper |
Ken Sumrall | 96e11b5 | 2013-04-03 13:45:10 -0700 | [diff] [blame] | 35 | LOCAL_STATIC_LIBRARIES := liblog liblogwrap libcutils |
Mark Salyzyn | 5254c4a | 2014-04-30 09:04:25 -0700 | [diff] [blame] | 36 | LOCAL_CFLAGS := -Werror |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 37 | include $(BUILD_EXECUTABLE) |