Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c94b7551 authored by Aurimas Liutikas's avatar Aurimas Liutikas
Browse files

Add basic details on aapt2 development.

Writing down notes for getting started on aapt2.

Test: None
Change-Id: I15c2518bf0ba5c455b83277d24ed683bfb9e446c
parent 08b171d0
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
# AAPT2 development

## Building
All build targets can be found in `Android.bp` file. The main ones are `make -j aapt2` and `make -j aapt2_tests`

`make -j aapt2` will create an aapt2 executable in `out/host/linux-x86/bin/aapt2` (on Linux). This `aapt2` executable will then be used for all the apps in the platform.

Static version of the tool (without shared libraries) can be built with `make -j static_sdk_tools dist DIST_DIR=$OUTPUT_DIRECTORY BUILD_HOST_static=1`. Note, in addition to aapt2 this command will also output other statically built tools to the `$OUTPUT_DIRECTORY`.

## Running tests
Build `make -j aapt2_tests` and then (on Linux) execute `out/host/linux-x86/nativetest64/aapt2_tests/aapt2_tests`
 No newline at end of file