diff options
author | Cherry Ng <cyng@google.com> | 2023-05-19 08:06:27 +0800 |
---|---|---|
committer | Cherry Ng <cyng@google.com> | 2023-05-21 21:08:58 +0800 |
commit | eb479b935169cd60ce4ebcd13231ce27a9627696 (patch) | |
tree | b1255735262a91c61de24b05f7ca502aee19896f | |
parent | d168b8f60c04661a3a0f19672560d527be1618b2 (diff) | |
download | camera-eb479b935169cd60ce4ebcd13231ce27a9627696.tar.gz |
Add test-only static library of lib_profiler.
Test: build & presubmit
Bug: 260807850
Change-Id: I50e90c8ca6fee3dfd0a024f54f390e69370b30fd
-rw-r--r-- | common/profiler/Android.bp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/common/profiler/Android.bp b/common/profiler/Android.bp index 990d148..4a5a0dd 100644 --- a/common/profiler/Android.bp +++ b/common/profiler/Android.bp @@ -36,9 +36,8 @@ cc_library_static { host_supported: true, } -cc_library_shared { - name: - "lib_profiler", +cc_defaults { + name: "lib_profiler_defaults", srcs: [ "profiler.cc", @@ -71,3 +70,16 @@ cc_library_shared { host_supported: true, rtti: true, } + +cc_library_shared { + name: "lib_profiler", + defaults: ["lib_profiler_defaults"], +} + +cc_test_library { + name: "lib_profiler_for_test", + defaults: ["lib_profiler_defaults"], + shared: { + enabled: false, + }, +} |