The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | ########################################################### |
Dan Bornstein | 6bffc91 | 2009-10-15 13:01:36 -0700 | [diff] [blame] | 2 | ## Standard rules for building a static library for the host. |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 3 | ## |
| 4 | ## Additional inputs from base_rules.make: |
| 5 | ## None. |
| 6 | ## |
| 7 | ## LOCAL_MODULE_SUFFIX will be set for you. |
| 8 | ########################################################### |
| 9 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 10 | ifeq ($(strip $(LOCAL_MODULE_CLASS)),) |
| 11 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 12 | endif |
| 13 | ifeq ($(strip $(LOCAL_MODULE_SUFFIX)),) |
| 14 | LOCAL_MODULE_SUFFIX := .a |
| 15 | endif |
| 16 | LOCAL_UNINSTALLABLE_MODULE := true |
| 17 | |
Dan Bornstein | 6bffc91 | 2009-10-15 13:01:36 -0700 | [diff] [blame] | 18 | LOCAL_IS_HOST_MODULE := true |
| 19 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 20 | include $(BUILD_SYSTEM)/binary.mk |
| 21 | |
Dan Bornstein | 6bffc91 | 2009-10-15 13:01:36 -0700 | [diff] [blame] | 22 | $(LOCAL_BUILT_MODULE): $(built_whole_libraries) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 23 | $(LOCAL_BUILT_MODULE): $(all_objects) |
| 24 | $(transform-host-o-to-static-lib) |