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