add i915 uapi headers

Change-Id: I8b19ebc56c5aa394758177641b2946f7fca13eff
This commit is contained in:
Artur Harasimiuk
2018-03-12 15:06:33 +01:00
committed by sys_ocldev
parent f5fed65cb4
commit 507544a999
8 changed files with 3680 additions and 20 deletions

View File

@ -29,6 +29,8 @@ set(CMAKE_CONFIGURATION_TYPES
project(igdrcl)
set(BRANCH_DIR_SUFFIX "/")
if(TR_DEPRECATED)
add_definitions(-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING=1)
endif(TR_DEPRECATED)
@ -48,7 +50,6 @@ if("${BUILD_TYPE_lower}" STREQUAL "releaseinternal")
add_definitions(-D_RELEASE_INTERNAL)
endif("${BUILD_TYPE_lower}" STREQUAL "releaseinternal")
message(STATUS "${CMAKE_BUILD_TYPE} build configuration")
# Set the runtime source directory
@ -125,10 +126,15 @@ if(NOT KMDAF_HEADERS_DIR)
endif()
endif(NOT KMDAF_HEADERS_DIR)
if(NOT LIBDRM_DIR)
get_filename_component(LIBDRM_DIR "../libdrm/" ABSOLUTE)
endif(NOT LIBDRM_DIR)
message(STATUS "libdrm dir: ${LIBDRM_DIR}")
if(LIBDRM_DIR)
get_filename_component(I915_INCLUDES_DIR "${LIBDRM_DIR}/include" ABSOLUTE)
else()
get_filename_component(I915_INCLUDES_DIR "${IGDRCL_SOURCE_DIR}/third_party/${BRANCH_DIR_SUFFIX}/uapi" ABSOLUTE)
if(NOT IS_DIRECTORY ${I915_INCLUDES_DIR})
get_filename_component(I915_INCLUDES_DIR "${IGDRCL_SOURCE_DIR}/third_party/uapi" ABSOLUTE)
endif()
endif()
message(STATUS "i915 includes dir: ${I915_INCLUDES_DIR}")
if(NOT KHRONOS_HEADERS_DIR)
get_filename_component(KHRONOS_HEADERS_DIR "../khronos/opencl21/" ABSOLUTE)
@ -434,7 +440,6 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
endif()
# Project-wide include paths
set(BRANCH_DIR_SUFFIX "/")
include_directories(${IGDRCL_SOURCE_DIR})
include_directories(${IGDRCL_BUILD_DIR})
include_directories(${IGDRCL_SOURCE_DIR}/runtime/sku_info/definitions${BRANCH_DIR_SUFFIX})