Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-FileCopyrightText: 2023 Benjamin Li <benl@squareup.com>

// Instructions:
// - Check out this repository as external/libgpiod.
// - Move this build file to the project's root directory.

//
// libgpiod main library
//

cc_library_shared {
name: "libgpiod",
defaults: [
"libgpiod_defaults",
],
srcs: [
"lib/*.c",
"bindings/cxx/*.cpp",
],
export_include_dirs: [
"include",
"bindings/cxx",
],
host_supported: true,
vendor: true,
}

cc_defaults {
name: "libgpiod_defaults",
cpp_std: "gnu++17",
cflags: [
// You may want to edit this with the version from configure.ac of
// the release you are using.
"-DGPIOD_VERSION_STR=\"unstable\"",
],
cppflags: [
// Google C++ style is to not use exceptions, but this library does
// use them.
"-fexceptions",
],
// Google C++ style is to not use runtime type information, but this
// library does use it.
rtti: true,
}


cc_defaults {
name: "libgpiod_tools_defaults",
srcs: [
"tools/tools-common.c",
],
shared_libs: [
"libgpiod",
],
}

cc_library_headers {
name: "libgpiod_headers",
export_include_dirs: ["include"],
}
136 changes: 0 additions & 136 deletions contrib/Android.bp

This file was deleted.