diff options
author | Dan Albert <danalbert@google.com> | 2017-03-28 14:54:55 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2017-03-31 12:27:42 -0700 |
commit | 30c9d6e771ef76c4f809b0674ee9a3edd2aa88ab (patch) | |
tree | b04c79d90fdb9ffd4cdd030213ab1b01daf918c9 /android/defs.go | |
parent | 94e17470513150682252ea835ecf1ab01950ef54 (diff) | |
download | build_soong-30c9d6e771ef76c4f809b0674ee9a3edd2aa88ab.tar.gz build_soong-30c9d6e771ef76c4f809b0674ee9a3edd2aa88ab.tar.bz2 build_soong-30c9d6e771ef76c4f809b0674ee9a3edd2aa88ab.zip |
Generate file to map codenames to API levels.
The NDK stub library generator needs to know what unreleased API
levels exist and what the ordering is between them. This singleton
will later be expanded to generate api-level.h to cut down on
duplication.
Test: make out/soong/api_levels.json && cat out/soong/api_levels.json
Bug: None
Change-Id: I53126dd2cacb67c331c44f7d7c77c98b176b93cd
Diffstat (limited to 'android/defs.go')
-rw-r--r-- | android/defs.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android/defs.go b/android/defs.go index d7e2a9f7..6f463162 100644 --- a/android/defs.go +++ b/android/defs.go @@ -80,6 +80,13 @@ var ( Description: "concatenate licenses $out", }) + WriteFile = pctx.AndroidStaticRule("WriteFile", + blueprint.RuleParams{ + Command: "echo '$content' > $out", + Description: "writing file $out", + }, + "content") + // Used only when USE_GOMA=true is set, to restrict non-goma jobs to the local parallelism value localPool = blueprint.NewBuiltinPool("local_pool") ) |