You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
791 B
16 lines
791 B
4 months ago
|
## AAPT Flags
|
||
|
# aapt doesn't accept multiple --extra-packages flags.
|
||
|
# We have to collapse them into a single --extra-packages flag here.
|
||
|
LOCAL_AAPT_FLAGS := $(strip $(LOCAL_AAPT_FLAGS))
|
||
|
ifdef LOCAL_AAPT_FLAGS
|
||
|
ifeq ($(filter 0 1,$(words $(filter --extra-packages,$(LOCAL_AAPT_FLAGS)))),)
|
||
|
aapt_flags := $(subst --extra-packages$(space),--extra-packages@,$(LOCAL_AAPT_FLAGS))
|
||
|
aapt_flags_extra_packages := $(patsubst --extra-packages@%,%,$(filter --extra-packages@%,$(aapt_flags)))
|
||
|
aapt_flags_extra_packages := $(sort $(subst :,$(space),$(aapt_flags_extra_packages)))
|
||
|
LOCAL_AAPT_FLAGS := $(filter-out --extra-packages@%,$(aapt_flags)) \
|
||
|
--extra-packages $(subst $(space),:,$(aapt_flags_extra_packages))
|
||
|
aapt_flags_extra_packages :=
|
||
|
aapt_flags :=
|
||
|
endif
|
||
|
endif
|