1# Copyright © 2016 Intel Corporation 2# Copyright © 2016 Mauro Rossi <issor.oruam@gmail.com> 3# 4# Permission is hereby granted, free of charge, to any person obtaining a 5# copy of this software and associated documentation files (the "Software"), 6# to deal in the Software without restriction, including without limitation 7# the rights to use, copy, modify, merge, publish, distribute, sublicense, 8# and/or sell copies of the Software, and to permit persons to whom the 9# Software is furnished to do so, subject to the following conditions: 10# 11# The above copyright notice and this permission notice shall be included 12# in all copies or substantial portions of the Software. 13# 14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20# DEALINGS IN THE SOFTWARE. 21 22# --------------------------------------- 23# Build libmesa_intel_common 24# --------------------------------------- 25 26include $(CLEAR_VARS) 27 28LOCAL_MODULE := libmesa_intel_common 29LOCAL_LICENSE_KINDS := SPDX-license-identifier-ISC SPDX-license-identifier-MIT legacy_by_exception_only legacy_notice 30LOCAL_LICENSE_CONDITIONS := by_exception_only notice 31LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE 32 33LOCAL_MODULE_CLASS := STATIC_LIBRARIES 34 35LOCAL_SRC_FILES := $(COMMON_FILES) 36 37LOCAL_C_INCLUDES := \ 38 external/zlib \ 39 $(MESA_TOP)/src/gallium/include \ 40 $(MESA_TOP)/src/gallium/auxiliary \ 41 $(MESA_TOP)/src/mapi \ 42 $(MESA_TOP)/src/mesa \ 43 $(call generated-sources-dir-for,STATIC_LIBRARIES,libmesa_git_sha1,,) 44 45LOCAL_SHARED_LIBRARIES := libz liblog 46 47# If Android version >=8 MESA should static link libexpat else should dynamic link 48ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 27; echo $$?), 0) 49LOCAL_STATIC_LIBRARIES := \ 50 libexpat 51else 52LOCAL_SHARED_LIBRARIES += \ 53 libexpat 54endif 55 56 57LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml 58 59include $(MESA_COMMON_MK) 60include $(BUILD_STATIC_LIBRARY) 61