commit | dc7eb39f966ab890d274363c76929775ed03b6ac | [log] [tgz] |
---|---|---|
author | Alex Light <allight@google.com> | Thu Feb 15 11:50:19 2018 -0800 |
committer | Alex Light <allight@google.com> | Thu Feb 15 14:19:03 2018 -0800 |
tree | 8352354c14ea17c81057431b43a4837ae0e6a440 | |
parent | 6bd3fd75edafeff690a74183ed06f4e604cfc574 [diff] |
Refactor slicer to not have top-level header exports It was somewhat difficult to use slicer in other projects due to it's headers potentially shadowing/being shadowed by local headers and it redefining several common macros with non-standard implementations. In order to fix this issue we moved the slicer headers to a sub directory and renamed all the macros to have a SLICER_ prefix. % cd slicer/ % mkdir -P export/slicer % git mv *.h export/slicer % # Update all includes. % for i in `find . -type f -maxdepth 1`; do sed -i "s/include \"/include \"slicer\//" $i; done % # Update all macros to prevent collisions. % for i in `find . -type f`; do sed -E -i "s/[^_]CHECK/SLICER_CHECK/" $i; sed -i "s/EXTRA/SLICER_EXTRA/" $i; sed -i "s/FATAL/SLICER_FATAL/" $i; sed -i "s/WEAK_CHECK/SLICER_WEAK_CHECK/" $i; sed -i "s/IR_TYPE/SLICER_IR_TYPE/" $i; sed -i "s/IR_INDEXED_TYPE/SLICER_IR_INDEXED_TYPE/" $i; sed -i "s/SCOPE_EXIT/SLICER_SCOPE_EXIT/g" $i; done Bug: 65422458 Test: python ./dexter/dexter_tests.py -root ./testdata Test: make checkbuild Change-Id: I7d9b1035316feb1719591b79e3273ddc231ccbc4
This is the home of the .dex manipulation library (slicer) and command line tool (dexter).
Both the command line tool and the library can be built for host and device targets.