blob: e2b01a7ff9bd62a5cf3ad1fad42191b90a454d74 [file] [log] [blame]
Dmitriy Ivanov42d5fcb2015-10-29 17:01:24 -07001#
2# Copyright (C) 2015 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# -----------------------------------------------------------------------------
18# This set of libraries are used to verify linker namespaces.
19# -----------------------------------------------------------------------------
20
21# -----------------------------------------------------------------------------
Dmitriy Ivanov42d5fcb2015-10-29 17:01:24 -070022# This set of libraries is to test isolated namespaces
23#
24# Isolated namespaces do not allow loading of the library outside of
25# the search paths.
26#
27# This library cannot be loaded in isolated namespace because one of DT_NEEDED
28# libraries is outside of the search paths.
29#
30# libnstest_root_not_isolated.so (DT_RUNPATH = $ORIGIN/../private_namespace_libs_external/)
31# +-> libnstest_public.so
32# +-> libnstest_private_external.so (located in $ORIGIN/../private_namespace_libs_external/)
33#
34# Search path: $NATIVE_TESTS/private_namespace_libs/
35# -----------------------------------------------------------------------------
36libnstest_root_not_isolated_src_files := namespaces_root.cpp
37libnstest_root_not_isolated_shared_libraries := libnstest_public libnstest_private_external
Dimitry Ivanova36e59b2016-09-01 11:37:39 -070038libnstest_root_not_isolated_relative_install_path := private_namespace_libs
Dmitriy Ivanov42d5fcb2015-10-29 17:01:24 -070039libnstest_root_not_isolated_ldflags := -Wl,--rpath,\$$ORIGIN/../private_namespace_libs_external \
40 -Wl,--enable-new-dtags
41
42module := libnstest_root_not_isolated
Dimitry Ivanova36e59b2016-09-01 11:37:39 -070043include $(LOCAL_PATH)/Android.build.testlib.target.mk
Dmitriy Ivanov42d5fcb2015-10-29 17:01:24 -070044
45libnstest_private_external_src_files := namespaces_private.cpp
Dimitry Ivanova36e59b2016-09-01 11:37:39 -070046libnstest_private_external_relative_install_path := private_namespace_libs_external
Dmitriy Ivanov42d5fcb2015-10-29 17:01:24 -070047module := libnstest_private_external
Dimitry Ivanova36e59b2016-09-01 11:37:39 -070048include $(LOCAL_PATH)/Android.build.testlib.target.mk