forked from openkylin/platform_build
Merge "Don't pass --legacy by default to aapt2 compile"
This commit is contained in:
commit
1aa3ff6fea
|
@ -1883,20 +1883,20 @@ endef
|
|||
###########################################################
|
||||
define aapt2-compile-one-resource-file
|
||||
@mkdir -p $(dir $@)
|
||||
$(hide) $(AAPT2) compile -o $(dir $@) $(PRIVATE_AAPT2_CFLAGS) --legacy $<
|
||||
$(hide) $(AAPT2) compile -o $(dir $@) $(PRIVATE_AAPT2_CFLAGS) $<
|
||||
endef
|
||||
|
||||
define aapt2-compile-resource-dirs
|
||||
@mkdir -p $(dir $@)
|
||||
$(hide) $(AAPT2) compile -o $@ $(addprefix --dir ,$(PRIVATE_SOURCE_RES_DIRS)) \
|
||||
$(PRIVATE_AAPT2_CFLAGS) --legacy
|
||||
$(PRIVATE_AAPT2_CFLAGS)
|
||||
endef
|
||||
|
||||
# TODO(b/74574557): use aapt2 compile --zip if it gets implemented
|
||||
define aapt2-compile-resource-zips
|
||||
@mkdir -p $(dir $@)
|
||||
$(ZIPSYNC) -d $@.contents -l $@.list $(PRIVATE_SOURCE_RES_ZIPS)
|
||||
$(hide) $(AAPT2) compile -o $@ --dir $@.contents $(PRIVATE_AAPT2_CFLAGS) --legacy
|
||||
$(hide) $(AAPT2) compile -o $@ --dir $@.contents $(PRIVATE_AAPT2_CFLAGS)
|
||||
endef
|
||||
|
||||
# Set up rule to compile one resource file with aapt2.
|
||||
|
|
Loading…
Reference in New Issue