Include TensorFlow LICENSE file to TFLite aars
PiperOrigin-RevId: 316781613 Change-Id: I6323349321f5b009b1511e0cec12dbaca6a8c770
This commit is contained in:
parent
89a1d3f4e9
commit
dac169cd7f
@ -52,7 +52,11 @@ EOF
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
srcs = [android_library + ".aar", name + "_dummy_app_for_so_unsigned.apk"]
|
srcs = [
|
||||||
|
android_library + ".aar",
|
||||||
|
name + "_dummy_app_for_so_unsigned.apk",
|
||||||
|
"//:LICENSE",
|
||||||
|
]
|
||||||
|
|
||||||
cmd = """
|
cmd = """
|
||||||
cp $(location {0}.aar) $(location :{1}.aar)
|
cp $(location {0}.aar) $(location :{1}.aar)
|
||||||
@ -62,6 +66,8 @@ cd $$(mktemp -d)
|
|||||||
unzip $$origdir/$(location :{1}_dummy_app_for_so_unsigned.apk) "lib/*"
|
unzip $$origdir/$(location :{1}_dummy_app_for_so_unsigned.apk) "lib/*"
|
||||||
cp -r lib jni
|
cp -r lib jni
|
||||||
zip -r $$origdir/$(location :{1}.aar) jni/*/*.so
|
zip -r $$origdir/$(location :{1}.aar) jni/*/*.so
|
||||||
|
cp $$origdir/$(location //:LICENSE) ./
|
||||||
|
zip $$origdir/$(location :{1}.aar) LICENSE
|
||||||
""".format(android_library, name)
|
""".format(android_library, name)
|
||||||
|
|
||||||
if headers:
|
if headers:
|
||||||
|
Loading…
Reference in New Issue
Block a user