xref: /aosp_15_r20/external/lmfit/Android.bp (revision 5ddc57e5d924f146ab5fd87df586563e2270da38)
1*5ddc57e5SXin Li// Copyright 2017 The Android Open Source Project
2*5ddc57e5SXin Li//
3*5ddc57e5SXin Li// Licensed under the Apache License, Version 2.0 (the "License");
4*5ddc57e5SXin Li// you may not use this file except in compliance with the License.
5*5ddc57e5SXin Li// You may obtain a copy of the License at
6*5ddc57e5SXin Li//
7*5ddc57e5SXin Li//      http://www.apache.org/licenses/LICENSE-2.0
8*5ddc57e5SXin Li//
9*5ddc57e5SXin Li// Unless required by applicable law or agreed to in writing, software
10*5ddc57e5SXin Li// distributed under the License is distributed on an "AS IS" BASIS,
11*5ddc57e5SXin Li// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*5ddc57e5SXin Li// See the License for the specific language governing permissions and
13*5ddc57e5SXin Li// limitations under the License.
14*5ddc57e5SXin Li
15*5ddc57e5SXin Lipackage {
16*5ddc57e5SXin Li    default_applicable_licenses: ["external_lmfit_license"],
17*5ddc57e5SXin Li}
18*5ddc57e5SXin Li
19*5ddc57e5SXin Li// Added automatically by a large-scale-change that took the approach of
20*5ddc57e5SXin Li// 'apply every license found to every target'. While this makes sure we respect
21*5ddc57e5SXin Li// every license restriction, it may not be entirely correct.
22*5ddc57e5SXin Li//
23*5ddc57e5SXin Li// e.g. GPL in an MIT project might only apply to the contrib/ directory.
24*5ddc57e5SXin Li//
25*5ddc57e5SXin Li// Please consider splitting the single license below into multiple licenses,
26*5ddc57e5SXin Li// taking care not to lose any license_kind information, and overriding the
27*5ddc57e5SXin Li// default license using the 'licenses: [...]' property on targets as needed.
28*5ddc57e5SXin Li//
29*5ddc57e5SXin Li// For unused files, consider creating a 'fileGroup' with "//visibility:private"
30*5ddc57e5SXin Li// to attach the license to, and including a comment whether the files may be
31*5ddc57e5SXin Li// used in the current project.
32*5ddc57e5SXin Li//
33*5ddc57e5SXin Li// large-scale-change included anything that looked like it might be a license
34*5ddc57e5SXin Li// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
35*5ddc57e5SXin Li//
36*5ddc57e5SXin Li// Please consider removing redundant or irrelevant files from 'license_text:'.
37*5ddc57e5SXin Li// See: http://go/android-license-faq
38*5ddc57e5SXin Lilicense {
39*5ddc57e5SXin Li    name: "external_lmfit_license",
40*5ddc57e5SXin Li    visibility: [":__subpackages__"],
41*5ddc57e5SXin Li    license_kinds: [
42*5ddc57e5SXin Li        "SPDX-license-identifier-BSD",
43*5ddc57e5SXin Li        "SPDX-license-identifier-CC-BY",
44*5ddc57e5SXin Li        "SPDX-license-identifier-FSFAP",
45*5ddc57e5SXin Li        "SPDX-license-identifier-MIT",
46*5ddc57e5SXin Li        "legacy_notice",
47*5ddc57e5SXin Li        "legacy_unencumbered",
48*5ddc57e5SXin Li    ],
49*5ddc57e5SXin Li    license_text: [
50*5ddc57e5SXin Li        "COPYING",
51*5ddc57e5SXin Li        "NOTICE",
52*5ddc57e5SXin Li    ],
53*5ddc57e5SXin Li}
54*5ddc57e5SXin Li
55*5ddc57e5SXin Licc_library_static {
56*5ddc57e5SXin Li    name: "lmfit",
57*5ddc57e5SXin Li    vendor: true,
58*5ddc57e5SXin Li
59*5ddc57e5SXin Li    srcs: [
60*5ddc57e5SXin Li        "lib/lmcurve.c",
61*5ddc57e5SXin Li        "lib/lmcurve_tyd.c",
62*5ddc57e5SXin Li        "lib/lmmin.c",
63*5ddc57e5SXin Li    ],
64*5ddc57e5SXin Li    cflags: [
65*5ddc57e5SXin Li        "-W",
66*5ddc57e5SXin Li        "-Wall",
67*5ddc57e5SXin Li        "-Werror",
68*5ddc57e5SXin Li        "-Wno-unused-parameter",
69*5ddc57e5SXin Li    ],
70*5ddc57e5SXin Li    export_include_dirs: ["lib"],
71*5ddc57e5SXin Li}
72