Move font xml files to "standard" directory

This will allow to load different fonts for standard and native versions
of layoutlib.

Exempt-From-Owner-Approval: layoutlib branch
Bug: 143073883
Test: N/A
Change-Id: If44fc587eac2c3543cdff3760e64df003f12bdf2
(cherry picked from commit a9c9c7410491c42733ab565ca75a8708d4a9b064)
This commit is contained in:
Jerome Gaillard 2019-10-28 15:19:51 +00:00
parent 4fc1d0899c
commit 074fef98d4

View file

@ -19,9 +19,9 @@ SDK_FONT_TEMP := $(call intermediates-dir-for,PACKAGING,sdk-fonts,HOST,COMMON)
# The font configuration files - system_fonts.xml, fallback_fonts.xml etc.
sdk_font_config := $(sort $(wildcard frameworks/base/data/fonts/*.xml))
sdk_font_config := $(addprefix $(SDK_FONT_TEMP)/, $(notdir $(sdk_font_config)))
sdk_font_config := $(addprefix $(SDK_FONT_TEMP)/standard/, $(notdir $(sdk_font_config)))
$(sdk_font_config): $(SDK_FONT_TEMP)/%.xml: \
$(sdk_font_config): $(SDK_FONT_TEMP)/standard/%.xml: \
frameworks/base/data/fonts/%.xml
$(hide) mkdir -p $(dir $@)
$(hide) cp -vf $< $@