aboutsummaryrefslogtreecommitdiffstats
path: root/androidmk/parser
Commit message (Collapse)AuthorAgeFilesLines
* Do not "escape" newline if comment ends with ESC character.Sasha Smundak2019-03-061-3/+5
| | | | | | Fixes: 127521510 Test: manual Change-Id: I88a8eb2ca94b8aa06e2682d2c14f9e74f5ada286
* Handle multi dir all-*-files-under function calls.Jaewoong Jung2019-01-091-11/+14
| | | | | | | | This change fixes a bug where androidmk assumes all-*-files-under function only takes one directory parameter. Test: androidmk_text.go, manual execution Change-Id: Ib1614a2ddde7ea1120c1c37126231988f4862165
* Add a dependency fixer for proto depsDan Willemsen2018-05-075-7/+224
| | | | | | | | | | | | | | | | | | | | | protoc dependency files, at least for C++ outputs, uses the form of: a/b.c \ a/b.h: <dep1> <dep2>... Ninja will fail the command when it parses a dep file and there's more than one output file (even though it doesn't care what the output file name is). So this tool will parse the original file, and output a version with only a single output file. Bug: 67329638 Test: NINJA_ARGS="-t deps ...pb.c" m Test: NINJA_ARGS="-t deps ...srcjar" m Test: NINJA_ARGS="-t deps ...srcszip" m Test: Run dep_fixer across all of taimen's dep files, no failures. Test: Run dep_fixer against the processed files, no changes. Test: Run androidmk across all of our Android.mk files, inspect the diffs Change-Id: I4263b7d5faea37285afa6b24dedf5964aa7d19dc
* Add license headers to all go and shell filesColin Cross2017-11-175-0/+70
| | | | | Test: none Change-Id: I75c443e05f2b1e17fcb6823182717d2e6f5df7c4
* Fix crash when running androidmk against frameworks/base/Android.mkJeff Gaston2017-08-241-1/+6
| | | | | | | | | | | The was a variable on the right-hand side of the assignment to LOCAL_MODULE_CLASS , which wants a non-nil scope Bug: 64266643 Test: androidmk frameworks/base/Android.mk Test: androidmk prebuilts/misc/common/ddmlib/Android.mk Change-Id: I52d33f5e5cb1179f84d4df149ef804268d67f7fb
* androidmk no longer escaping escaped quotes in CFLAGSJeff Gaston2017-08-151-0/+11
| | | | | | | Bug: 37547491 Test: m -j Change-Id: I2f406be477f3990bf109778eb9adc9c33db2f2ad
* Add spaces around := when dumping assignmentsColin Cross2016-05-301-1/+1
| | | | | | Add spaces around := when dumping assignments that failed translation. Change-Id: I92cea0616a9dacd74a63b48f4626340b22542fbf
* Improve makefile parserColin Cross2016-05-265-247/+214
| | | | | | | | | | | | Improve the androidmk makefile parser based on ideas from go/ast and friends: - Use type switching instead of the As* mess - Don't store endPos for every node, compute it based on the last known position in the node plus the length of the last token - Store positions as only the offset into the file, and then unpack them into Line/Column scanner.Position objects later Change-Id: I87eb6661859951e6c2ea5a85db6229fa5561d615
* Fix androidmk make_strings_test to use new APIDan Willemsen2015-06-241-26/+27
| | | | Change-Id: I23eb2df0603dbf76ff829c696cd09fe723efa9d9
* androidmk: support translating all-java-files-underColin Cross2015-04-031-3/+10
| | | | Change-Id: I4c343f6d8d23d42dddc256ff022016b595bb3841
* Add soong_build primary builderColin Cross2015-03-135-0/+1129
Initial build logic for building android with soong. It can build a variety of C and C++ files for arm/arm64 and host. Change-Id: I10eb37c2c2a50be6af1bb5fd568c0962b9476bf0