gn2bp: Replace invalid #define for jni_registration_generator.py
Test: m cronet_aml_components_cronet_android_cronet Change-Id: Ie73be657a9ffec86a554ce793f7ca390ce3775a2
This commit is contained in:
@@ -1981,7 +1981,9 @@ genrule {
|
||||
"$(genDir)/components/cronet/android/cronet_jni_registration.h " +
|
||||
"--manual_jni_registration " +
|
||||
" " +
|
||||
"",
|
||||
" " +
|
||||
";sed -i -e 's/OUT_SOONG_.TEMP/OUT_SOONG_DOTTEMP/g' " +
|
||||
"$(genDir)/components/cronet/android/cronet_jni_registration.h",
|
||||
out: [
|
||||
"components/cronet/android/cronet_jni_registration.h",
|
||||
"components/cronet/android/cronet_jni_registration.srcjar",
|
||||
|
||||
@@ -1005,6 +1005,11 @@ def create_action_module(blueprint, target):
|
||||
"echo \\\"../$$current_dir/$$f\\\" >> $(genDir)/java.sources;",
|
||||
"done;",
|
||||
module.cmd]
|
||||
|
||||
# .h file jni_registration_generator.py generates has #define with directory name.
|
||||
# With the genrule env that contains "." which is invalid. So replace that at the end of cmd.
|
||||
commands.append(";sed -i -e 's/OUT_SOONG_.TEMP/OUT_SOONG_DOTTEMP/g' ")
|
||||
commands.append("$(genDir)/components/cronet/android/cronet_jni_registration.h")
|
||||
module.cmd = NEWLINE.join(commands)
|
||||
|
||||
blueprint.add_module(module)
|
||||
|
||||
Reference in New Issue
Block a user