• Home
  • Raw
  • Download

Lines Matching refs:w

25 func (library *Library) AndroidMkHostDex(w io.Writer, name string, data android.AndroidMkData) {
27 fmt.Fprintln(w, "include $(CLEAR_VARS)")
28 fmt.Fprintln(w, "LOCAL_MODULE := "+name+"-hostdex")
29 fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true")
30 fmt.Fprintln(w, "LOCAL_MODULE_CLASS := JAVA_LIBRARIES")
32 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", library.dexJarFile.String())
34 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", library.implementationAndResourcesJar.String())
37 fmt.Fprintln(w, "LOCAL_SOONG_DEX_JAR :=", library.dexJarFile.String())
39 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", library.headerJarFile.String())
40 fmt.Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", library.implementationAndResourcesJar.String())
41 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES := "+strings.Join(data.Required, " "))
43 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES +=", strings.Join(r, " "))
45 fmt.Fprintln(w, "include $(BUILD_SYSTEM)/soong_java_prebuilt.mk")
55 func(w io.Writer, outputFile android.Path) {
61 fmt.Fprintln(w, "LOCAL_LOGTAGS_FILES :=", strings.Join(logtags, " "))
65 fmt.Fprintln(w, "LOCAL_UNINSTALLABLE_MODULE := true")
68 fmt.Fprintln(w, "LOCAL_SOONG_DEX_JAR :=", library.dexJarFile.String())
71 fmt.Fprintln(w, "LOCAL_SOONG_BUILT_INSTALLED :=", library.dexpreopter.builtInstalled)
73 fmt.Fprintln(w, "LOCAL_SDK_VERSION :=", library.sdkVersion())
74 fmt.Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", library.implementationAndResourcesJar.String())
75 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", library.headerJarFile.String())
78 …fmt.Fprintln(w, "LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR :=", library.jacocoReportClassesFile.String…
82 fmt.Fprintln(w, "LOCAL_EXPORT_SDK_LIBRARIES :=", strings.Join(library.exportedSdkLibs, " "))
86 …fmt.Fprintln(w, "LOCAL_ADDITIONAL_CHECKED_MODULE +=", strings.Join(library.additionalCheckedModule…
93 … fmt.Fprintln(w, "SOONG_FRAMEWORK_SRCS :=", strings.Join(library.compiledJavaSrcs.Strings(), " "))
94 …fmt.Fprintln(w, "SOONG_FRAMEWORK_SRCJARS :=", strings.Join(library.compiledSrcJars.Strings(), " "))
98 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) {
99 android.WriteAndroidMkData(w, data)
100 library.AndroidMkHostDex(w, name, data)
106 func testSuiteComponent(w io.Writer, test_suites []string) {
107 fmt.Fprintln(w, "LOCAL_MODULE_TAGS := tests")
109 fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=",
112 fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE := null-suite")
118 data.Extra = append(data.Extra, func(w io.Writer, outputFile android.Path) {
119 testSuiteComponent(w, j.testProperties.Test_suites)
121 fmt.Fprintln(w, "LOCAL_FULL_TEST_CONFIG :=", j.testConfig.String())
132 data.Extra = append(data.Extra, func(w io.Writer, outputFile android.Path) {
133 testSuiteComponent(w, j.testHelperLibraryProperties.Test_suites)
145 func(w io.Writer, outputFile android.Path) {
146 fmt.Fprintln(w, "LOCAL_UNINSTALLABLE_MODULE := ", !Bool(prebuilt.properties.Installable))
147 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", prebuilt.combinedClasspathFile.String())
148 fmt.Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", prebuilt.combinedClasspathFile.String())
149 fmt.Fprintln(w, "LOCAL_SDK_VERSION :=", prebuilt.sdkVersion())
161 func(w io.Writer, outputFile android.Path) {
163 fmt.Fprintln(w, "LOCAL_SOONG_DEX_JAR :=", prebuilt.dexJarFile.String())
166 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", prebuilt.dexJarFile.String())
167 fmt.Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", prebuilt.dexJarFile.String())
170 fmt.Fprintln(w, "LOCAL_SOONG_BUILT_INSTALLED :=", prebuilt.dexpreopter.builtInstalled)
183 func(w io.Writer, outputFile android.Path) {
184 fmt.Fprintln(w, "LOCAL_UNINSTALLABLE_MODULE := true")
185 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", prebuilt.classpathFile.String())
186 fmt.Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", prebuilt.classpathFile.String())
187 fmt.Fprintln(w, "LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE :=", prebuilt.exportPackage.String())
188 fmt.Fprintln(w, "LOCAL_SOONG_EXPORT_PROGUARD_FLAGS :=", prebuilt.proguardFlags.String())
189 …fmt.Fprintln(w, "LOCAL_SOONG_STATIC_LIBRARY_EXTRA_PACKAGES :=", prebuilt.extraAaptPackagesFile.Str…
190 fmt.Fprintln(w, "LOCAL_FULL_MANIFEST_FILE :=", prebuilt.manifest.String())
191 fmt.Fprintln(w, "LOCAL_SDK_VERSION :=", prebuilt.sdkVersion())
205 func(w io.Writer, outputFile android.Path) {
206 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", binary.headerJarFile.String())
207 fmt.Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", binary.implementationAndResourcesJar.String())
209 fmt.Fprintln(w, "LOCAL_SOONG_DEX_JAR :=", binary.dexJarFile.String())
212 fmt.Fprintln(w, "LOCAL_SOONG_BUILT_INSTALLED :=", binary.dexpreopter.builtInstalled)
216 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) {
217 android.WriteAndroidMkData(w, data)
219 fmt.Fprintln(w, "jar_installed_module := $(LOCAL_INSTALLED_MODULE)")
227 func(w io.Writer, outputFile android.Path) {
228 fmt.Fprintln(w, "LOCAL_STRIP_MODULE := false")
231 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) {
232 android.WriteAndroidMkData(w, data)
235 fmt.Fprintln(w, "$(LOCAL_INSTALLED_MODULE): $(jar_installed_module)")
236 fmt.Fprintln(w, "jar_installed_module :=")
248 func(w io.Writer, outputFile android.Path) {
251 fmt.Fprintln(w, "# Overridden by PRODUCT_PACKAGE_NAME_OVERRIDES")
252 fmt.Fprintln(w, "LOCAL_MODULE :=", app.installApkName)
254 fmt.Fprintln(w, "LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE :=", app.exportPackage.String())
256 fmt.Fprintln(w, "LOCAL_SOONG_DEX_JAR :=", app.dexJarFile.String())
259 fmt.Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", app.implementationAndResourcesJar.String())
262 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", app.headerJarFile.String())
265 fmt.Fprintln(w, "LOCAL_SOONG_BUNDLE :=", app.bundleFile.String())
268 … fmt.Fprintln(w, "LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR :=", app.jacocoReportClassesFile.String())
271 fmt.Fprintln(w, "LOCAL_SOONG_PROGUARD_DICT :=", app.proguardDictionary.String())
275 fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(TARGET_OUT_JAVA_LIBRARIES)")
278 fmt.Fprintln(w, "LOCAL_NO_STANDARD_LIBRARIES := true")
294 fmt.Fprintln(w, "LOCAL_SOONG_DEVICE_RRO_DIRS :=", strings.Join(deviceRRODirs.Strings(), " "))
298 fmt.Fprintln(w, "LOCAL_SOONG_PRODUCT_RRO_DIRS :=", strings.Join(productRRODirs.Strings(), " "))
302 fmt.Fprintln(w, "LOCAL_EXPORT_PACKAGE_RESOURCES := true")
305 fmt.Fprintln(w, "LOCAL_FULL_MANIFEST_FILE :=", app.manifestPath.String())
308 fmt.Fprintln(w, "LOCAL_PRIVILEGED_MODULE := true")
311 fmt.Fprintln(w, "LOCAL_CERTIFICATE :=", app.certificate.Pem.String())
313 fmt.Fprintln(w, "LOCAL_OVERRIDES_PACKAGES :=", strings.Join(overriddenPkgs, " "))
317 … fmt.Fprintln(w, "LOCAL_SOONG_JNI_LIBS_"+jniLib.target.Arch.ArchType.String(), "+=", jniLib.name)
320 fmt.Fprintln(w, "LOCAL_SOONG_BUILT_INSTALLED :=", app.dexpreopter.builtInstalled)
324 fmt.Fprintln(w, "LOCAL_SOONG_BUILT_INSTALLED +=", split.path.String()+":"+install)
344 data.Extra = append(data.Extra, func(w io.Writer, outputFile android.Path) {
345 testSuiteComponent(w, a.testProperties.Test_suites)
347 fmt.Fprintln(w, "LOCAL_FULL_TEST_CONFIG :=", a.testConfig.String())
357 data.Extra = append(data.Extra, func(w io.Writer, outputFile android.Path) {
358 testSuiteComponent(w, a.appTestHelperAppProperties.Test_suites)
367 data.Extra = append(data.Extra, func(w io.Writer, outputFile android.Path) {
369 fmt.Fprintln(w, "LOCAL_SOONG_AAR :=", a.aarFile.String())
372 fmt.Fprintln(w, "LOCAL_SOONG_PROGUARD_DICT :=", a.proguardDictionary.String())
376 fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(TARGET_OUT_JAVA_LIBRARIES)")
379 fmt.Fprintln(w, "LOCAL_NO_STANDARD_LIBRARIES := true")
382 fmt.Fprintln(w, "LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE :=", a.exportPackage.String())
383 fmt.Fprintln(w, "LOCAL_SOONG_STATIC_LIBRARY_EXTRA_PACKAGES :=", a.extraAaptPackagesFile.String())
384 fmt.Fprintln(w, "LOCAL_FULL_MANIFEST_FILE :=", a.manifestPath.String())
385 fmt.Fprintln(w, "LOCAL_SOONG_EXPORT_PROGUARD_FLAGS :=",
387 fmt.Fprintln(w, "LOCAL_UNINSTALLABLE_MODULE := true")
399 func(w io.Writer, outputFile android.Path) {
401 fmt.Fprintln(w, "LOCAL_DROIDDOC_DOC_ZIP := ", jd.docZip.String())
404 fmt.Fprintln(w, "LOCAL_DROIDDOC_STUBS_SRCJAR := ", jd.stubsSrcJar.String())
417 func(w io.Writer, outputFile android.Path) {
419 fmt.Fprintln(w, "LOCAL_DROIDDOC_DOC_ZIP := ", ddoc.Javadoc.docZip.String())
422 fmt.Fprintln(w, "LOCAL_DROIDDOC_STUBS_SRCJAR := ", ddoc.Javadoc.stubsSrcJar.String())
425 fmt.Fprintln(w, ".PHONY:", ddoc.Name()+"-check-current-api")
426 fmt.Fprintln(w, ddoc.Name()+"-check-current-api:",
429 fmt.Fprintln(w, ".PHONY: checkapi")
430 fmt.Fprintln(w, "checkapi:",
433 fmt.Fprintln(w, ".PHONY: droidcore")
434 fmt.Fprintln(w, "droidcore: checkapi")
437 fmt.Fprintln(w, ".PHONY:", ddoc.Name()+"-update-current-api")
438 fmt.Fprintln(w, ddoc.Name()+"-update-current-api:",
441 fmt.Fprintln(w, ".PHONY: update-api")
442 fmt.Fprintln(w, "update-api:",
446 fmt.Fprintln(w, ".PHONY:", ddoc.Name()+"-check-last-released-api")
447 fmt.Fprintln(w, ddoc.Name()+"-check-last-released-api:",
451 fmt.Fprintln(w, ".PHONY: checkapi")
452 fmt.Fprintln(w, "checkapi:",
455 fmt.Fprintln(w, ".PHONY: droidcore")
456 fmt.Fprintln(w, "droidcore: checkapi")
464 fmt.Fprintln(w, apiFilePrefix+"API_FILE := ", ddoc.apiFile.String())
467 fmt.Fprintln(w, apiFilePrefix+"DEX_API_FILE := ", ddoc.dexApiFile.String())
470 fmt.Fprintln(w, apiFilePrefix+"PRIVATE_API_FILE := ", ddoc.privateApiFile.String())
473 fmt.Fprintln(w, apiFilePrefix+"PRIVATE_DEX_API_FILE := ", ddoc.privateDexApiFile.String())
476 fmt.Fprintln(w, apiFilePrefix+"REMOVED_API_FILE := ", ddoc.removedApiFile.String())
479 fmt.Fprintln(w, apiFilePrefix+"REMOVED_DEX_API_FILE := ", ddoc.removedDexApiFile.String())
482 fmt.Fprintln(w, apiFilePrefix+"EXACT_API_FILE := ", ddoc.exactApiFile.String())
485 fmt.Fprintln(w, apiFilePrefix+"PROGUARD_FILE := ", ddoc.proguardFile.String())
498 func(w io.Writer, outputFile android.Path) {
500 fmt.Fprintln(w, "LOCAL_DROIDDOC_STUBS_SRCJAR := ", dstubs.Javadoc.stubsSrcJar.String())
503 fmt.Fprintln(w, "LOCAL_DROIDDOC_API_VERSIONS_XML := ", dstubs.apiVersionsXml.String())
506 fmt.Fprintln(w, "LOCAL_DROIDDOC_ANNOTATIONS_ZIP := ", dstubs.annotationsZip.String())
509 fmt.Fprintln(w, "LOCAL_DROIDDOC_JDIFF_DOC_ZIP := ", dstubs.jdiffDocZip.String())
512 fmt.Fprintln(w, ".PHONY:", dstubs.Name()+"-check-current-api")
513 fmt.Fprintln(w, dstubs.Name()+"-check-current-api:",
516 fmt.Fprintln(w, ".PHONY: checkapi")
517 fmt.Fprintln(w, "checkapi:",
520 fmt.Fprintln(w, ".PHONY: droidcore")
521 fmt.Fprintln(w, "droidcore: checkapi")
524 fmt.Fprintln(w, ".PHONY:", dstubs.Name()+"-update-current-api")
525 fmt.Fprintln(w, dstubs.Name()+"-update-current-api:",
528 fmt.Fprintln(w, ".PHONY: update-api")
529 fmt.Fprintln(w, "update-api:",
533 fmt.Fprintln(w, ".PHONY:", dstubs.Name()+"-check-last-released-api")
534 fmt.Fprintln(w, dstubs.Name()+"-check-last-released-api:",
538 fmt.Fprintln(w, ".PHONY: checkapi")
539 fmt.Fprintln(w, "checkapi:",
542 fmt.Fprintln(w, ".PHONY: droidcore")
543 fmt.Fprintln(w, "droidcore: checkapi")
547 fmt.Fprintln(w, ".PHONY:", dstubs.Name()+"-check-nullability-warnings")
548 fmt.Fprintln(w, dstubs.Name()+"-check-nullability-warnings:",
551 fmt.Fprintln(w, ".PHONY:", "droidcore")
552 fmt.Fprintln(w, "droidcore: ", dstubs.Name()+"-check-nullability-warnings")
559 fmt.Fprintln(w, apiFilePrefix+"API_FILE := ", dstubs.apiFile.String())
562 fmt.Fprintln(w, apiFilePrefix+"DEX_API_FILE := ", dstubs.dexApiFile.String())
565 fmt.Fprintln(w, apiFilePrefix+"PRIVATE_API_FILE := ", dstubs.privateApiFile.String())
568 fmt.Fprintln(w, apiFilePrefix+"PRIVATE_DEX_API_FILE := ", dstubs.privateDexApiFile.String())
571 fmt.Fprintln(w, apiFilePrefix+"REMOVED_API_FILE := ", dstubs.removedApiFile.String())
574 fmt.Fprintln(w, apiFilePrefix+"REMOVED_DEX_API_FILE := ", dstubs.removedDexApiFile.String())
577 fmt.Fprintln(w, apiFilePrefix+"EXACT_API_FILE := ", dstubs.exactApiFile.String())
590 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) {
591 fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUPPORT_FILES := "+strings.Join(testFiles, " "))