diff options
author | Tej Singh <singhtejinder@google.com> | 2020-01-29 15:59:35 -0800 |
---|---|---|
committer | Tej Singh <singhtejinder@google.com> | 2020-02-27 11:38:41 -0800 |
commit | eb7d8f467547a36a1f95b6795f84fae0089d6cb6 (patch) | |
tree | f0714385de906664fb4d8d421c76d719b9b60ba9 /tools | |
parent | ee47af62071c43d434c6cf06b3974ee89b7ce748 (diff) |
Make libstatssocket shared
Also make private versions of the libraries available to link statically
for tests. We should try to figure out a better long term solution.
Test: m
Test: bit statsd_test:*
Test: atest LibStatsPullTests
Test: bit libstatssocket_test:*
Test: atest GtsStatsdHostTestCases
Bug: 149340100
Change-Id: I05b91efab2a657aec75d436575aff4373f86ed3f
Diffstat (limited to 'tools')
-rw-r--r-- | tools/stats_log_api_gen/Android.bp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/stats_log_api_gen/Android.bp b/tools/stats_log_api_gen/Android.bp index d5031d7d4628..843e82023afe 100644 --- a/tools/stats_log_api_gen/Android.bp +++ b/tools/stats_log_api_gen/Android.bp @@ -121,7 +121,6 @@ cc_library { shared_libs: [ "liblog", "libcutils", - "libstatssocket", ], apex_available: [ "//apex_available:platform", @@ -129,5 +128,13 @@ cc_library { "com.android.os.statsd", "test_com.android.os.statsd", ], + target: { + android: { + shared_libs: ["libstatssocket"], + }, + host: { + static_libs: ["libstatssocket"], + }, + }, } |