aboutsummaryrefslogtreecommitdiffstats
path: root/java/builder.go
Commit message (Collapse)AuthorAgeFilesLines
* Use `Path` instead of string for file pathsDan Willemsen2015-12-091-56/+52
| | | | | | | | | | | | 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
* Use Rule-local implicit dependenciesDan Willemsen2015-11-171-12/+9
| | | | | | | | | | | Depends on https://github.com/google/blueprint/pull/78 This uses the new CommandDeps field to move implicit dependencies embedded in the Command string next to the definition, instead of having to specify them in every BuildParam struct. This should make it easier to verify dependencies. Change-Id: I2711b160920e22fa962a436e1f7041272166f50f
* Update to new blueprint api for bootstrap.BinDirDan Willemsen2015-08-241-2/+3
| | | | | | And regenerate build.ninja.in Change-Id: I35e8b0362799f94b33309d3944b411de5dbcf40a
* java: add missing tool dependenciesColin Cross2015-04-281-0/+2
| | | | | | | Add missing dependencies on the jar, aapt, signapk, and zipalign tools. Change-Id: Ib70fdd41daf84c474f72e1219bf3d02931fcefd7
* Extract jar files to different directory than compilingColin Cross2015-04-271-3/+4
| | | | | | | | | | | Now that we use extractPrebuilts to extract compiled classes from jars after jarjar, it needs to extract to a different directory than used when compiling. Extract them to extracted/classes. Also move the classes.list and resources.list file out of the classes directory so they don't find themselves and end up in downstream jars. Change-Id: I070323466858edc7e33e14207c98f77d540882f3
* java: add one-off build logic for frameworks/baseColin Cross2015-04-201-2/+6
| | | | | | | | | framework.jar needs to compile against R.java and Manifest.java from framework-res.apk. Rather than complicating the Blueprints properties with values that will only be used once, add one-off logic to collectDeps to extract the rJarSpec out of the framework-res module. Change-Id: I1195b1b5e07badc583703479382ceba35300b8fd
* Fix multi-dex buildsColin Cross2015-04-131-9/+11
| | | | | | | Building with --multi-dex requires passing an output directory instead of an output file to dx. Change-Id: I9ffcfe8ff6b96dbdda3eec1076124cd38ae5077f
* Miscellaneous fixes for java compilingColin Cross2015-04-101-5/+6
| | | | | | | | | Remove java out directory before compiling to avoid incremental compile issues. Move the rspfile out of the out directory so it doesn't get deleted. cc->javac in the javac rule. Don't call javac if there are no source files. Change-Id: I0bb06c214da54a587bd9e7c9d17caaf0ed1e595e
* Add aidl file support to java buildsColin Cross2015-04-081-0/+1
| | | | | | | Add support for aidl files listed in srcs for java builds, and an aidl_preprocess module type for framework and sdk aidls. Change-Id: I3aa537f4483822e5b534c74d0b35f13a938f8947
* Move config into common and provide helperColin Cross2015-04-081-2/+2
| | | | | | | | | Using ctx.Config().(Config) everywhere is a mouthful, and it is inefficient to do the type assertion. Put the Config interface into the context, and provide an AConfig() to return the Config already converted to the right type. Change-Id: I301a1fd7d2a005580aabca7866a37c5d42ad8c69
* Add jarjar supportColin Cross2015-04-081-0/+25
| | | | | | | If jarjar_rules is set, pass the compiled jar through jarjar to produce a new intermediate jar. Change-Id: Ied596433fd5c49d05f07c04245f3abe8b9aadc5e
* Add support for using prebuilt libraries as static dependenciesColin Cross2015-04-031-0/+31
| | | | | | | | Extract files out of prebuilt libraries and create list files for classes and resources in order to allow including them in other jars. Change-Id: I9269d1fd6e0f570811a00bf319098ac1f7cdc816
* Support java libraries, binaries, and prebuiltsColin Cross2015-04-031-0/+189
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