ANDROID_PACKAGE_NAME = BRLTTY_App
ANDROID_PACKAGE_PATH = org.a11y.brltty.android
include $(SRC_TOP)Android/common.mk

ANDROID_TABLES_DIRECTORY = $(ANDROID_ASSETS_DIRECTORY)/tables
ANDROID_DRIVERS_DIRECTORY = $(ANDROID_ASSETS_DIRECTORY)/drivers

$(ANDROID_PACKAGE_FILE): core tables $(BRAILLE_DRIVERS) $(SPEECH_DRIVERS) $(SCREEN_DRIVERS)

core:
	cd ../Core && $(MAKE)

tables-directory:
	$(INSTALL_DIRECTORY) $(ANDROID_TABLES_DIRECTORY)

tables: tables-directory
	$(INSTALL_DATA) $(SRC_TOP)$(TBL_DIR)/*.[tack]t[bi] $(ANDROID_TABLES_DIRECTORY)

drivers-directory:
	$(INSTALL_DIRECTORY) $(ANDROID_DRIVERS_DIRECTORY)

braille-drivers: drivers-directory
	$(INSTALL_DATA) $(BLD_TOP)$(DRV_DIR)/$(MOD_NAME)b?*.$(MOD_EXT) $(ANDROID_DRIVERS_DIRECTORY)

speech-drivers: drivers-directory
	$(INSTALL_DATA) $(BLD_TOP)$(DRV_DIR)/$(MOD_NAME)s?*.$(MOD_EXT) $(ANDROID_DRIVERS_DIRECTORY)

screen-drivers: drivers-directory
	$(INSTALL_DATA) $(BLD_TOP)$(DRV_DIR)/$(MOD_NAME)x?*.$(MOD_EXT) $(ANDROID_DRIVERS_DIRECTORY)

