SCP uses the JNI headers in generated code, so several targets need the include path; this will have no effect on non-SCP builds. Also, in "protected" builds, there is a generated library that needs to be linked in the final binary, but this doesn't exist in the "analysis" step; we create an empty static library if it doesn't exist so it works on all cases. Merged from https://widevine-internal-review.googlesource.com/169850 Merged from https://widevine-internal-review.googlesource.com/176177 Bug: 262635528 Change-Id: Ib676d55efbcbec81de9c3123bc70afb570d6caa5 (cherry picked from commit b9482eb23c261788a4432de7566f1b1de1cf9379)
12 lines
342 B
Bash
Executable File
12 lines
342 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# During the protection step, there will be a "libscp_runtime*.a" file in the
|
|
# root directory; link it to a different folder so it can be loaded with
|
|
# cc_prebuilt_library_static. During the analysis step, it doesn't exist, so
|
|
# create a placeholder archive.
|
|
|
|
if [[ ! -e $1 ]]; then
|
|
printf '!<arch>\n' >"$1"
|
|
fi
|
|
cp "$1" "$2"
|