I am upgrading one of the Nougat libraries - external/v8. The changes required for upgrading are replacing the Android.mk with Android.bp. Android.bp is not fully supported in Nougat as clarified as part of this thread, I am converting the Android.bp to equivalent the Android.mk.
I am able to translate most of the part of the Android.bp but I am not aware what should be the equivalent of the following sections in Android.mk.
genrule {
name: "v8_generate_bytecode_builtins_list",
tools: ["v8_bytecode_builtins_list_generator"],
srcs: [],
cmd: "mkdir -p $(genDir)/builtins-generated/ && $(location v8_bytecode_builtins_list_generator) $(out)",
out: [
"builtins-generated/bytecodes-builtins-list.h"
],
}
Similarly the filegroup section:
filegroup {
name: "v8_init",
srcs: [
"src/init/setup-isolate-full.cc",
":v8_initializers",
]
}
Does anyone know how do I translate the sections mentioned above to Android.mk or point to some resources where I can read more on this?
Also, feel free to suggest if this is not the right approach for upgrading the external/v8 in Nougat and if there is any other way I can follow to upgrade the library from 5.8 to 8.8
Thanks!