summaryrefslogtreecommitdiff
path: root/libpagemap
diff options
context:
space:
mode:
authorDimitry Ivanov <dimitry@google.com>2016-09-15 15:01:59 -0700
committerDimitry Ivanov <dimitry@google.com>2016-09-15 15:01:59 -0700
commit72271f8e5001bb157a878ca278443d526b6d346d (patch)
treec1bb15a70e297a48b2aeadeb4fa9bff92b12fa2f /libpagemap
parent812d0a9a51201845b82426da581bfed27cb03194 (diff)
downloadextras-72271f8e5001bb157a878ca278443d526b6d346d.tar.gz
libpagemap: add static library for pagemap
Bionic unit/cts tests need use static version of libpagemap to avoid depending on internal android library. Test: mm && run pagemap_static_test Bug: http://b/22182538 Change-Id: Ic8b4e74565f77a71540e8cb2c7f9dc67f8d5e10c
Diffstat (limited to 'libpagemap')
-rw-r--r--libpagemap/Android.bp8
1 files changed, 7 insertions, 1 deletions
diff --git a/libpagemap/Android.bp b/libpagemap/Android.bp
index e8cc4af5..ae109a5c 100644
--- a/libpagemap/Android.bp
+++ b/libpagemap/Android.bp
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-cc_library_shared {
+cc_library {
name: "libpagemap",
srcs: [
"pm_kernel.c",
@@ -30,3 +30,9 @@ cc_test {
srcs: ["pagemap_test.cpp"],
shared_libs: ["libpagemap"],
}
+
+cc_test {
+ name: "pagemap_static_test",
+ srcs: ["pagemap_test.cpp"],
+ static_libs: ["libpagemap"],
+}