Android.bp 859 B

123456789101112131415161718192021222324252627
  1. cc_binary_host {
  2. name: "unifdef",
  3. srcs: ["scripts/unifdef.c"],
  4. sanitize: {
  5. never: true,
  6. }
  7. }
  8. gensrcs {
  9. name: "qseecom-kernel-includes",
  10. // move to out/ as root for header generation because of scripts/unifdef
  11. // storage - at the expense of extra ../ references
  12. cmd: "pushd out && mkdir -p scripts && rm -f scripts/unifdef && ln -s ../../$(location unifdef) scripts/unifdef && ../$(location scripts/headers_install.sh) `dirname ../$(out)` ../ $(in) && popd",
  13. tools: ["unifdef"],
  14. tool_files: ["scripts/headers_install.sh"],
  15. export_include_dirs: ["include/uapi"],
  16. srcs: ["include/uapi/linux/qseecom.h"],
  17. output_extension: "h",
  18. }
  19. cc_library_headers {
  20. name: "qseecom-kernel-headers",
  21. generated_headers: ["qseecom-kernel-includes"],
  22. export_generated_headers: ["qseecom-kernel-includes"],
  23. }