xref: /aosp_15_r20/external/starlark-go/Android.bp (revision 4947cdc739c985f6d86941e22894f5cefe7c9e9a)
1// Packages the Starlark interpreter embedded in
2// product_config uses.
3
4package {
5    default_applicable_licenses: ["external_starlark-go_license"],
6}
7
8// Added automatically by a large-scale-change that took the approach of
9// 'apply every license found to every target'. While this makes sure we respect
10// every license restriction, it may not be entirely correct.
11//
12// e.g. GPL in an MIT project might only apply to the contrib/ directory.
13//
14// Please consider splitting the single license below into multiple licenses,
15// taking care not to lose any license_kind information, and overriding the
16// default license using the 'licenses: [...]' property on targets as needed.
17//
18// For unused files, consider creating a 'fileGroup' with "//visibility:private"
19// to attach the license to, and including a comment whether the files may be
20// used in the current project.
21// See: http://go/android-license-faq
22license {
23    name: "external_starlark-go_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27        "SPDX-license-identifier-BSD",
28    ],
29    license_text: [
30        "LICENSE",
31    ],
32}
33
34bootstrap_go_package {
35    name: "go-starlark-internal-compile",
36    pkgPath: "go.starlark.net/internal/compile",
37    srcs: [
38        "internal/compile/compile.go",
39        "internal/compile/serial.go",
40    ],
41    deps: [
42        "go-starlark-syntax",
43        "go-starlark-resolve",
44    ],
45}
46
47bootstrap_go_package {
48    name: "go-starlark-internal-spell",
49    pkgPath: "go.starlark.net/internal/spell",
50    srcs: ["internal/spell/spell.go"],
51}
52
53bootstrap_go_package {
54    name: "go-starlark-resolve",
55    pkgPath: "go.starlark.net/resolve",
56    srcs: [
57        "resolve/binding.go",
58        "resolve/resolve.go",
59    ],
60    deps: [
61        "go-starlark-internal-spell",
62        "go-starlark-syntax",
63    ],
64}
65
66bootstrap_go_package {
67    name: "go-starlark-syntax",
68    pkgPath: "go.starlark.net/syntax",
69    srcs: [
70        "syntax/parse.go",
71        "syntax/quote.go",
72        "syntax/scan.go",
73        "syntax/syntax.go",
74        "syntax/walk.go",
75    ],
76}
77
78bootstrap_go_package {
79    name: "go-starlark-starlark",
80    pkgPath: "go.starlark.net/starlark",
81    srcs: [
82        "starlark/debug.go",
83        "starlark/eval.go",
84        "starlark/hashtable.go",
85        "starlark/interp.go",
86        "starlark/int_generic.go",
87        "starlark/int.go",
88        //    	"starlark/int_posix64.go",
89        "starlark/library.go",
90        "starlark/profile.go",
91        "starlark/unpack.go",
92        "starlark/value.go",
93    ],
94    deps: [
95        "go-starlark-internal-compile",
96        "go-starlark-internal-spell",
97        "go-starlark-resolve",
98        "go-starlark-syntax",
99    ],
100}
101
102bootstrap_go_package {
103    name: "go-starlark-starlarkstruct",
104    pkgPath: "go.starlark.net/starlarkstruct",
105    srcs: [
106        "starlarkstruct/module.go",
107        "starlarkstruct/struct.go",
108    ],
109    deps: [
110        "go-starlark-starlark",
111        "go-starlark-syntax",
112    ],
113}
114
115bootstrap_go_package {
116    name: "go-starlark-starlarkjson",
117    pkgPath: "go.starlark.net/starlarkjson",
118    srcs: [
119        "starlarkjson/json.go",
120    ],
121    deps: [
122        "go-starlark-starlark",
123        "go-starlark-starlarkstruct",
124    ],
125}
126
127
128bootstrap_go_package {
129    name: "go-starlark-starlarktest",
130    pkgPath: "go.starlark.net/starlarktest",
131    srcs: ["starlarktest/starlarktest.go"],
132    deps: [
133        "go-starlark-starlark",
134        "go-starlark-starlarkstruct",
135    ],
136}
137