• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2019 The Android Open Source Project
2
3package {
4    default_applicable_licenses: ["external_libiio_license"],
5}
6
7// Added automatically by a large-scale-change that took the approach of
8// 'apply every license found to every target'. While this makes sure we respect
9// every license restriction, it may not be entirely correct.
10//
11// e.g. GPL in an MIT project might only apply to the contrib/ directory.
12//
13// Please consider splitting the single license below into multiple licenses,
14// taking care not to lose any license_kind information, and overriding the
15// default license using the 'licenses: [...]' property on targets as needed.
16//
17// For unused files, consider creating a 'fileGroup' with "//visibility:private"
18// to attach the license to, and including a comment whether the files may be
19// used in the current project.
20// See: http://go/android-license-faq
21license {
22    name: "external_libiio_license",
23    visibility: [":__subpackages__"],
24    license_kinds: [
25        "SPDX-license-identifier-BSD",
26        "SPDX-license-identifier-LGPL",
27        "SPDX-license-identifier-LGPL-2.1",
28        "SPDX-license-identifier-LGPL-3.0",
29    ],
30    license_text: [
31        "src/COPYING.txt",
32    ],
33}
34
35cc_library_headers {
36    name: "libiio_headers",
37    export_include_dirs: ["include"],
38}
39
40cc_library_shared {
41    name: "libiio",
42    srcs: [
43        "src/backend.c",
44        "src/buffer.c",
45        "src/channel.c",
46        "src/context.c",
47        "src/device.c",
48        "src/local.c",
49        "src/scan.c",
50        "src/sort.c",
51        "src/utilities.c",
52    ],
53
54    cflags: [
55        "-Wall",
56        "-Werror",
57        "-Wno-sign-compare",
58        "-Wno-unused-parameter",
59    ],
60}
61