1 # Copyright (C) 2009 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 # 15 16 $(call assert-defined,_platform NDK_PLATFORMS_ROOT) 17 18 # For each platform, determine the corresponding supported ABIs 19 # And record them in NDK_PLATFORM_$(platform)_ABIS 20 # 21 _abis := $(strip $(notdir $(wildcard $(NDK_PLATFORMS_ROOT)/$(_platform)/arch-*))) 22 _abis := $(_abis:arch-%=%) 23 24 $(call ndk_log,PLATFORM $(_platform) supports: $(_abis)) 25 26 NDK_PLATFORM_$(_platform)_ABIS := $(_abis) 27 28 # Record the sysroots for each supported ABI 29 # 30 $(foreach _abi,$(_abis),\ 31 $(eval NDK_PLATFORM_$(_platform)_$(_abi)_SYSROOT := $(NDK_PLATFORMS_ROOT)/$(_platform)/arch-$(_abi))\ 32 $(call ndk_log, ABI $(_abi) sysroot is: $(NDK_PLATFORM_$(_platform)_$(_abi)_SYSROOT))\ 33 ) 34