• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
48endif
49
50
51LOCAL_MODULE := libigfxcmrt
52LOCAL_PROPRIETARY_MODULE := true
53
54LOCAL_LDLIBS := -lc -lva -lva-android
55LOCAL_SHARED_LIBRARIES := libc libdl libcutils liblog libutils libm libva libva-android
56
57include $(BUILD_SHARED_LIBRARY)
58