aboutsummaryrefslogtreecommitdiffstats
path: root/java/resources.go
Commit message (Collapse)AuthorAgeFilesLines
* Use `Path` instead of string for file pathsDan Willemsen2015-12-091-8/+7
| | | | | | | | | | | | This centralizes verification and common operations, like converting the path to a source file to the path for a built object. It also embeds the configuration knowledge into the path, so that we can remove "${SrcDir}/path" from the ninja file. When SrcDir is '.', that leads to paths like './path' instead of just 'path' like make is doing, causing differences in compiled binaries. Change-Id: Ib4e8910a6e867ce1b7b420d927c04f1142a7589e
* Fix java resource glob file list locationColin Cross2015-08-241-1/+2
| | | | | | | | | | | | | The source path was being appended to the module out directory to create the file list file, which was resulting in .. in the source path moving the file list file up the directory tree. Use SrcDirRelPath to convert the globbed resource directories to be relatiave to $srcDir before appending them. Also do the same fix to generated aidl, logtags, yacc, and lex files. Change-Id: I2e636bd30abf03bc1d80a897951a9812cc3e09ef
* Fix glob filename overlapColin Cross2015-07-231-1/+1
| | | | | | | | | If resources and java files were compiled from the same directory, ctx.Glob could try to create a glob file that had the same name as the directory containing another glob file. Namespace each call to ctx.Glob so they never conflict. Change-Id: I4db73af568a2ff2e708e9db64798073b1ed2ff61
* Add exclude_* and remove arch_subtract / "-file"Dan Willemsen2015-07-011-6/+13
| | | | | | | | To align with the current make build system, add exclude_srcs and exclude_java_resource_dirs. These replace the functionality of arch_subtract and glob exclusions that use "-file" to exclude a file. Change-Id: I91c23d5e3c9409f2d9f7921f950153a03a68ad61
* Allow common.Glob to be called by singletonsColin Cross2015-06-171-1/+1
| | | | | | | | | Make common.Glob take an interface that is the intersection of blueprint.ModuleContext and blueprint.SingletonContext used by Glob and GlobRule, allowing it to be called on either. Also move ExpandSources and Glob into AndroidModuleContext. Change-Id: I8d1a3160c5dd201033afdb37210e82d8065b137d
* Fix java resource globbingColin Cross2015-04-291-15/+32
| | | | | | | | | | Handle java resource globbing in two passes, the first on the list of resource dirs to produce a list of directories, and the second to glob for files inside those directories using **/*. Fixes incorrect jarSpec dir errors when the resource directories list contains globs. Change-Id: Icea5d8178336eb7de4ad91a9acba4822423d9f60
* Support java libraries, binaries, and prebuiltsColin Cross2015-04-031-0/+45
Add support for compiling java libraries (.jar files with or without .dex), java binaries (.jar files with a wrapper script to run them), and java prebuilts (for the SDK .jars) Change-Id: Id624da64c92cf20c6d9577c6bb06e5b212af0d1b