digraph aapt {
    out_package [label="out/default/package.apk"];
    out_fr_package [label="out/fr/package.apk"];
    out_table_aligned [label="out/default/resources-aligned.arsc"];
    out_table_fr_aligned [label="out/fr/resources-aligned.arsc"];
    out_res_layout_main_xml [label="out/res/layout/main.xml"];
    out_res_layout_v21_main_xml [color=red,label="out/res/layout-v21/main.xml"];
    out_res_layout_fr_main_xml [label="out/res/layout-fr/main.xml"];
    out_res_layout_fr_v21_main_xml [color=red,label="out/res/layout-fr-v21/main.xml"];
    out_table [label="out/default/resources.arsc"];
    out_fr_table [label="out/fr/resources.arsc"];
    out_values_table [label="out/values/resources.arsc"];
    out_layout_table [label="out/layout/resources.arsc"];
    out_values_fr_table [label="out/values-fr/resources.arsc"];
    out_layout_fr_table [label="out/layout-fr/resources.arsc"];
    res_values_strings_xml [label="res/values/strings.xml"];
    res_values_attrs_xml [label="res/values/attrs.xml"];
    res_layout_main_xml [label="res/layout/main.xml"];
    res_layout_fr_main_xml [label="res/layout-fr/main.xml"];
    res_values_fr_strings_xml [label="res/values-fr/strings.xml"];

    lib_apk_resources_arsc [label="lib.apk:resources.arsc",color=green];
    lib_apk_res_layout_main_xml [label="lib.apk:res/layout/main.xml",color=green];
    lib_apk_res_drawable_icon_png [label="lib.apk:res/drawable/icon.png",color=green];
    lib_apk_fr_res_layout_main_xml [label="lib.apk:res/layout-fr/main.xml",color=green];
    lib_apk_fr_res_drawable_icon_png [label="lib.apk:res/drawable-fr/icon.png",color=green];
    out_res_layout_lib_main_xml [label="out/res/layout/lib-main.xml"];

    out_package -> package_default;
    out_fr_package -> package_fr;

    package_default [shape=box,label="Assemble",color=blue];
    package_default -> out_table_aligned;
    package_default -> out_res_layout_main_xml;
    package_default -> out_res_layout_v21_main_xml [color=red];
    package_default -> out_res_layout_lib_main_xml;

    package_fr [shape=box,label="Assemble",color=blue];
    package_fr -> out_table_fr_aligned;
    package_fr -> out_res_layout_fr_main_xml;
    package_fr -> out_res_layout_fr_v21_main_xml [color=red];

    out_table_aligned -> align_tables;
    out_table_fr_aligned -> align_tables;

    align_tables [shape=box,label="Align",color=blue];
    align_tables -> out_table;
    align_tables -> out_fr_table;

    out_table -> link_tables;

    link_tables [shape=box,label="Link",color=blue];
    link_tables -> out_values_table;
    link_tables -> out_layout_table;
    link_tables -> lib_apk_resources_arsc;

    out_values_table -> compile_values;

    compile_values [shape=box,label="Collect",color=blue];
    compile_values -> res_values_strings_xml;
    compile_values -> res_values_attrs_xml;

    out_layout_table -> collect_xml;

    collect_xml [shape=box,label="Collect",color=blue];
    collect_xml -> res_layout_main_xml;

    out_fr_table -> link_fr_tables;

    link_fr_tables [shape=box,label="Link",color=blue];
    link_fr_tables -> out_values_fr_table;
    link_fr_tables -> out_layout_fr_table;
    link_fr_tables -> lib_apk_resources_arsc;

    out_values_fr_table -> compile_values_fr;

    compile_values_fr [shape=box,label="Collect",color=blue];
    compile_values_fr -> res_values_fr_strings_xml;

    out_layout_fr_table -> collect_xml_fr;

    collect_xml_fr [shape=box,label="Collect",color=blue];
    collect_xml_fr -> res_layout_fr_main_xml;

    compile_res_layout_main_xml [shape=box,label="Compile",color=blue];

    out_res_layout_main_xml -> compile_res_layout_main_xml;

    out_res_layout_v21_main_xml -> compile_res_layout_main_xml [color=red];

    compile_res_layout_main_xml -> res_layout_main_xml;
    compile_res_layout_main_xml -> out_table_aligned;

    compile_res_layout_fr_main_xml [shape=box,label="Compile",color=blue];

    out_res_layout_fr_main_xml -> compile_res_layout_fr_main_xml;

    out_res_layout_fr_v21_main_xml -> compile_res_layout_fr_main_xml [color=red];

    compile_res_layout_fr_main_xml -> res_layout_fr_main_xml;
    compile_res_layout_fr_main_xml -> out_table_fr_aligned;

    out_res_layout_lib_main_xml -> compile_res_layout_lib_main_xml;

    compile_res_layout_lib_main_xml [shape=box,label="Compile",color=blue];
    compile_res_layout_lib_main_xml -> out_table_aligned;
    compile_res_layout_lib_main_xml -> lib_apk_res_layout_main_xml;
}