Skip to content

Commit

Permalink
symbols: conditionally create symbols map (#2053)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Conte Mac Donell <[email protected]>
Signed-off-by: JP Simard <[email protected]>
  • Loading branch information
Reflejo authored and jpsim committed Nov 28, 2022
1 parent ca8904a commit 604d575
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
9 changes: 7 additions & 2 deletions mobile/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,16 @@ genrule(
set -- $(SRCS)
chmod 755 $$1
chmod 755 $$2
chmod 755 dist/*.objdump
cp $$1 dist/envoy.aar
cp $$2 dist/envoy-pom.xml
shift 2
cp $$@ dist/
mkdir -p dist/symbols
if [[ -n "$$@" ]]; then
chmod 755 $$@
cp $$@ dist/symbols
tar -cvf dist/symbols.tar dist/symbols
fi
touch $@
""",
stamp = True,
Expand Down
7 changes: 4 additions & 3 deletions mobile/library/kotlin/io/envoyproxy/envoymobile/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ android_artifacts(
android_library = ":envoy_lib",
archive_name = "envoy",
manifest = "EnvoyManifest.xml",
native_deps = [
"//library/common/jni:libenvoy_jni.so.debug_info",
],
native_deps = select({
"@envoy//bazel:opt_build": ["//library/common/jni:libenvoy_jni.so.debug_info"],
"//conditions:default": ["//library/common/jni:libenvoy_jni.so"],
}),
proguard_rules = "//library:proguard_rules",
visibility = ["//visibility:public"],
)
Expand Down

0 comments on commit 604d575

Please sign in to comment.