platform_build_soong/java
Dan Willemsen ab9f4268c0 Add proto.canonical_path_from_root
Historically, we've always passed '-I .' as the first argument to
protoc, essentially treating all proto file package names as their full
path in the android source tree. This would make sense in a monorepo
world, but it makes less sense when we're pulling in external projects
with established package names.

So keep the same default (for now), but allow individual builds to opt
into using local paths as the default names with
'canonical_path_from_root: false'. A cleanup effort and/or large scale
change in the future could change the default to false.

As part of this, run protoc once per input proto file, since the flags
may need to change per-file. We'll also need this in order to specify
--dependency_out in the future.

Bug: 70704330
Test: aosp/master build-aosp_arm.ninja is identical
Test: aosp/master soong/build.ninja has expected changes
Test: m
Test: Build protobuf test
Change-Id: I9d6de9fd630326bbcced1c62a4a7e9546429b0ce
2018-02-22 16:48:35 -08:00
..
config Droiddoc Support in Soong 2018-02-22 11:14:13 -08:00
aapt2.go Soong AAR prebuilt support 2018-02-22 14:54:47 -08:00
aar.go Soong AAR prebuilt support 2018-02-22 14:54:47 -08:00
androidmk.go Soong AAR prebuilt support 2018-02-22 14:54:47 -08:00
app.go Soong AAR prebuilt support 2018-02-22 14:54:47 -08:00
app_builder.go Export app certificates to Make for apkcerts list 2017-12-14 12:28:41 -08:00
app_test.go Fix ordering of overlays 2018-01-04 14:52:45 -08:00
builder.go Add proto.canonical_path_from_root 2018-02-22 16:48:35 -08:00
dex.go Add EMMA_INSTRUMENT_STATIC support 2018-01-04 14:52:45 -08:00
droiddoc.go Droiddoc Support in Soong 2018-02-22 11:14:13 -08:00
gen.go Add proto.canonical_path_from_root 2018-02-22 16:48:35 -08:00
genrule.go Add java_genrules to use jars as inputs and outputs 2017-12-06 03:55:20 +00:00
jacoco.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
jacoco_test.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
java.go Droiddoc Support in Soong 2018-02-22 11:14:13 -08:00
java_test.go Droiddoc Support in Soong 2018-02-22 11:14:13 -08:00
proto.go Add proto.canonical_path_from_root 2018-02-22 16:48:35 -08:00
resources.go Correctly add dependencies to java_resource_dirs files 2017-10-04 17:19:43 -07:00
system_modules.go Export system module library list to Make 2018-01-25 14:51:50 -08:00