diff options
| author | 2018-02-21 23:15:43 +0000 | |
|---|---|---|
| committer | 2018-02-21 23:15:43 +0000 | |
| commit | fee188b96a0b882f6acdd70f01db1726cc54b2e1 (patch) | |
| tree | ba7c5b2daafada250d1ac063ffcee429b9758375 | |
| parent | f13343eb8b2738e2812fd7bd9d5592f529e93c21 (diff) | |
| parent | cb5125d8a3a50e738e29163cf0debcb61219f70b (diff) | |
Merge "ART: Compile libctstiagent with the NDK"
| -rw-r--r-- | openjdkjvmti/Android.bp | 1 | ||||
| -rw-r--r-- | test/Android.bp | 33 |
2 files changed, 23 insertions, 11 deletions
diff --git a/openjdkjvmti/Android.bp b/openjdkjvmti/Android.bp index 1553b78f46..81b69e8c95 100644 --- a/openjdkjvmti/Android.bp +++ b/openjdkjvmti/Android.bp @@ -17,6 +17,7 @@ cc_library_headers { name: "libopenjdkjvmti_headers", host_supported: true, export_include_dirs: ["include"], + sdk_version: "current", } cc_defaults { diff --git a/test/Android.bp b/test/Android.bp index e2516bd6b5..72cdd41cfa 100644 --- a/test/Android.bp +++ b/test/Android.bp @@ -200,7 +200,11 @@ art_cc_test_library { art_cc_defaults { name: "libtiagent-base-defaults", - defaults: ["libartagent-defaults"], + defaults: [ + "art_test_defaults", + "art_defaults", + // Not derived from libartagent-defaults for NDK. + ], srcs: [ // These are the ART-independent parts. "ti-agent/agent_common.cc", @@ -274,8 +278,8 @@ art_cc_defaults { "1943-suspend-raw-monitor-wait/native_suspend_monitor.cc", "1946-list-descriptors/descriptors.cc", ], + // Use NDK-compatible headers for ctstiagent. header_libs: [ - "jni_headers", "libopenjdkjvmti_headers", ], include_dirs: ["art/test/ti-agent"], @@ -283,7 +287,10 @@ art_cc_defaults { art_cc_defaults { name: "libtiagent-defaults", - defaults: ["libtiagent-base-defaults"], + defaults: [ + "libtiagent-base-defaults", + "libartagent-defaults", + ], srcs: [ // This is to get the IsInterpreted native method. "common/stack_inspect.cc", @@ -299,9 +306,6 @@ art_cc_defaults { "1940-ddms-ext/ddm_ext.cc", "1944-sudden-exit/sudden_exit.cc", ], - shared_libs: [ - "libbase", - ], } art_cc_test_library { @@ -333,18 +337,25 @@ cc_library_static { "983-source-transform-verify/source_transform_slicer.cc", ], whole_static_libs: [ - "slicer", - "libz", // for slicer (using adler32). + "slicer_ndk", ], static_libs: [ - "libbase", + "libbase_ndk", ], - header_libs: [ + shared_libs: [ + "libz", // for slicer (using adler32). + ], + sdk_version: "current", + stl: "c++_static", + cpp_std: "c++14", + include_dirs: [ // This is needed to resolve the base/ header file in libdexfile. Unfortunately there are // many problems with how we export headers that are making doing this the 'right' way // difficult. // TODO: move those headers to art/ rather than under runtime. - "libart_runtime_headers", + "art/runtime", + // NDK headers aren't available in platform NDK builds. + "libnativehelper/include_jni", ], export_include_dirs: ["ti-agent"], } |