Android.bp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Copyright 2015 Google Inc. All rights reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. //
  15. // androidmk Android.mk to Blueprints translator
  16. //
  17. package {
  18. default_applicable_licenses: ["Android-Apache-2.0"],
  19. }
  20. blueprint_go_binary {
  21. name: "androidmk",
  22. srcs: [
  23. "cmd/androidmk.go",
  24. ],
  25. deps: [
  26. "androidmk-lib",
  27. ],
  28. }
  29. bootstrap_go_package {
  30. name: "androidmk-lib",
  31. pkgPath: "android/soong/androidmk/androidmk",
  32. srcs: [
  33. "androidmk/android.go",
  34. "androidmk/androidmk.go",
  35. "androidmk/values.go",
  36. ],
  37. testSrcs: [
  38. "androidmk/androidmk_test.go",
  39. ],
  40. deps: [
  41. "androidmk-parser",
  42. "blueprint-parser",
  43. "bpfix-lib",
  44. ],
  45. }
  46. bootstrap_go_package {
  47. name: "androidmk-parser",
  48. pkgPath: "android/soong/androidmk/parser",
  49. srcs: [
  50. "parser/ast.go",
  51. "parser/make_strings.go",
  52. "parser/parser.go",
  53. "parser/scope.go",
  54. ],
  55. testSrcs: [
  56. "parser/make_strings_test.go",
  57. "parser/parser_test.go",
  58. ],
  59. }