Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 844d8f52 authored by Yuntao Xu's avatar Yuntao Xu Committed by Gerrit Code Review
Browse files

Merge "Add LOCAL_GENERATED_SOURCES to androidmk"

parents 97cffec5 68047826
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -191,6 +191,7 @@ func init() {
			// will be removed later by byfix
			// TODO: does this property matter in the license module?
			"LOCAL_LICENSE_CONDITIONS": "android_license_conditions",
			"LOCAL_GENERATED_SOURCES":  "generated_sources",
		})

	addStandardProperties(bpparser.BoolType,
+25 −0
Original line number Diff line number Diff line
@@ -1618,6 +1618,31 @@ android_app {
		name: "foo",

}
`,
	},
	{
		desc: "LOCAL_GENERATED_SOURCES",
		in: `
include $(CLEAR_VARS)
LOCAL_MODULE := foo
LOCAL_SRC_FILES := src1, src2, src3
LOCAL_GENERATED_SOURCES := gen_src1, gen_src2, gen_src3
include $(BUILD_PACKAGE)
		`,
		expected: `
android_app {
	name: "foo",
	srcs: [
		"src1,",
		"src2,",
		"src3",
	],
	generated_sources: [
		"gen_src1,",
		"gen_src2,",
		"gen_src3",
	],
}
`,
	},
}