platform_build_soong/sdk
Paul Duffin 1110827b3f Defer \n quoting generatedContents until creating the ninja rule
Previously, when writing to generatedContents \n characters were
quoted (replaced with \\n) so as to allow them to be preserved through
ninja/rsp/bash and were unquoted (replaced \\n with \n) just before
redirecting to the output file. That meant that any code which wanted
to access the contents for other purposes, e.g. testing had to unquote
\\n.

This change moves the quoting to be part of the code that generates the
ninja rule which simplifies any other code that has to access the
contents.

Without quoting the generated Android.bp files are not formatted
properly, are all on one line and completely unreadable.

Bug: 156286550
Test: m art-module-sdk and check generated Android.bp file to make sure
      it is properly formatted.
Change-Id: I768c3b96ed08a3daf251730e2a10d9d72338c49a
2020-05-11 22:59:25 +01:00
..
bp.go Fix bug in error reporting when adding duplicate properties 2020-03-02 16:29:11 +00:00
bp_test.go Defer \n quoting generatedContents until creating the ninja rule 2020-05-11 22:59:25 +01:00
cc_sdk_test.go Retry: Fix snapshot of a host/device cc_library with stubs 2020-05-08 22:32:08 +01:00
exports.go Restrict SdkMemberTypes that can be used with sdk/sdk_snapshot 2019-12-31 15:08:59 +00:00
exports_test.go Add CommonOS variant for sdk 2020-03-02 19:31:26 +00:00
java_sdk_test.go java_sdk_library: Specify visibility of stubs modules 2020-05-08 18:03:31 +01:00
sdk.go Stop requiring apex_available on java_library members of sdks 2020-04-08 08:40:44 +01:00
sdk_test.go Retry: Adds support for 'ignored-on-host' 2020-05-08 22:32:02 +01:00
testing.go Defer \n quoting generatedContents until creating the ninja rule 2020-05-11 22:59:25 +01:00
update.go Defer \n quoting generatedContents until creating the ninja rule 2020-05-11 22:59:25 +01:00