Полный скрипт сборки находится YOUR_SDK_FOLDER / platform / SDKVERSION / templates / android_rules.xml
Вы изменяете свой build.xml с копией этого файла и настраиваете его. Не уверен, что получится так, как вы хотите - но это начало
<!-- Execute the Android Setup task that will setup some properties specific to the target,
and import the rules files.
To customize the rules, copy/paste them below the task, and disable import by setting
the import attribute to false:
<setup import="false" />
This will ensure that the properties are setup correctly but that your customized
targets are used.
-->