contrib: add sample Android.bp to build within an Android tree
authorBenjamin Li <benl@squareup.com>
Mon, 6 Mar 2023 18:45:45 +0000 (10:45 -0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Sun, 12 Mar 2023 13:37:39 +0000 (14:37 +0100)
commit1dd855ae6b7a8dbe0386b15feecbf2a361264456
treed41ca3640869b31e4ade04edcc67705c6d9801cb
parent5fa9cb92dfb3bb61f33f8b418f752b87bd2dc665
contrib: add sample Android.bp to build within an Android tree

Add an Android.bp file for Soong, the Android build system, to build
the library including C++ bindings along with all the CLI tools.

This reference Android build file will live in a contrib/ folder to
indiciate it is a less-maintained part of libgpiod. It will need to
be moved to the root directory in order to use it, though, as Soong
doesn't let Blueprint files reference sources in a parent directory.

  error: external/libgpiod/contrib/Android.bp:5:1: module "libgpiod" variant "...": Path is outside directory: ../include
  error: external/libgpiod/contrib/Android.bp:5:1: module "libgpiod" variant "...": Path is outside directory: ../bindings/cxx
  error: external/libgpiod/contrib/Android.bp:5:1: module "libgpiod" variant "...": Path is outside directory: ../lib/*.c
  error: external/libgpiod/contrib/Android.bp:5:1: module "libgpiod" variant "...": Path is outside directory: ../bindings/cxx/*.cpp

Signed-off-by: Benjamin Li <benl@squareup.com>
[Bartosz: add the build file to the release tarball generated by 'make dist']
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Makefile.am
configure.ac
contrib/Android.bp [new file with mode: 0644]
contrib/Makefile.am [new file with mode: 0644]