Home | History | Annotate | Download | only in libs
      1 #
      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 # -----------------------------------------------------------------------------
     22 # 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 # -----------------------------------------------------------------------------
     36 libnstest_root_not_isolated_src_files := namespaces_root.cpp
     37 libnstest_root_not_isolated_shared_libraries := libnstest_public libnstest_private_external
     38 libnstest_root_not_isolated_relative_install_path := private_namespace_libs
     39 libnstest_root_not_isolated_ldflags := -Wl,--rpath,\$$ORIGIN/../private_namespace_libs_external \
     40                                        -Wl,--enable-new-dtags
     41 
     42 module := libnstest_root_not_isolated
     43 include $(LOCAL_PATH)/Android.build.testlib.target.mk
     44 
     45 libnstest_private_external_src_files := namespaces_private.cpp
     46 libnstest_private_external_relative_install_path := private_namespace_libs_external
     47 module := libnstest_private_external
     48 include $(LOCAL_PATH)/Android.build.testlib.target.mk
     49