Lines Matching refs:w

76 func (a *apexBundle) androidMkForFiles(w io.Writer, apexBundleName, apexName, moduleDir string,
144 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)")
146 fmt.Fprintln(w, "LOCAL_PATH :=", fi.moduleDir)
148 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir)
150 fmt.Fprintln(w, "LOCAL_MODULE :=", moduleName)
152 fmt.Fprintln(w, "LOCAL_MODULE_OWNER :=", fi.module.Owner())
160 fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", modulePath)
162 fmt.Fprintln(w, "LOCAL_SOONG_SYMBOL_PATH :=", pathWhenActivated)
165 fmt.Fprintln(w, "LOCAL_MODULE_SYMLINKS :=", strings.Join(fi.symlinks, " "))
176 … fmt.Fprintln(w, "LOCAL_TEST_DATA :=", strings.Join(android.AndroidMkDataPaths(newDataPaths), " "))
180 fmt.Fprintln(w, "LOCAL_NOTICE_FILE :=", strings.Join(fi.module.NoticeFiles().Strings(), " "))
184 fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", pathWhenActivated)
189 fmt.Fprintln(w, "LOCAL_NO_NOTICE_FILE := true")
191 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", fi.builtFile.String())
192 fmt.Fprintln(w, "LOCAL_MODULE_CLASS :=", fi.class.nameInMake())
200 fmt.Fprintln(w, "LOCAL_MODULE_HOST_CROSS_ARCH :=", archStr)
204 fmt.Fprintln(w, "LOCAL_MODULE_HOST_ARCH :=", archStr)
210 fmt.Fprintln(w, "LOCAL_MODULE_TARGET_ARCH :=", archStr)
218 fmt.Fprintln(w, "LOCAL_MODULE_HOST_OS :=", makeOs)
219 fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true")
223 fmt.Fprintln(w, "LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR :=", fi.jacocoReportClassesFile.String())
230 fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", strings.TrimSuffix(fi.stem(), ".jar"))
232 …fmt.Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", javaModule.ImplementationAndResourcesJars()[0].Strin…
233 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", javaModule.HeaderJars()[0].String())
235 fmt.Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", fi.builtFile.String())
236 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", fi.builtFile.String())
238 fmt.Fprintln(w, "LOCAL_SOONG_DEX_JAR :=", fi.builtFile.String())
239 fmt.Fprintln(w, "LOCAL_DEX_PREOPT := false")
240 fmt.Fprintln(w, "include $(BUILD_SYSTEM)/soong_java_prebuilt.mk")
242 fmt.Fprintln(w, "LOCAL_CERTIFICATE :=", fi.certificate.AndroidMkString())
246 fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", strings.TrimSuffix(fi.stem(), ".apk"))
249 …fmt.Fprintln(w, "LOCAL_PREBUILT_COVERAGE_ARCHIVE :=", strings.Join(jniCoverageOutputs.Strings(), "…
252 fmt.Fprintln(w, "LOCAL_SOONG_JNI_LIBS_SYMBOLS :=", jniLibSymbols.String())
255 fmt.Fprintln(w, "include $(BUILD_SYSTEM)/soong_app_prebuilt.mk")
261 fmt.Fprintln(w, "LOCAL_APK_SET_INSTALL_FILE :=", as.InstallFile())
262 fmt.Fprintln(w, "LOCAL_APKCERTS_FILE :=", as.APKCertsFile().String())
263 fmt.Fprintln(w, "include $(BUILD_SYSTEM)/soong_android_app_set.mk")
265 fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", fi.stem())
268 fmt.Fprintln(w, "LOCAL_SOONG_UNSTRIPPED_BINARY :=", ccMod.UnstrippedOutputFile().String())
270 ccMod.AndroidMkWriteAdditionalDependenciesForSourceAbiDiff(w)
272 fmt.Fprintln(w, "LOCAL_PREBUILT_COVERAGE_ARCHIVE :=", ccMod.CoverageOutputFile().String())
275 fmt.Fprintln(w, "include $(BUILD_SYSTEM)/soong_cc_prebuilt.mk")
277 fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", fi.stem())
287 fmt.Fprintln(w, name+" := "+strings.Join(value, " "))
298 fmt.Fprintln(w, "LOCAL_OVERRIDES_MODULES :=", strings.Join(patterns, " "))
307 fmt.Fprintln(w, "LOCAL_FILE_CONTEXTS :=", a.fileContexts)
310 fmt.Fprintln(w, "LOCAL_POST_INSTALL_CMD :=", strings.Join(postInstallCommands, " && "))
313 fmt.Fprintln(w, "include $(BUILD_PREBUILT)")
318 fmt.Fprintf(w, ".PHONY: %s\n", fi.androidMkModuleName)
319 fmt.Fprintf(w, "%s: %s\n", fi.androidMkModuleName, moduleName)
325 func (a *apexBundle) writeRequiredModules(w io.Writer, apexBundleName string) {
338 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES +=", strings.Join(required, " "))
341 fmt.Fprintln(w, "LOCAL_TARGET_REQUIRED_MODULES +=", strings.Join(targetRequired, " "))
344 fmt.Fprintln(w, "LOCAL_HOST_REQUIRED_MODULES +=", strings.Join(hostRequired, " "))
349 fmt.Fprintln(w, "LOCAL_LICENSE_INSTALL_MAP +=", strings.Join(installs, " "))
355 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) {
360 moduleNames = a.androidMkForFiles(w, name, apexName, moduleDir, data)
365 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)")
366 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir)
367 fmt.Fprintln(w, "LOCAL_MODULE :=", name+a.suffix)
368 data.Entries.WriteLicenseVariables(w)
370 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES :=", strings.Join(moduleNames, " "))
372 a.writeRequiredModules(w, name)
373 fmt.Fprintln(w, "include $(BUILD_PHONY_PACKAGE)")
376 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)")
377 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir)
378 fmt.Fprintln(w, "LOCAL_MODULE :=", name+a.suffix)
379 data.Entries.WriteLicenseVariables(w)
380 fmt.Fprintln(w, "LOCAL_MODULE_CLASS := ETC") // do we need a new class?
381 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", a.outputFile.String())
382 fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", a.installDir.ToMakePath().String())
387 fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", name+stemSuffix)
388 fmt.Fprintln(w, "LOCAL_UNINSTALLABLE_MODULE :=", !a.installable())
399 fmt.Fprintln(w, name+" := "+strings.Join(value, " "))
404 …fmt.Fprintln(w, "LOCAL_OVERRIDES_MODULES :=", strings.Join(a.overridableProperties.Overrides, " "))
407 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES +=", strings.Join(moduleNames, " "))
410 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES +=", strings.Join(a.requiredDeps, " "))
412 a.writeRequiredModules(w, name)
421 fmt.Fprintln(w, "LOCAL_POST_INSTALL_CMD :=", strings.Join(postInstallCommands, " && "))
425 fmt.Fprintln(w, "LOCAL_NOTICE_FILE :=", a.mergedNotices.Merged.Path().String())
428 fmt.Fprintln(w, "include $(BUILD_PREBUILT)")
431 fmt.Fprintln(w, "ALL_MODULES.$(my_register_name).BUNDLE :=", a.bundleModuleFile.String())
434 fmt.Fprintln(w, "ALL_MODULES.$(my_register_name).LINT_REPORTS :=",
441 fmt.Fprintln(w, ".PHONY:", goal)
442 fmt.Fprintf(w, "$(call dist-for-goals,%s,%s:%s)\n",
446 fmt.Fprintf(w, dist)
452 fmt.Fprintf(w, "ifneq (,$(filter $(my_register_name),$(TARGET_BUILD_APPS)))\n"+
461 fmt.Fprintf(w, "ifneq (,$(filter $(my_register_name),$(TARGET_BUILD_APPS)))\n"+