1# Copyright(c) 2018 Intel Corporation 2 3# Permission is hereby granted, free of charge, to any person obtaining a 4# copy of this software and associated documentation files(the "Software"), 5# to deal in the Software without restriction, including without limitation 6# the rights to use, copy, modify, merge, publish, distribute, sublicense, 7# and / or sell copies of the Software, and to permit persons to whom the 8# Software is furnished to do so, subject to the following conditions: 9 10# The above copyright notice and this permission notice shall be included 11# in all copies or substantial portions of the Software. 12 13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 14# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 16# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 17# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 18# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 19# OTHER DEALINGS IN THE SOFTWARE. 20 21LOCAL_PATH:= $(call my-dir) 22 23 24$(info value of CMRT_BUILD_TYPE is: $(CMRT_BUILD_TYPE)) 25$(info value of CMRT_ARCH is: $(CMRT_ARCH)) 26 27include $(CLEAR_VARS) 28 29LOCAL_SRC_FILES := \ 30@LOCAL_SRC_FILES 31 32LOCAL_C_INCLUDES += \ 33@LOCAL_C_INCLUDES 34 35LOCAL_CFLAGS += \ 36 -Wno-non-virtual-dtor \ 37 -DANDROID=1 \ 38@LOCAL_CFLAGS 39 40ifeq ($(CMRT_BUILD_TYPE), debug) 41 LOCAL_CFLAGS += \ 42 -D_DEBUG \ 43 -D__DEBUG \ 44 -O0 45else 46 LOCAL_CFLAGS += \ 47 -fno-strict-aliasing \ 48 -D_FORTIFY_SOURCE=2 49endif 50 51 52LOCAL_MODULE := libigfxcmrt 53LOCAL_PROPRIETARY_MODULE := true 54 55LOCAL_LDLIBS := -lc -lva -lva-android 56LOCAL_SHARED_LIBRARIES := libc libdl libcutils liblog libutils libm libva libva-android 57 58include $(BUILD_SHARED_LIBRARY) 59