The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | ########################################################### |
| 2 | ## Copy headers to the install tree |
| 3 | ########################################################### |
| 4 | ifneq ($(strip $(LOCAL_IS_HOST_MODULE)),) |
| 5 | my_prefix := HOST_ |
| 6 | else |
| 7 | my_prefix := TARGET_ |
| 8 | endif |
| 9 | |
| 10 | # Create a rule to copy each header, and make the |
| 11 | # all_copied_headers phony target depend on each |
| 12 | # destination header. copy-one-header defines the |
| 13 | # actual rule. |
| 14 | # |
| 15 | $(foreach header,$(LOCAL_COPY_HEADERS), \ |
| 16 | $(eval _chFrom := $(LOCAL_PATH)/$(header)) \ |
| 17 | $(eval _chTo := \ |
Colin Cross | a6c4ebd | 2013-10-22 12:24:21 -0700 | [diff] [blame] | 18 | $(if $(LOCAL_COPY_HEADERS_TO),\ |
| 19 | $($(my_prefix)OUT_HEADERS)/$(LOCAL_COPY_HEADERS_TO)/$(notdir $(header)),\ |
| 20 | $($(my_prefix)OUT_HEADERS)/$(notdir $(header)))) \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 21 | $(eval $(call copy-one-header,$(_chFrom),$(_chTo))) \ |
| 22 | $(eval all_copied_headers: $(_chTo)) \ |
| 23 | ) |
| 24 | _chFrom := |
| 25 | _chTo := |