blob: 9d492fea1051f02323dbc98a160eb3c757420627 [file] [log] [blame]
Inseob Kimc0907f12019-02-08 21:00:45 +09001// Copyright (C) 2019 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package sysprop
16
17import (
Inseob Kim42882742019-07-30 17:55:33 +090018 "fmt"
19 "io"
20 "path"
Colin Crossf8b860a2019-04-16 14:43:28 -070021
Inseob Kimc0907f12019-02-08 21:00:45 +090022 "github.com/google/blueprint"
23 "github.com/google/blueprint/proptools"
Inseob Kim42882742019-07-30 17:55:33 +090024
25 "android/soong/android"
26 "android/soong/cc"
27 "android/soong/java"
Inseob Kimc0907f12019-02-08 21:00:45 +090028)
29
30type dependencyTag struct {
31 blueprint.BaseDependencyTag
32 name string
33}
34
Inseob Kim988f53c2019-09-16 15:59:01 +090035type syspropGenProperties struct {
36 Srcs []string `android:"path"`
37 Scope string
Inseob Kimac1e9862019-12-09 18:15:47 +090038 Name *string
Inseob Kim988f53c2019-09-16 15:59:01 +090039}
40
41type syspropJavaGenRule struct {
42 android.ModuleBase
43
44 properties syspropGenProperties
45
46 genSrcjars android.Paths
47}
48
49var _ android.OutputFileProducer = (*syspropJavaGenRule)(nil)
50
51var (
52 syspropJava = pctx.AndroidStaticRule("syspropJava",
53 blueprint.RuleParams{
54 Command: `rm -rf $out.tmp && mkdir -p $out.tmp && ` +
55 `$syspropJavaCmd --scope $scope --java-output-dir $out.tmp $in && ` +
56 `$soongZipCmd -jar -o $out -C $out.tmp -D $out.tmp && rm -rf $out.tmp`,
57 CommandDeps: []string{
58 "$syspropJavaCmd",
59 "$soongZipCmd",
60 },
61 }, "scope")
62)
63
64func init() {
65 pctx.HostBinToolVariable("soongZipCmd", "soong_zip")
66 pctx.HostBinToolVariable("syspropJavaCmd", "sysprop_java")
67
68 android.PreArchMutators(func(ctx android.RegisterMutatorsContext) {
69 ctx.BottomUp("sysprop_deps", syspropDepsMutator).Parallel()
70 })
71}
72
73func (g *syspropJavaGenRule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
74 var checkApiFileTimeStamp android.WritablePath
75
76 ctx.VisitDirectDeps(func(dep android.Module) {
77 if m, ok := dep.(*syspropLibrary); ok {
78 checkApiFileTimeStamp = m.checkApiFileTimeStamp
79 }
80 })
81
82 for _, syspropFile := range android.PathsForModuleSrc(ctx, g.properties.Srcs) {
83 srcJarFile := android.GenPathWithExt(ctx, "sysprop", syspropFile, "srcjar")
84
85 ctx.Build(pctx, android.BuildParams{
86 Rule: syspropJava,
87 Description: "sysprop_java " + syspropFile.Rel(),
88 Output: srcJarFile,
89 Input: syspropFile,
90 Implicit: checkApiFileTimeStamp,
91 Args: map[string]string{
92 "scope": g.properties.Scope,
93 },
94 })
95
96 g.genSrcjars = append(g.genSrcjars, srcJarFile)
97 }
98}
99
100func (g *syspropJavaGenRule) OutputFiles(tag string) (android.Paths, error) {
101 switch tag {
102 case "":
103 return g.genSrcjars, nil
104 default:
105 return nil, fmt.Errorf("unsupported module reference tag %q", tag)
106 }
107}
108
109func syspropJavaGenFactory() android.Module {
110 g := &syspropJavaGenRule{}
111 g.AddProperties(&g.properties)
112 android.InitAndroidModule(g)
113 return g
114}
115
Inseob Kimc0907f12019-02-08 21:00:45 +0900116type syspropLibrary struct {
Inseob Kim42882742019-07-30 17:55:33 +0900117 android.ModuleBase
Paul Duffinebb7af62020-03-30 18:00:25 +0100118 android.ApexModuleBase
Inseob Kimc0907f12019-02-08 21:00:45 +0900119
Inseob Kim42882742019-07-30 17:55:33 +0900120 properties syspropLibraryProperties
121
122 checkApiFileTimeStamp android.WritablePath
123 latestApiFile android.Path
124 currentApiFile android.Path
125 dumpedApiFile android.WritablePath
Inseob Kimc0907f12019-02-08 21:00:45 +0900126}
127
128type syspropLibraryProperties struct {
129 // Determine who owns this sysprop library. Possible values are
130 // "Platform", "Vendor", or "Odm"
131 Property_owner string
Inseob Kimf63c2fb2019-03-05 14:22:30 +0900132
133 // list of package names that will be documented and publicized as API
134 Api_packages []string
Inseob Kimc0907f12019-02-08 21:00:45 +0900135
Inseob Kim42882742019-07-30 17:55:33 +0900136 // If set to true, allow this module to be dexed and installed on devices.
137 Installable *bool
138
139 // Make this module available when building for recovery
Jiyong Park854a9442019-02-26 10:27:13 +0900140 Recovery_available *bool
Inseob Kim42882742019-07-30 17:55:33 +0900141
142 // Make this module available when building for vendor
143 Vendor_available *bool
144
145 // list of .sysprop files which defines the properties.
146 Srcs []string `android:"path"`
Inseob Kimac1e9862019-12-09 18:15:47 +0900147
Inseob Kimeb591652020-02-03 18:06:46 +0900148 // If set to true, build a variant of the module for the host. Defaults to false.
149 Host_supported *bool
150
Inseob Kimac1e9862019-12-09 18:15:47 +0900151 // Whether public stub exists or not.
152 Public_stub *bool `blueprint:"mutated"`
Inseob Kimc0907f12019-02-08 21:00:45 +0900153}
154
155var (
Inseob Kim42882742019-07-30 17:55:33 +0900156 pctx = android.NewPackageContext("android/soong/sysprop")
Inseob Kimc0907f12019-02-08 21:00:45 +0900157 syspropCcTag = dependencyTag{name: "syspropCc"}
158)
159
160func init() {
161 android.RegisterModuleType("sysprop_library", syspropLibraryFactory)
162}
163
Inseob Kim42882742019-07-30 17:55:33 +0900164func (m *syspropLibrary) Name() string {
165 return m.BaseModuleName() + "_sysprop_library"
Inseob Kimc0907f12019-02-08 21:00:45 +0900166}
167
Inseob Kimac1e9862019-12-09 18:15:47 +0900168func (m *syspropLibrary) Owner() string {
169 return m.properties.Property_owner
170}
171
Inseob Kim42882742019-07-30 17:55:33 +0900172func (m *syspropLibrary) CcModuleName() string {
173 return "lib" + m.BaseModuleName()
174}
175
Inseob Kimac1e9862019-12-09 18:15:47 +0900176func (m *syspropLibrary) JavaPublicStubName() string {
177 if proptools.Bool(m.properties.Public_stub) {
178 return m.BaseModuleName() + "_public"
179 }
180 return ""
181}
182
Inseob Kim988f53c2019-09-16 15:59:01 +0900183func (m *syspropLibrary) javaGenModuleName() string {
184 return m.BaseModuleName() + "_java_gen"
185}
186
Inseob Kimac1e9862019-12-09 18:15:47 +0900187func (m *syspropLibrary) javaGenPublicStubName() string {
188 return m.BaseModuleName() + "_java_gen_public"
189}
190
Inseob Kim42882742019-07-30 17:55:33 +0900191func (m *syspropLibrary) BaseModuleName() string {
192 return m.ModuleBase.Name()
193}
194
Inseob Kimac1e9862019-12-09 18:15:47 +0900195func (m *syspropLibrary) HasPublicStub() bool {
196 return proptools.Bool(m.properties.Public_stub)
197}
198
Inseob Kim42882742019-07-30 17:55:33 +0900199func (m *syspropLibrary) GenerateAndroidBuildActions(ctx android.ModuleContext) {
Inseob Kim988f53c2019-09-16 15:59:01 +0900200 baseModuleName := m.BaseModuleName()
201
202 for _, syspropFile := range android.PathsForModuleSrc(ctx, m.properties.Srcs) {
203 if syspropFile.Ext() != ".sysprop" {
204 ctx.PropertyErrorf("srcs", "srcs contains non-sysprop file %q", syspropFile.String())
205 }
206 }
207
208 if ctx.Failed() {
209 return
210 }
211
212 m.currentApiFile = android.PathForSource(ctx, ctx.ModuleDir(), "api", baseModuleName+"-current.txt")
213 m.latestApiFile = android.PathForSource(ctx, ctx.ModuleDir(), "api", baseModuleName+"-latest.txt")
Inseob Kim42882742019-07-30 17:55:33 +0900214
215 // dump API rule
216 rule := android.NewRuleBuilder()
217 m.dumpedApiFile = android.PathForModuleOut(ctx, "api-dump.txt")
218 rule.Command().
219 BuiltTool(ctx, "sysprop_api_dump").
220 Output(m.dumpedApiFile).
221 Inputs(android.PathsForModuleSrc(ctx, m.properties.Srcs))
Inseob Kim988f53c2019-09-16 15:59:01 +0900222 rule.Build(pctx, ctx, baseModuleName+"_api_dump", baseModuleName+" api dump")
Inseob Kim42882742019-07-30 17:55:33 +0900223
224 // check API rule
225 rule = android.NewRuleBuilder()
226
227 // 1. current.txt <-> api_dump.txt
228 msg := fmt.Sprintf(`\n******************************\n`+
229 `API of sysprop_library %s doesn't match with current.txt\n`+
230 `Please update current.txt by:\n`+
Inseob Kim988f53c2019-09-16 15:59:01 +0900231 `m %s-dump-api && rm -rf %q && cp -f %q %q\n`+
232 `******************************\n`, baseModuleName, baseModuleName,
Inseob Kim42882742019-07-30 17:55:33 +0900233 m.currentApiFile.String(), m.dumpedApiFile.String(), m.currentApiFile.String())
234
235 rule.Command().
236 Text("( cmp").Flag("-s").
237 Input(m.dumpedApiFile).
238 Input(m.currentApiFile).
239 Text("|| ( echo").Flag("-e").
240 Flag(`"` + msg + `"`).
241 Text("; exit 38) )")
242
243 // 2. current.txt <-> latest.txt
244 msg = fmt.Sprintf(`\n******************************\n`+
245 `API of sysprop_library %s doesn't match with latest version\n`+
246 `Please fix the breakage and rebuild.\n`+
Inseob Kim988f53c2019-09-16 15:59:01 +0900247 `******************************\n`, baseModuleName)
Inseob Kim42882742019-07-30 17:55:33 +0900248
249 rule.Command().
250 Text("( ").
251 BuiltTool(ctx, "sysprop_api_checker").
252 Input(m.latestApiFile).
253 Input(m.currentApiFile).
254 Text(" || ( echo").Flag("-e").
255 Flag(`"` + msg + `"`).
256 Text("; exit 38) )")
257
258 m.checkApiFileTimeStamp = android.PathForModuleOut(ctx, "check_api.timestamp")
259
260 rule.Command().
261 Text("touch").
262 Output(m.checkApiFileTimeStamp)
263
Inseob Kim988f53c2019-09-16 15:59:01 +0900264 rule.Build(pctx, ctx, baseModuleName+"_check_api", baseModuleName+" check api")
Inseob Kim42882742019-07-30 17:55:33 +0900265}
266
267func (m *syspropLibrary) AndroidMk() android.AndroidMkData {
268 return android.AndroidMkData{
269 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) {
270 // sysprop_library module itself is defined as a FAKE module to perform API check.
271 // Actual implementation libraries are created on LoadHookMutator
272 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)")
273 fmt.Fprintf(w, "LOCAL_MODULE := %s\n", m.Name())
274 fmt.Fprintf(w, "LOCAL_MODULE_CLASS := FAKE\n")
275 fmt.Fprintf(w, "LOCAL_MODULE_TAGS := optional\n")
276 fmt.Fprintf(w, "include $(BUILD_SYSTEM)/base_rules.mk\n\n")
277 fmt.Fprintf(w, "$(LOCAL_BUILT_MODULE): %s\n", m.checkApiFileTimeStamp.String())
278 fmt.Fprintf(w, "\ttouch $@\n\n")
Inseob Kim988f53c2019-09-16 15:59:01 +0900279 fmt.Fprintf(w, ".PHONY: %s-check-api %s-dump-api\n\n", name, name)
280
281 // dump API rule
282 fmt.Fprintf(w, "%s-dump-api: %s\n\n", name, m.dumpedApiFile.String())
Inseob Kim42882742019-07-30 17:55:33 +0900283
284 // check API rule
285 fmt.Fprintf(w, "%s-check-api: %s\n\n", name, m.checkApiFileTimeStamp.String())
Inseob Kim42882742019-07-30 17:55:33 +0900286 }}
287}
288
289// sysprop_library creates schematized APIs from sysprop description files (.sysprop).
290// Both Java and C++ modules can link against sysprop_library, and API stability check
291// against latest APIs (see build/soong/scripts/freeze-sysprop-api-files.sh)
292// is performed.
Inseob Kimc0907f12019-02-08 21:00:45 +0900293func syspropLibraryFactory() android.Module {
294 m := &syspropLibrary{}
295
296 m.AddProperties(
Inseob Kim42882742019-07-30 17:55:33 +0900297 &m.properties,
Inseob Kimc0907f12019-02-08 21:00:45 +0900298 )
Inseob Kim42882742019-07-30 17:55:33 +0900299 android.InitAndroidModule(m)
Paul Duffinebb7af62020-03-30 18:00:25 +0100300 android.InitApexModule(m)
Inseob Kimc0907f12019-02-08 21:00:45 +0900301 android.AddLoadHook(m, func(ctx android.LoadHookContext) { syspropLibraryHook(ctx, m) })
Inseob Kimc0907f12019-02-08 21:00:45 +0900302 return m
303}
304
Inseob Kimac1e9862019-12-09 18:15:47 +0900305type ccLibraryProperties struct {
306 Name *string
307 Srcs []string
308 Soc_specific *bool
309 Device_specific *bool
310 Product_specific *bool
311 Sysprop struct {
312 Platform *bool
313 }
Inseob Kimeb591652020-02-03 18:06:46 +0900314 Target struct {
315 Android struct {
316 Header_libs []string
317 Shared_libs []string
318 }
319 Host struct {
320 Static_libs []string
321 }
322 }
Inseob Kimac1e9862019-12-09 18:15:47 +0900323 Required []string
324 Recovery *bool
325 Recovery_available *bool
326 Vendor_available *bool
Inseob Kimeb591652020-02-03 18:06:46 +0900327 Host_supported *bool
Paul Duffinebb7af62020-03-30 18:00:25 +0100328 Apex_available []string
Inseob Kimac1e9862019-12-09 18:15:47 +0900329}
330
331type javaLibraryProperties struct {
332 Name *string
333 Srcs []string
334 Soc_specific *bool
335 Device_specific *bool
336 Product_specific *bool
337 Required []string
338 Sdk_version *string
339 Installable *bool
340 Libs []string
341 Stem *string
342}
343
Inseob Kimc0907f12019-02-08 21:00:45 +0900344func syspropLibraryHook(ctx android.LoadHookContext, m *syspropLibrary) {
Inseob Kim42882742019-07-30 17:55:33 +0900345 if len(m.properties.Srcs) == 0 {
Inseob Kim6e93ac92019-03-21 17:43:49 +0900346 ctx.PropertyErrorf("srcs", "sysprop_library must specify srcs")
347 }
348
Inseob Kim42882742019-07-30 17:55:33 +0900349 missing_api := false
350
351 for _, txt := range []string{"-current.txt", "-latest.txt"} {
352 path := path.Join(ctx.ModuleDir(), "api", m.BaseModuleName()+txt)
353 file := android.ExistentPathForSource(ctx, path)
354 if !file.Valid() {
355 ctx.ModuleErrorf("API file %#v doesn't exist", path)
356 missing_api = true
357 }
358 }
359
360 if missing_api {
361 script := "build/soong/scripts/gen-sysprop-api-files.sh"
362 p := android.ExistentPathForSource(ctx, script)
363
364 if !p.Valid() {
365 panic(fmt.Sprintf("script file %s doesn't exist", script))
366 }
367
368 ctx.ModuleErrorf("One or more api files are missing. "+
369 "You can create them by:\n"+
370 "%s %q %q", script, ctx.ModuleDir(), m.BaseModuleName())
371 return
Inseob Kimc0907f12019-02-08 21:00:45 +0900372 }
373
Inseob Kimac1e9862019-12-09 18:15:47 +0900374 // ctx's Platform or Specific functions represent where this sysprop_library installed.
375 installedInSystem := ctx.Platform() || ctx.SystemExtSpecific()
376 installedInVendorOrOdm := ctx.SocSpecific() || ctx.DeviceSpecific()
377 isOwnerPlatform := false
Inseob Kim42882742019-07-30 17:55:33 +0900378 stub := "sysprop-library-stub-"
Inseob Kimc0907f12019-02-08 21:00:45 +0900379
Inseob Kimac1e9862019-12-09 18:15:47 +0900380 switch m.Owner() {
Inseob Kimc0907f12019-02-08 21:00:45 +0900381 case "Platform":
382 // Every partition can access platform-defined properties
Inseob Kim42882742019-07-30 17:55:33 +0900383 stub += "platform"
Inseob Kimac1e9862019-12-09 18:15:47 +0900384 isOwnerPlatform = true
Inseob Kimc0907f12019-02-08 21:00:45 +0900385 case "Vendor":
386 // System can't access vendor's properties
Inseob Kimac1e9862019-12-09 18:15:47 +0900387 if installedInSystem {
Inseob Kimc0907f12019-02-08 21:00:45 +0900388 ctx.ModuleErrorf("None of soc_specific, device_specific, product_specific is true. " +
389 "System can't access sysprop_library owned by Vendor")
390 }
Inseob Kim42882742019-07-30 17:55:33 +0900391 stub += "vendor"
Inseob Kimc0907f12019-02-08 21:00:45 +0900392 case "Odm":
393 // Only vendor can access Odm-defined properties
Inseob Kimac1e9862019-12-09 18:15:47 +0900394 if !installedInVendorOrOdm {
Inseob Kimc0907f12019-02-08 21:00:45 +0900395 ctx.ModuleErrorf("Neither soc_speicifc nor device_specific is true. " +
396 "Odm-defined properties should be accessed only in Vendor or Odm")
397 }
Inseob Kim42882742019-07-30 17:55:33 +0900398 stub += "vendor"
Inseob Kimc0907f12019-02-08 21:00:45 +0900399 default:
400 ctx.PropertyErrorf("property_owner",
Inseob Kimac1e9862019-12-09 18:15:47 +0900401 "Unknown value %s: must be one of Platform, Vendor or Odm", m.Owner())
Inseob Kimc0907f12019-02-08 21:00:45 +0900402 }
403
Inseob Kimac1e9862019-12-09 18:15:47 +0900404 ccProps := ccLibraryProperties{}
Inseob Kimc0907f12019-02-08 21:00:45 +0900405 ccProps.Name = proptools.StringPtr(m.CcModuleName())
Inseob Kim42882742019-07-30 17:55:33 +0900406 ccProps.Srcs = m.properties.Srcs
Inseob Kimac1e9862019-12-09 18:15:47 +0900407 ccProps.Soc_specific = proptools.BoolPtr(ctx.SocSpecific())
408 ccProps.Device_specific = proptools.BoolPtr(ctx.DeviceSpecific())
409 ccProps.Product_specific = proptools.BoolPtr(ctx.ProductSpecific())
410 ccProps.Sysprop.Platform = proptools.BoolPtr(isOwnerPlatform)
Inseob Kimeb591652020-02-03 18:06:46 +0900411 ccProps.Target.Android.Header_libs = []string{"libbase_headers"}
412 ccProps.Target.Android.Shared_libs = []string{"liblog"}
413 ccProps.Target.Host.Static_libs = []string{"libbase", "liblog"}
Inseob Kim42882742019-07-30 17:55:33 +0900414 ccProps.Recovery_available = m.properties.Recovery_available
415 ccProps.Vendor_available = m.properties.Vendor_available
Inseob Kimeb591652020-02-03 18:06:46 +0900416 ccProps.Host_supported = m.properties.Host_supported
Paul Duffinebb7af62020-03-30 18:00:25 +0100417 ccProps.Apex_available = m.ApexProperties.Apex_available
Colin Cross84dfc3d2019-09-25 11:33:01 -0700418 ctx.CreateModule(cc.LibraryFactory, &ccProps)
Inseob Kim42882742019-07-30 17:55:33 +0900419
Inseob Kim988f53c2019-09-16 15:59:01 +0900420 scope := "internal"
Inseob Kim988f53c2019-09-16 15:59:01 +0900421
Inseob Kimac1e9862019-12-09 18:15:47 +0900422 // We need to only use public version, if the partition where sysprop_library will be installed
423 // is different from owner.
424
425 if ctx.ProductSpecific() {
426 // Currently product partition can't own any sysprop_library.
Inseob Kim988f53c2019-09-16 15:59:01 +0900427 scope = "public"
Inseob Kimac1e9862019-12-09 18:15:47 +0900428 } else if isOwnerPlatform && installedInVendorOrOdm {
429 // Vendor or Odm should use public version of Platform's sysprop_library.
Inseob Kim988f53c2019-09-16 15:59:01 +0900430 scope = "public"
431 }
432
Inseob Kimac1e9862019-12-09 18:15:47 +0900433 ctx.CreateModule(syspropJavaGenFactory, &syspropGenProperties{
Inseob Kim988f53c2019-09-16 15:59:01 +0900434 Srcs: m.properties.Srcs,
435 Scope: scope,
436 Name: proptools.StringPtr(m.javaGenModuleName()),
Inseob Kimac1e9862019-12-09 18:15:47 +0900437 })
438
439 ctx.CreateModule(java.LibraryFactory, &javaLibraryProperties{
440 Name: proptools.StringPtr(m.BaseModuleName()),
441 Srcs: []string{":" + m.javaGenModuleName()},
442 Soc_specific: proptools.BoolPtr(ctx.SocSpecific()),
443 Device_specific: proptools.BoolPtr(ctx.DeviceSpecific()),
444 Product_specific: proptools.BoolPtr(ctx.ProductSpecific()),
445 Installable: m.properties.Installable,
446 Sdk_version: proptools.StringPtr("core_current"),
447 Libs: []string{stub},
448 })
449
450 // if platform sysprop_library is installed in /system or /system-ext, we regard it as an API
451 // and allow any modules (even from different partition) to link against the sysprop_library.
452 // To do that, we create a public stub and expose it to modules with sdk_version: system_*.
453 if isOwnerPlatform && installedInSystem {
454 m.properties.Public_stub = proptools.BoolPtr(true)
455 ctx.CreateModule(syspropJavaGenFactory, &syspropGenProperties{
456 Srcs: m.properties.Srcs,
457 Scope: "public",
458 Name: proptools.StringPtr(m.javaGenPublicStubName()),
459 })
460
461 ctx.CreateModule(java.LibraryFactory, &javaLibraryProperties{
462 Name: proptools.StringPtr(m.JavaPublicStubName()),
463 Srcs: []string{":" + m.javaGenPublicStubName()},
464 Installable: proptools.BoolPtr(false),
465 Sdk_version: proptools.StringPtr("core_current"),
466 Libs: []string{stub},
467 Stem: proptools.StringPtr(m.BaseModuleName()),
468 })
Inseob Kim988f53c2019-09-16 15:59:01 +0900469 }
Inseob Kimc0907f12019-02-08 21:00:45 +0900470}
Inseob Kim988f53c2019-09-16 15:59:01 +0900471
472func syspropDepsMutator(ctx android.BottomUpMutatorContext) {
473 if m, ok := ctx.Module().(*syspropLibrary); ok {
474 ctx.AddReverseDependency(m, nil, m.javaGenModuleName())
Inseob Kimac1e9862019-12-09 18:15:47 +0900475
476 if proptools.Bool(m.properties.Public_stub) {
477 ctx.AddReverseDependency(m, nil, m.javaGenPublicStubName())
478 }
Inseob Kim988f53c2019-09-16 15:59:01 +0900479 }
480}