The Android Open Source Project | 190995d | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
Rom Lemarchand | 72722b2 | 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 |
Yusuke Sato | 1c4cf31 | 2015-08-19 23:58:45 -0700 | [diff] [blame] | 14 | LOCAL_CFLAGS := -Werror -std=gnu99 |
Rom Lemarchand | 72722b2 | 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 |
Yusuke Sato | 1c4cf31 | 2015-08-19 23:58:45 -0700 | [diff] [blame] | 26 | LOCAL_CFLAGS := -Werror -std=gnu99 |
Rom Lemarchand | 72722b2 | 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 | 190995d | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 33 | LOCAL_SRC_FILES:= logwrapper.c |
| 34 | LOCAL_MODULE := logwrapper |
Ken Sumrall | 54ec944 | 2013-04-03 13:45:10 -0700 | [diff] [blame] | 35 | LOCAL_STATIC_LIBRARIES := liblog liblogwrap libcutils |
Yusuke Sato | 1c4cf31 | 2015-08-19 23:58:45 -0700 | [diff] [blame] | 36 | LOCAL_CFLAGS := -Werror -std=gnu99 |
The Android Open Source Project | 190995d | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 37 | include $(BUILD_EXECUTABLE) |