xref: /aosp_15_r20/external/gmmlib/Source/GmmLib/CMakeLists.txt (revision 35ffd701415c9e32e53136d61a677a8d0a8fc4a5)
1*35ffd701SAndroid Build Coastguard Worker
2*35ffd701SAndroid Build Coastguard Worker# Copyright(c) 2017 Intel Corporation
3*35ffd701SAndroid Build Coastguard Worker
4*35ffd701SAndroid Build Coastguard Worker# Permission is hereby granted, free of charge, to any person obtaining a
5*35ffd701SAndroid Build Coastguard Worker# copy of this software and associated documentation files(the "Software"),
6*35ffd701SAndroid Build Coastguard Worker# to deal in the Software without restriction, including without limitation
7*35ffd701SAndroid Build Coastguard Worker# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*35ffd701SAndroid Build Coastguard Worker# and / or sell copies of the Software, and to permit persons to whom the
9*35ffd701SAndroid Build Coastguard Worker# Software is furnished to do so, subject to the following conditions:
10*35ffd701SAndroid Build Coastguard Worker
11*35ffd701SAndroid Build Coastguard Worker# The above copyright notice and this permission notice shall be included
12*35ffd701SAndroid Build Coastguard Worker# in all copies or substantial portions of the Software.
13*35ffd701SAndroid Build Coastguard Worker
14*35ffd701SAndroid Build Coastguard Worker# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15*35ffd701SAndroid Build Coastguard Worker# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*35ffd701SAndroid Build Coastguard Worker# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17*35ffd701SAndroid Build Coastguard Worker# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18*35ffd701SAndroid Build Coastguard Worker# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19*35ffd701SAndroid Build Coastguard Worker# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20*35ffd701SAndroid Build Coastguard Worker# OTHER DEALINGS IN THE SOFTWARE.
21*35ffd701SAndroid Build Coastguard Worker
22*35ffd701SAndroid Build Coastguard Worker
23*35ffd701SAndroid Build Coastguard Workercmake_minimum_required(VERSION 3.5)
24*35ffd701SAndroid Build Coastguard Workerproject(igfx_gmmumd)
25*35ffd701SAndroid Build Coastguard Worker
26*35ffd701SAndroid Build Coastguard Worker# GmmLib Api Version used for so naming
27*35ffd701SAndroid Build Coastguard Workerset(GMMLIB_API_MAJOR_VERSION 12)
28*35ffd701SAndroid Build Coastguard Workerset(GMMLIB_API_MINOR_VERSION 5)
29*35ffd701SAndroid Build Coastguard Worker
30*35ffd701SAndroid Build Coastguard Workerif(NOT DEFINED MAJOR_VERSION)
31*35ffd701SAndroid Build Coastguard Worker	set(MAJOR_VERSION 12)
32*35ffd701SAndroid Build Coastguard Workerendif()
33*35ffd701SAndroid Build Coastguard Worker
34*35ffd701SAndroid Build Coastguard Workerif(NOT DEFINED MINOR_VERSION)
35*35ffd701SAndroid Build Coastguard Worker	set(MINOR_VERSION 5)
36*35ffd701SAndroid Build Coastguard Workerendif()
37*35ffd701SAndroid Build Coastguard Worker
38*35ffd701SAndroid Build Coastguard Workerif(NOT DEFINED PATCH_VERSION)
39*35ffd701SAndroid Build Coastguard Worker	set(PATCH_VERSION 0)
40*35ffd701SAndroid Build Coastguard Workerendif()
41*35ffd701SAndroid Build Coastguard Worker
42*35ffd701SAndroid Build Coastguard Workerif(NOT DEFINED GMMLIB_API_PATCH_VERSION)
43*35ffd701SAndroid Build Coastguard Worker    set(GMMLIB_API_PATCH_VERSION ${PATCH_VERSION})
44*35ffd701SAndroid Build Coastguard Workerendif()
45*35ffd701SAndroid Build Coastguard Worker
46*35ffd701SAndroid Build Coastguard Worker# The Gmmlib dll is generated as libigdgmm.so.<x>.<y>.<z> where,
47*35ffd701SAndroid Build Coastguard Worker# <x> = GMMLIB_API_MAJOR_VERSION
48*35ffd701SAndroid Build Coastguard Worker# <y> = GMMLIB_API_MINOR_VERSION
49*35ffd701SAndroid Build Coastguard Worker# <z> = GMMLIB_API_PATCH_VERSION
50*35ffd701SAndroid Build Coastguard Worker#
51*35ffd701SAndroid Build Coastguard Worker# Example: libigdgmm.so.12.0.0
52*35ffd701SAndroid Build Coastguard Worker# 12 = GMMLIB_API_MAJOR_VERSION
53*35ffd701SAndroid Build Coastguard Worker# 0  = GMMLIB_API_MINOR_VERSION
54*35ffd701SAndroid Build Coastguard Worker# 0  = GMMLIB_API_PATCH_VERSION
55*35ffd701SAndroid Build Coastguard Worker#
56*35ffd701SAndroid Build Coastguard Worker# Library version update
57*35ffd701SAndroid Build Coastguard Worker# - increment major for any ABI change
58*35ffd701SAndroid Build Coastguard Worker# - increment minor for any interface change (e.g. new/modified function)
59*35ffd701SAndroid Build Coastguard Worker#
60*35ffd701SAndroid Build Coastguard Worker# Example:
61*35ffd701SAndroid Build Coastguard Worker# On potential ABI break changes
62*35ffd701SAndroid Build Coastguard Worker#
63*35ffd701SAndroid Build Coastguard Worker# libigdgmm.so.<GMMLIB_API_MAJOR_VERSION>.y.z becomes libigdgmm.so.<GMMLIB_API_MAJOR_VERSION + 1>.0.0
64*35ffd701SAndroid Build Coastguard Worker# i.e libigdgmm.so.12.5.0 becomes libigdgmm.so.13.0.0
65*35ffd701SAndroid Build Coastguard Worker
66*35ffd701SAndroid Build Coastguard Workermessage(STATUS "API version: ${GMMLIB_API_MAJOR_VERSION}.${GMMLIB_API_MINOR_VERSION}.${GMMLIB_API_PATCH_VERSION}")
67*35ffd701SAndroid Build Coastguard Workermessage(STATUS "Package version: ${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
68*35ffd701SAndroid Build Coastguard Worker
69*35ffd701SAndroid Build Coastguard Workerif(NOT DEFINED BS_USE_OSDM_BUILD_SYSTEM)
70*35ffd701SAndroid Build Coastguard Worker    if(DEFINED ENV{BS_USE_OSDM_BUILD_SYSTEM})
71*35ffd701SAndroid Build Coastguard Worker        set(BS_USE_OSDM_BUILD_SYSTEM "$ENV{BS_USE_OSDM_BUILD_SYSTEM}")
72*35ffd701SAndroid Build Coastguard Worker    else()
73*35ffd701SAndroid Build Coastguard Worker        set(BS_USE_OSDM_BUILD_SYSTEM FALSE)
74*35ffd701SAndroid Build Coastguard Worker    endif()
75*35ffd701SAndroid Build Coastguard Workerendif()
76*35ffd701SAndroid Build Coastguard Worker
77*35ffd701SAndroid Build Coastguard Worker# begin -- label bldsys file prologue
78*35ffd701SAndroid Build Coastguard Worker# WARNING: The "project" statement triggers reading of CMAKE_TOOLCHAIN_FILE
79*35ffd701SAndroid Build Coastguard Worker#   and so must precede the inclusion below of bs_init.cmake .
80*35ffd701SAndroid Build Coastguard Workerfunction(bs_find_build_system gfx_dev_dir build_sys_dir build_sys_inc)
81*35ffd701SAndroid Build Coastguard Worker    # If we are not building as a standalone project
82*35ffd701SAndroid Build Coastguard Worker    if(DEFINED GFX_DEVELOPMENT_DIR)
83*35ffd701SAndroid Build Coastguard Worker        set(_bs_gfx_development_dir "${GFX_DEVELOPMENT_DIR}")
84*35ffd701SAndroid Build Coastguard Worker    elseif(DEFINED ENV{GFX_DEVELOPMENT_DIR})
85*35ffd701SAndroid Build Coastguard Worker        set(_bs_gfx_development_dir "$ENV{GFX_DEVELOPMENT_DIR}")
86*35ffd701SAndroid Build Coastguard Worker    else()
87*35ffd701SAndroid Build Coastguard Worker        get_filename_component(_bs_cur_cmake_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
88*35ffd701SAndroid Build Coastguard Worker        get_filename_component(_bs_parent_dir "${_bs_cur_cmake_dir}" DIRECTORY)
89*35ffd701SAndroid Build Coastguard Worker        set(_bs_gfx_dir_found false)
90*35ffd701SAndroid Build Coastguard Worker        while(NOT _bs_gfx_dir_found)
91*35ffd701SAndroid Build Coastguard Worker            set(_bs_bldsys_dir "${_bs_parent_dir}/Tools/bldsys")
92*35ffd701SAndroid Build Coastguard Worker            if(EXISTS ${_bs_bldsys_dir})
93*35ffd701SAndroid Build Coastguard Worker                set(_bs_gfx_development_dir ${_bs_parent_dir})
94*35ffd701SAndroid Build Coastguard Worker                set(_bs_gfx_dir_found true)
95*35ffd701SAndroid Build Coastguard Worker                break()
96*35ffd701SAndroid Build Coastguard Worker            endif()
97*35ffd701SAndroid Build Coastguard Worker            get_filename_component(_bs_parent_dir "${_bs_parent_dir}" DIRECTORY)
98*35ffd701SAndroid Build Coastguard Worker            if(${_bs_parent_dir} STREQUAL "/")
99*35ffd701SAndroid Build Coastguard Worker                break()
100*35ffd701SAndroid Build Coastguard Worker            endif()
101*35ffd701SAndroid Build Coastguard Worker        endwhile(NOT _bs_gfx_dir_found)
102*35ffd701SAndroid Build Coastguard Worker        if (NOT _bs_gfx_development_dir)
103*35ffd701SAndroid Build Coastguard Worker            message(FATAL_ERROR "GFX_DEVELOPMENT_DIR not found (${_bs_gfx_development_dir}) - exiting!")
104*35ffd701SAndroid Build Coastguard Worker            exit(1)
105*35ffd701SAndroid Build Coastguard Worker        endif()
106*35ffd701SAndroid Build Coastguard Worker    endif()
107*35ffd701SAndroid Build Coastguard Worker    set(${gfx_dev_dir} "${_bs_gfx_development_dir}" PARENT_SCOPE)
108*35ffd701SAndroid Build Coastguard Worker    set(${build_sys_dir} "${_bs_gfx_development_dir}/Tools/bldsys" PARENT_SCOPE)
109*35ffd701SAndroid Build Coastguard Worker    set(${build_sys_inc} "${_bs_gfx_development_dir}/Tools/bldsys/include" PARENT_SCOPE)
110*35ffd701SAndroid Build Coastguard Workerendfunction(bs_find_build_system)
111*35ffd701SAndroid Build Coastguard Worker
112*35ffd701SAndroid Build Coastguard Workerbs_find_build_system(GFX_DEVELOPMENT_DIR BUILD_SYS_DIR BUILD_SYS_INC)
113*35ffd701SAndroid Build Coastguard Worker
114*35ffd701SAndroid Build Coastguard Workerinclude(${BUILD_SYS_DIR}/bs_init.cmake)
115*35ffd701SAndroid Build Coastguard Workerinclude(${BUILD_SYS_INC}/bs_dir_names.cmake)
116*35ffd701SAndroid Build Coastguard Worker# file prologue done
117*35ffd701SAndroid Build Coastguard Worker
118*35ffd701SAndroid Build Coastguard Worker
119*35ffd701SAndroid Build Coastguard Workerset(CMAKE_DISABLE_SOURCE_CHANGES ON)
120*35ffd701SAndroid Build Coastguard Workerset(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
121*35ffd701SAndroid Build Coastguard Worker
122*35ffd701SAndroid Build Coastguard Worker################################################################################
123*35ffd701SAndroid Build Coastguard Worker# Define GMM_DLL Target
124*35ffd701SAndroid Build Coastguard Worker################################################################################
125*35ffd701SAndroid Build Coastguard Workerset (GMM_LIB_DLL_NAME igfx_gmmumd_dll)
126*35ffd701SAndroid Build Coastguard Worker
127*35ffd701SAndroid Build Coastguard Workermacro(GmmLibSetTargetConfig libTarget)
128*35ffd701SAndroid Build Coastguard Worker    if(TARGET ${libTarget})
129*35ffd701SAndroid Build Coastguard Worker        set_property(TARGET ${libTarget} APPEND PROPERTY COMPILE_DEFINITIONS
130*35ffd701SAndroid Build Coastguard Worker           $<$<CONFIG:Release>: _RELEASE>
131*35ffd701SAndroid Build Coastguard Worker           $<$<CONFIG:ReleaseInternal>: _RELEASE_INTERNAL>
132*35ffd701SAndroid Build Coastguard Worker           $<$<CONFIG:Debug>: _DEBUG>
133*35ffd701SAndroid Build Coastguard Worker           )
134*35ffd701SAndroid Build Coastguard Worker    endif()
135*35ffd701SAndroid Build Coastguard Workerendmacro()
136*35ffd701SAndroid Build Coastguard Worker
137*35ffd701SAndroid Build Coastguard Workerif(CMAKE_CONFIGURATION_TYPES)
138*35ffd701SAndroid Build Coastguard Worker  set( CMAKE_CONFIGURATION_TYPES
139*35ffd701SAndroid Build Coastguard Worker      "Debug"
140*35ffd701SAndroid Build Coastguard Worker      "Release"
141*35ffd701SAndroid Build Coastguard Worker      "ReleaseInternal")
142*35ffd701SAndroid Build Coastguard Worker
143*35ffd701SAndroid Build Coastguard Worker  set( CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING
144*35ffd701SAndroid Build Coastguard Worker       "Reset the configurations to what we need"
145*35ffd701SAndroid Build Coastguard Worker       FORCE)
146*35ffd701SAndroid Build Coastguard Workerelse()
147*35ffd701SAndroid Build Coastguard Worker  if("${BUILD_TYPE}" STREQUAL "release")
148*35ffd701SAndroid Build Coastguard Worker     set(CMAKE_BUILD_TYPE "Release")
149*35ffd701SAndroid Build Coastguard Worker  elseif("${BUILD_TYPE}" STREQUAL "release-internal")
150*35ffd701SAndroid Build Coastguard Worker    set(CMAKE_BUILD_TYPE "ReleaseInternal")
151*35ffd701SAndroid Build Coastguard Worker  elseif("${BUILD_TYPE}" STREQUAL "debug")
152*35ffd701SAndroid Build Coastguard Worker    set(CMAKE_BUILD_TYPE "Debug")
153*35ffd701SAndroid Build Coastguard Worker  elseif("${BUILD_TYPE}" STREQUAL "RelWithDebInfo")
154*35ffd701SAndroid Build Coastguard Worker    set(CMAKE_BUILD_TYPE "RelWithDebInfo")
155*35ffd701SAndroid Build Coastguard Worker  elseif("${BUILD_TYPE}" STREQUAL "MinSizeRel")
156*35ffd701SAndroid Build Coastguard Worker    set(CMAKE_BUILD_TYPE "MinSizeRel")
157*35ffd701SAndroid Build Coastguard Worker  endif()
158*35ffd701SAndroid Build Coastguard Worker
159*35ffd701SAndroid Build Coastguard Workerendif()
160*35ffd701SAndroid Build Coastguard Worker
161*35ffd701SAndroid Build Coastguard Workerset(GMMLIB_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
162*35ffd701SAndroid Build Coastguard Workerif(CMAKE_SIZEOF_VOID_P EQUAL 8)
163*35ffd701SAndroid Build Coastguard Worker    set (GMMLIB_ARCH "64")
164*35ffd701SAndroid Build Coastguard Workerelse()
165*35ffd701SAndroid Build Coastguard Worker    set (GMMLIB_ARCH "32")
166*35ffd701SAndroid Build Coastguard Workerendif()
167*35ffd701SAndroid Build Coastguard Worker
168*35ffd701SAndroid Build Coastguard Workerif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^aarch")
169*35ffd701SAndroid Build Coastguard Worker    set(GMMLIB_MARCH "armv8-a+fp+simd")
170*35ffd701SAndroid Build Coastguard Workerelseif("${GMMLIB_MARCH}" STREQUAL "")
171*35ffd701SAndroid Build Coastguard Worker    set(GMMLIB_MARCH "corei7")
172*35ffd701SAndroid Build Coastguard Workerendif()
173*35ffd701SAndroid Build Coastguard Worker
174*35ffd701SAndroid Build Coastguard WorkerMESSAGE("platform: ${CMAKE_HOST_SYSTEM_NAME}")
175*35ffd701SAndroid Build Coastguard WorkerMESSAGE("source_dir: ${BS_DIR_GMMLIB}")
176*35ffd701SAndroid Build Coastguard WorkerMESSAGE("arch: ${GMMLIB_ARCH}")
177*35ffd701SAndroid Build Coastguard WorkerMESSAGE("build type: ${CMAKE_BUILD_TYPE}")
178*35ffd701SAndroid Build Coastguard WorkerMESSAGE("SourceConfiguration:")
179*35ffd701SAndroid Build Coastguard WorkerMESSAGE("CommonDir: ${BS_DIR_COMMON}")
180*35ffd701SAndroid Build Coastguard WorkerMESSAGE("IncDir: ${BS_DIR_INC}")
181*35ffd701SAndroid Build Coastguard Worker
182*35ffd701SAndroid Build Coastguard Worker# If '-DGMM_DYNAMIC_MOCS_TABLE=TRUE' (default is FALSE) passed to cmake
183*35ffd701SAndroid Build Coastguard Worker# configure command gmmlib will generate MOCS table dynamically depending on
184*35ffd701SAndroid Build Coastguard Worker# usage requests (Gen9). In this case on Linux user responsibility is to
185*35ffd701SAndroid Build Coastguard Worker# make sure that generated MOCS table is programmed on KMD level.
186*35ffd701SAndroid Build Coastguard Workerif (GMM_DYNAMIC_MOCS_TABLE)
187*35ffd701SAndroid Build Coastguard Worker    MESSAGE("MOCS table: Dynamic")
188*35ffd701SAndroid Build Coastguard Worker    add_definitions(-DGMM_DYNAMIC_MOCS_TABLE)
189*35ffd701SAndroid Build Coastguard Workerelse()
190*35ffd701SAndroid Build Coastguard Worker    MESSAGE("MOCS table: Static")
191*35ffd701SAndroid Build Coastguard Workerendif()
192*35ffd701SAndroid Build Coastguard Worker
193*35ffd701SAndroid Build Coastguard Workerif(DEFINED UFO_DRIVER_OPTIMIZATION_LEVEL)
194*35ffd701SAndroid Build Coastguard Worker    if(${UFO_DRIVER_OPTIMIZATION_LEVEL} GREATER 0)
195*35ffd701SAndroid Build Coastguard Worker        add_definitions(-DGMM_GFX_GEN=${GFXGEN})
196*35ffd701SAndroid Build Coastguard Worker    endif()
197*35ffd701SAndroid Build Coastguard Workerendif()
198*35ffd701SAndroid Build Coastguard Worker
199*35ffd701SAndroid Build Coastguard Workerset(HEADERS_
200*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/CachePolicy/GmmCachePolicyConditionals.h
201*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/CachePolicy/GmmCachePolicyResourceUsageDefinitions.h
202*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/CachePolicy/GmmCachePolicyUndefineConditionals.h
203*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/CachePolicy/GmmGen10CachePolicy.h
204*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/CachePolicy/GmmGen11CachePolicy.h
205*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/CachePolicy/GmmGen12CachePolicy.h
206*35ffd701SAndroid Build Coastguard Worker        ${BS_DIR_GMMLIB}/CachePolicy/GmmXe_LPGCachePolicy.h
207*35ffd701SAndroid Build Coastguard Worker        ${BS_DIR_GMMLIB}/CachePolicy/GmmXe2_LPGCachePolicy.h
208*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/CachePolicy/GmmGen12dGPUCachePolicy.h
209*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/CachePolicy/GmmGen8CachePolicy.h
210*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/CachePolicy/GmmGen9CachePolicy.h
211*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen10.h
212*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen11.h
213*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen12.h
214*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyXe_LPG.h
215*35ffd701SAndroid Build Coastguard Worker        ${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyXe2_LPG.h
216*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen12dGPU.h
217*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen8.h
218*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen9.h
219*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmCachePolicy.h
220*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmCachePolicyCommon.h
221*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmCachePolicyExt.h
222*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmCommonExt.h
223*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmConst.h
224*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmDebug.h
225*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmFormatTable.h
226*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmHw.h
227*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmInfo.h
228*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmInfoExt.h
229*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmInternal.h
230*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmMemAllocator.hpp
231*35ffd701SAndroid Build Coastguard Worker
232*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmPlatformExt.h
233*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmProto.h
234*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmResourceFlags.h
235*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmResourceInfo.h
236*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmResourceInfoCommon.h
237*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmResourceInfoExt.h
238*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmTextureExt.h
239*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmUtil.h
240*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Linux/GmmResourceInfoLin.h
241*35ffd701SAndroid Build Coastguard Worker        ${BS_DIR_GMMLIB}/inc/External/Linux/GmmResourceInfoLinExt.h
242*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Platform/GmmGen10Platform.h
243*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Platform/GmmGen11Platform.h
244*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Platform/GmmGen12Platform.h
245*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Platform/GmmGen8Platform.h
246*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Platform/GmmGen9Platform.h
247*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen10TextureCalc.h
248*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen11TextureCalc.h
249*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen12TextureCalc.h
250*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmXe_LPGTextureCalc.h
251*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen7TextureCalc.h
252*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen8TextureCalc.h
253*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen9TextureCalc.h
254*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmTextureCalc.h
255*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/GmmCommonInt.h
256*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/GmmLibInc.h
257*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/GmmLib.h
258*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/Internal/Common/GmmLogger.h
259*35ffd701SAndroid Build Coastguard Worker)
260*35ffd701SAndroid Build Coastguard Worker
261*35ffd701SAndroid Build Coastguard Workerset(UMD_HEADERS
262*35ffd701SAndroid Build Coastguard Worker	${HEADERS_}
263*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmPageTableMgr.h
264*35ffd701SAndroid Build Coastguard Worker	${BS_DIR_GMMLIB}/inc/External/Common/GmmClientContext.h
265*35ffd701SAndroid Build Coastguard Worker        ${BS_DIR_GMMLIB}/inc/External/Common/GmmLibDll.h
266*35ffd701SAndroid Build Coastguard Worker        ${BS_DIR_GMMLIB}/inc/External/Common/GmmLibDllName.h
267*35ffd701SAndroid Build Coastguard Worker	)
268*35ffd701SAndroid Build Coastguard Worker
269*35ffd701SAndroid Build Coastguard Worker
270*35ffd701SAndroid Build Coastguard Workerset(SOURCES_
271*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_COMMON}/AssertTracer/AssertTracer.cpp
272*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/CachePolicy/GmmCachePolicy.cpp
273*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/CachePolicy/GmmCachePolicyCommon.cpp
274*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/CachePolicy/GmmGen8CachePolicy.cpp
275*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/CachePolicy/GmmGen9CachePolicy.cpp
276*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/CachePolicy/GmmGen10CachePolicy.cpp
277*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/CachePolicy/GmmGen11CachePolicy.cpp
278*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/CachePolicy/GmmGen12CachePolicy.cpp
279*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/CachePolicy/GmmXe_LPGCachePolicy.cpp
280*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/CachePolicy/GmmXe2_LPGCachePolicy.cpp
281*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/CachePolicy/GmmGen12dGPUCachePolicy.cpp
282*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Platform/GmmGen11Platform.cpp
283*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Platform/GmmGen12Platform.cpp
284*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Platform/GmmGen8Platform.cpp
285*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Platform/GmmGen9Platform.cpp
286*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Platform/GmmGen10Platform.cpp
287*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Platform/GmmPlatform.cpp
288*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Resource/GmmResourceInfo.cpp
289*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Resource/GmmResourceInfoCommon.cpp
290*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Resource/GmmResourceInfoCommonEx.cpp
291*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Resource/GmmRestrictions.cpp
292*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Resource/Linux/GmmResourceInfoLinCWrapper.cpp
293*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture/GmmGen7Texture.cpp
294*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture/GmmGen8Texture.cpp
295*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture/GmmGen9Texture.cpp
296*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture/GmmGen10Texture.cpp
297*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture/GmmGen11Texture.cpp
298*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture/GmmGen12Texture.cpp
299*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture/GmmXe_LPGTexture.cpp
300*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture/GmmTexture.cpp
301*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture/GmmTextureAlloc.cpp
302*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture/GmmTextureSpecialCases.cpp
303*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture/GmmTextureOffset.cpp
304*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/GlobalInfo/GmmInfo.cpp
305*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Utility/CpuSwizzleBlt/CpuSwizzleBlt.c
306*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Utility/GmmLog/GmmLog.cpp
307*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Utility/GmmUtility.cpp
308*35ffd701SAndroid Build Coastguard Worker)
309*35ffd701SAndroid Build Coastguard Worker
310*35ffd701SAndroid Build Coastguard Workerset(UMD_SOURCES
311*35ffd701SAndroid Build Coastguard Worker  ${SOURCES_}
312*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/TranslationTable/GmmAuxTable.cpp
313*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/TranslationTable/GmmPageTableMgr.cpp
314*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/TranslationTable/GmmUmdTranslationTable.cpp
315*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/GlobalInfo/GmmClientContext.cpp
316*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/GlobalInfo/GmmLibDllMain.cpp
317*35ffd701SAndroid Build Coastguard Worker  )
318*35ffd701SAndroid Build Coastguard Worker
319*35ffd701SAndroid Build Coastguard Workersource_group("Source Files\\Cache Policy\\Client Files" FILES
320*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/CachePolicy/GmmCachePolicyResourceUsageDefinitions.h
321*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/CachePolicy/GmmGen10CachePolicy.h
322*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/CachePolicy/GmmGen11CachePolicy.h
323*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/CachePolicy/GmmGen12CachePolicy.h
324*35ffd701SAndroid Build Coastguard Worker                        ${BS_DIR_GMMLIB}/CachePolicy/GmmXe_LPGCachePolicy.h
325*35ffd701SAndroid Build Coastguard Worker                        ${BS_DIR_GMMLIB}/CachePolicy/GmmXe2_LPGCachePolicy.h
326*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/CachePolicy/GmmGen12dGPUCachePolicy.h
327*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/CachePolicy/GmmGen8CachePolicy.h
328*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/CachePolicy/GmmGen9CachePolicy.h
329*35ffd701SAndroid Build Coastguard Worker			)
330*35ffd701SAndroid Build Coastguard Worker
331*35ffd701SAndroid Build Coastguard Workersource_group("Source Files\\Cache Policy" ${BS_DIR_GMMLIB}/CachePolicy/*.cpp)
332*35ffd701SAndroid Build Coastguard Workersource_group("Source Files\\Global" ${BS_DIR_GMMLIB}/GlobalInfo/.*)
333*35ffd701SAndroid Build Coastguard Workersource_group("Source Files\\Platform" ${BS_DIR_GMMLIB}/Platform/.*)
334*35ffd701SAndroid Build Coastguard Workersource_group("Source Files\\Texture" ${BS_DIR_GMMLIB}/Texture/.*)
335*35ffd701SAndroid Build Coastguard Workersource_group("Source Files\\Translation Table" ${BS_DIR_GMMLIB}/TranslationTable/.*)
336*35ffd701SAndroid Build Coastguard Workersource_group("Source Files\\Utility" ${BS_DIR_GMMLIB}/Utility/.*)
337*35ffd701SAndroid Build Coastguard Worker
338*35ffd701SAndroid Build Coastguard Workersource_group("Source Files\\Resource" FILES
339*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/Resource/GmmResourceInfo.cpp
340*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/Resource/GmmResourceInfoCommon.cpp
341*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/Resource/GmmResourceInfoCommonEx.cpp
342*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/Resource/GmmRestrictions.cpp)
343*35ffd701SAndroid Build Coastguard Worker
344*35ffd701SAndroid Build Coastguard Workersource_group("Source Files\\Resource\\Linux" FILES
345*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/Resource/Linux/GmmResourceInfoLinCWrapper.cpp
346*35ffd701SAndroid Build Coastguard Worker			)
347*35ffd701SAndroid Build Coastguard Worker
348*35ffd701SAndroid Build Coastguard Workersource_group("Source Files\\TranslationTable\\Windows" FILES
349*35ffd701SAndroid Build Coastguard Worker			 ${BS_DIR_GMMLIB}/TranslationTable/GmmAuxTable.cpp
350*35ffd701SAndroid Build Coastguard Worker			 ${BS_DIR_GMMLIB}/TranslationTable/GmmPageTableMgr.cpp
351*35ffd701SAndroid Build Coastguard Worker			 ${BS_DIR_GMMLIB}/TranslationTable/GmmUmdTranslationTable.cpp)
352*35ffd701SAndroid Build Coastguard Worker
353*35ffd701SAndroid Build Coastguard Workersource_group("Source Files\\TranslationTable" FILES
354*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/TranslationTable/GmmUmdTranslationTable.h)
355*35ffd701SAndroid Build Coastguard Worker
356*35ffd701SAndroid Build Coastguard Workersource_group("Header Files\\External\\Common" FILES
357*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmCachePolicy.h
358*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmCachePolicyCommon.h
359*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmCachePolicyExt.h
360*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmCommonExt.h
361*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmConst.h
362*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmDebug.h
363*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmFormatTable.h
364*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmHw.h
365*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmInfo.h
366*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmInfoExt.h
367*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmInternal.h
368*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmMemAllocator.hpp
369*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmPageTableMgr.h
370*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmPlatformExt.h
371*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmResourceFlags.h
372*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmResourceInfo.h
373*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmResourceInfoCommon.h
374*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmResourceInfoExt.h
375*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmTextureExt.h
376*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmUtil.h
377*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/GmmClientContext.h
378*35ffd701SAndroid Build Coastguard Worker			)
379*35ffd701SAndroid Build Coastguard Worker
380*35ffd701SAndroid Build Coastguard Workersource_group("Header Files" FILES
381*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/GmmLib.h
382*35ffd701SAndroid Build Coastguard Worker			)
383*35ffd701SAndroid Build Coastguard Worker
384*35ffd701SAndroid Build Coastguard Workersource_group("Header Files\\External\\Common\\Cache Policy" FILES
385*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen10.h
386*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen11.h
387*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen12.h
388*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyXe_LPG.h
389*35ffd701SAndroid Build Coastguard Worker                        ${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyXe2_LPG.h
390*35ffd701SAndroid Build Coastguard Worker                        ${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen12dGPU.h
391*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen8.h
392*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/External/Common/CachePolicy/GmmCachePolicyGen9.h
393*35ffd701SAndroid Build Coastguard Worker			)
394*35ffd701SAndroid Build Coastguard Worker
395*35ffd701SAndroid Build Coastguard Workersource_group("Header Files\\External\\Linux" FILES
396*35ffd701SAndroid Build Coastguard Worker			 ${BS_DIR_GMMLIB}/inc/External/Linux/GmmResourceInfoLin.h
397*35ffd701SAndroid Build Coastguard Worker			 ${BS_DIR_GMMLIB}/inc/External/Linux/GmmResourceInfoLinExt.h
398*35ffd701SAndroid Build Coastguard Worker			)
399*35ffd701SAndroid Build Coastguard Worker
400*35ffd701SAndroid Build Coastguard Workersource_group("Header Files\\Internal\\Common" FILES
401*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/GmmLibInc.h
402*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/GmmProto.h
403*35ffd701SAndroid Build Coastguard Worker			)
404*35ffd701SAndroid Build Coastguard Worker
405*35ffd701SAndroid Build Coastguard Workersource_group("Header Files\\Internal\\Common\\Platform" FILES
406*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Platform/GmmGen10Platform.h
407*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Platform/GmmGen11Platform.h
408*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Platform/GmmGen12Platform.h
409*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Platform/GmmGen8Platform.h
410*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Platform/GmmGen9Platform.h
411*35ffd701SAndroid Build Coastguard Worker			)
412*35ffd701SAndroid Build Coastguard Worker
413*35ffd701SAndroid Build Coastguard Workersource_group("Header Files\\Internal\\Common\\Texture" FILES
414*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen10TextureCalc.h
415*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen11TextureCalc.h
416*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen12TextureCalc.h
417*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmXe_LPGTextureCalc.h
418*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen7TextureCalc.h
419*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen8TextureCalc.h
420*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmGen9TextureCalc.h
421*35ffd701SAndroid Build Coastguard Worker			${BS_DIR_GMMLIB}/inc/Internal/Common/Texture/GmmTextureCalc.h
422*35ffd701SAndroid Build Coastguard Worker			)
423*35ffd701SAndroid Build Coastguard Worker
424*35ffd701SAndroid Build Coastguard Workerinclude_directories(BEFORE ${BS_DIR_GMMLIB}/)
425*35ffd701SAndroid Build Coastguard Worker
426*35ffd701SAndroid Build Coastguard Workerinclude_directories(BEFORE ${PROJECT_SOURCE_DIR})
427*35ffd701SAndroid Build Coastguard Worker
428*35ffd701SAndroid Build Coastguard Worker
429*35ffd701SAndroid Build Coastguard Worker  include_directories(
430*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}
431*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Utility/GmmLog
432*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/inc
433*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Utility
434*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/GlobalInfo
435*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Texture
436*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Resource
437*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_GMMLIB}/Platform
438*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_UTIL}
439*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_INC}
440*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_INC}/common
441*35ffd701SAndroid Build Coastguard Worker  ${BS_DIR_INC}/umKmInc
442*35ffd701SAndroid Build Coastguard Worker  )
443*35ffd701SAndroid Build Coastguard Worker
444*35ffd701SAndroid Build Coastguard Workerif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^aarch")
445*35ffd701SAndroid Build Coastguard Worker    include_directories(${GFX_DEVELOPMENT_DIR}/third_party/sse2neon)
446*35ffd701SAndroid Build Coastguard Workerendif()
447*35ffd701SAndroid Build Coastguard Worker
448*35ffd701SAndroid Build Coastguard Workerset(headers
449*35ffd701SAndroid Build Coastguard Worker	${HEADERS_}
450*35ffd701SAndroid Build Coastguard Worker)
451*35ffd701SAndroid Build Coastguard Worker
452*35ffd701SAndroid Build Coastguard Worker  set(SOURCES
453*35ffd701SAndroid Build Coastguard Worker    ${SOURCES_}
454*35ffd701SAndroid Build Coastguard Worker  )
455*35ffd701SAndroid Build Coastguard Worker
456*35ffd701SAndroid Build Coastguard Worker# set compiler options
457*35ffd701SAndroid Build Coastguard Workerinclude(Linux.cmake)
458*35ffd701SAndroid Build Coastguard Worker
459*35ffd701SAndroid Build Coastguard Worker###################################################################################
460*35ffd701SAndroid Build Coastguard Worker# create dll library
461*35ffd701SAndroid Build Coastguard Worker###################################################################################
462*35ffd701SAndroid Build Coastguard Workeradd_library( ${GMM_LIB_DLL_NAME} SHARED igdgmm.rc ${UMD_SOURCES} ${UMD_HEADERS})
463*35ffd701SAndroid Build Coastguard Worker
464*35ffd701SAndroid Build Coastguard WorkerGmmLibSetTargetConfig(${GMM_LIB_DLL_NAME})
465*35ffd701SAndroid Build Coastguard Worker
466*35ffd701SAndroid Build Coastguard Workerif(MSVC)
467*35ffd701SAndroid Build Coastguard Worker
468*35ffd701SAndroid Build Coastguard Workerset_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES OUTPUT_NAME "igdgmm${GMMLIB_ARCH}")
469*35ffd701SAndroid Build Coastguard Worker
470*35ffd701SAndroid Build Coastguard Workerbs_set_wdk(${GMM_LIB_DLL_NAME})
471*35ffd701SAndroid Build Coastguard Worker
472*35ffd701SAndroid Build Coastguard Workerset_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES VS_GLOBAL_DriverTargetPlatform Universal)
473*35ffd701SAndroid Build Coastguard Workerset_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES VS_PLATFORM_TOOLSET WindowsApplicationForDrivers10.0)
474*35ffd701SAndroid Build Coastguard Workerwindows_umd_props_universal(${GMM_LIB_DLL_NAME})
475*35ffd701SAndroid Build Coastguard Worker
476*35ffd701SAndroid Build Coastguard Workertarget_link_libraries( ${GMM_LIB_DLL_NAME}
477*35ffd701SAndroid Build Coastguard Worker            onecoreuap.lib
478*35ffd701SAndroid Build Coastguard Worker        )
479*35ffd701SAndroid Build Coastguard Workerelse()
480*35ffd701SAndroid Build Coastguard Worker	set_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES OUTPUT_NAME "igdgmm")
481*35ffd701SAndroid Build Coastguard Worker	set_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES VERSION ${GMMLIB_API_MAJOR_VERSION}.${GMMLIB_API_MINOR_VERSION}.${GMMLIB_API_PATCH_VERSION})
482*35ffd701SAndroid Build Coastguard Worker	set_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES SOVERSION ${GMMLIB_API_MAJOR_VERSION})
483*35ffd701SAndroid Build Coastguard Worker        set(THREADS_PREFER_PTHREAD_FLAG ON)
484*35ffd701SAndroid Build Coastguard Worker        find_package(Threads REQUIRED)
485*35ffd701SAndroid Build Coastguard Worker        target_link_libraries(${GMM_LIB_DLL_NAME} Threads::Threads)
486*35ffd701SAndroid Build Coastguard Worker
487*35ffd701SAndroid Build Coastguard Workerendif()
488*35ffd701SAndroid Build Coastguard Worker
489*35ffd701SAndroid Build Coastguard Worker
490*35ffd701SAndroid Build Coastguard Worker###################################################################################
491*35ffd701SAndroid Build Coastguard Worker# End of DLL create library
492*35ffd701SAndroid Build Coastguard Worker###################################################################################
493*35ffd701SAndroid Build Coastguard Worker
494*35ffd701SAndroid Build Coastguard Workerbs_set_defines()
495*35ffd701SAndroid Build Coastguard Workerbs_set_force_exceptions()
496*35ffd701SAndroid Build Coastguard Workerbs_set_post_target()
497*35ffd701SAndroid Build Coastguard Worker
498*35ffd701SAndroid Build Coastguard Worker###################################################################################
499*35ffd701SAndroid Build Coastguard Worker# Set common macros for DLL
500*35ffd701SAndroid Build Coastguard Worker###################################################################################
501*35ffd701SAndroid Build Coastguard Workerbs_set_extra_target_properties(${GMM_LIB_DLL_NAME}
502*35ffd701SAndroid Build Coastguard Worker      _ATL_NO_WIN_SUPPORT
503*35ffd701SAndroid Build Coastguard Worker      SMALL_POOL_ALLOC
504*35ffd701SAndroid Build Coastguard Worker      __GMM
505*35ffd701SAndroid Build Coastguard Worker      __GFX_MACRO_C__
506*35ffd701SAndroid Build Coastguard Worker      UNUSED_ISTDLIB_MT
507*35ffd701SAndroid Build Coastguard Worker	  __UMD
508*35ffd701SAndroid Build Coastguard Worker	  GMM_UNIFY_DAF_API
509*35ffd701SAndroid Build Coastguard Worker	  )
510*35ffd701SAndroid Build Coastguard Worker
511*35ffd701SAndroid Build Coastguard Workerif(CMAKE_BUILD_TYPE STREQUAL "ReleaseInternal")
512*35ffd701SAndroid Build Coastguard Worker	bs_set_extra_target_properties(${GMM_LIB_DLL_NAME} _RELEASE_INTERNAL)
513*35ffd701SAndroid Build Coastguard Workerendif()
514*35ffd701SAndroid Build Coastguard Worker
515*35ffd701SAndroid Build Coastguard Workertarget_include_directories(${GMM_LIB_DLL_NAME} INTERFACE
516*35ffd701SAndroid Build Coastguard Worker        ${BS_DIR_GMMLIB}/inc
517*35ffd701SAndroid Build Coastguard Worker        ${BS_DIR_INC}
518*35ffd701SAndroid Build Coastguard Worker        ${BS_DIR_INC}/common)
519*35ffd701SAndroid Build Coastguard Worker
520*35ffd701SAndroid Build Coastguard Worker###################################################################################
521*35ffd701SAndroid Build Coastguard Worker# End of Set macros DLL
522*35ffd701SAndroid Build Coastguard Worker###################################################################################
523*35ffd701SAndroid Build Coastguard Worker
524*35ffd701SAndroid Build Coastguard Workerbs_set_extra_target_properties(${GMM_LIB_DLL_NAME}
525*35ffd701SAndroid Build Coastguard Worker	ISTDLIB_UMD
526*35ffd701SAndroid Build Coastguard Worker	UNUSED_ISTDLIB_MT
527*35ffd701SAndroid Build Coastguard Worker	GMM_UNIFIED_LIB
528*35ffd701SAndroid Build Coastguard Worker	GMM_LIB_DLL
529*35ffd701SAndroid Build Coastguard Worker        GMM_LIB_DLL_EXPORTS
530*35ffd701SAndroid Build Coastguard Worker)
531*35ffd701SAndroid Build Coastguard Worker
532*35ffd701SAndroid Build Coastguard Workerif("${GMMLIB_ARCH}" MATCHES "64")
533*35ffd701SAndroid Build Coastguard Worker	bs_set_extra_target_properties(${GMM_LIB_DLL_NAME}
534*35ffd701SAndroid Build Coastguard Worker		_X64)
535*35ffd701SAndroid Build Coastguard Workerendif()
536*35ffd701SAndroid Build Coastguard Worker
537*35ffd701SAndroid Build Coastguard Workerif(NOT DEFINED RUN_TEST_SUITE OR RUN_TEST_SUITE)
538*35ffd701SAndroid Build Coastguard Worker    add_subdirectory(ULT)
539*35ffd701SAndroid Build Coastguard Workerendif()
540*35ffd701SAndroid Build Coastguard Worker
541*35ffd701SAndroid Build Coastguard Workerset (GMM_UMD_DLL "igdgmm")
542*35ffd701SAndroid Build Coastguard Worker
543*35ffd701SAndroid Build Coastguard Workerinclude(os_release_info.cmake)
544*35ffd701SAndroid Build Coastguard Worker
545*35ffd701SAndroid Build Coastguard Workerget_os_release_info(os_name os_version)
546*35ffd701SAndroid Build Coastguard Worker
547*35ffd701SAndroid Build Coastguard Workerif("${os_name}" STREQUAL "clear-linux-os")
548*35ffd701SAndroid Build Coastguard Worker    # clear-linux-os distribution avoids /etc for distribution defaults.
549*35ffd701SAndroid Build Coastguard Worker    # Set this variable explicitly before including GNUInstallDirs.
550*35ffd701SAndroid Build Coastguard Worker    set(CMAKE_INSTALL_SYSCONFDIR "usr/share/defaults/etc")
551*35ffd701SAndroid Build Coastguard Workerendif()
552*35ffd701SAndroid Build Coastguard Worker
553*35ffd701SAndroid Build Coastguard Workerif(UNIX)
554*35ffd701SAndroid Build Coastguard Worker    include(GNUInstallDirs)
555*35ffd701SAndroid Build Coastguard Worker
556*35ffd701SAndroid Build Coastguard Worker    configure_file(${BS_DIR_GMMLIB}/igdgmm.h.in ${CMAKE_BINARY_DIR}/igdgmm.h)
557*35ffd701SAndroid Build Coastguard Worker    configure_file(${BS_DIR_GMMLIB}/igdgmm.pc.in ${CMAKE_BINARY_DIR}/igdgmm.pc @ONLY)
558*35ffd701SAndroid Build Coastguard Worker
559*35ffd701SAndroid Build Coastguard Worker    file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/tmp/postinst "/sbin/ldconfig\n")
560*35ffd701SAndroid Build Coastguard Worker    file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/tmp/postrm "/sbin/ldconfig\n")
561*35ffd701SAndroid Build Coastguard Worker    file(COPY ${CMAKE_CURRENT_BINARY_DIR}/tmp/postinst DESTINATION ${CMAKE_CURRENT_BINARY_DIR} FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
562*35ffd701SAndroid Build Coastguard Worker    file(COPY ${CMAKE_CURRENT_BINARY_DIR}/tmp/postrm DESTINATION ${CMAKE_CURRENT_BINARY_DIR} FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
563*35ffd701SAndroid Build Coastguard Worker
564*35ffd701SAndroid Build Coastguard Worker    install(TARGETS ${GMM_LIB_DLL_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT gmmlib NAMELINK_SKIP)
565*35ffd701SAndroid Build Coastguard Worker    install(TARGETS ${GMM_LIB_DLL_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT gmmlib-devel NAMELINK_ONLY)
566*35ffd701SAndroid Build Coastguard Worker
567*35ffd701SAndroid Build Coastguard Worker    install(DIRECTORY ${BS_DIR_GMMLIB} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/igdgmm COMPONENT gmmlib-devel
568*35ffd701SAndroid Build Coastguard Worker        FILES_MATCHING PATTERN "*.h"
569*35ffd701SAndroid Build Coastguard Worker        PATTERN "*.hpp"
570*35ffd701SAndroid Build Coastguard Worker        PATTERN "Internal" EXCLUDE
571*35ffd701SAndroid Build Coastguard Worker        PATTERN "ULT" EXCLUDE
572*35ffd701SAndroid Build Coastguard Worker	PATTERN "spdlog" EXCLUDE)
573*35ffd701SAndroid Build Coastguard Worker
574*35ffd701SAndroid Build Coastguard Worker    install (DIRECTORY ${BS_DIR_INC} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/igdgmm COMPONENT gmmlib-devel
575*35ffd701SAndroid Build Coastguard Worker        FILES_MATCHING PATTERN "*.h"
576*35ffd701SAndroid Build Coastguard Worker        PATTERN "*.hpp")
577*35ffd701SAndroid Build Coastguard Worker
578*35ffd701SAndroid Build Coastguard Worker    install (DIRECTORY ${BS_DIR_UTIL} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/igdgmm COMPONENT gmmlib-devel
579*35ffd701SAndroid Build Coastguard Worker        FILES_MATCHING PATTERN "*.h"
580*35ffd701SAndroid Build Coastguard Worker        PATTERN "*.hpp")
581*35ffd701SAndroid Build Coastguard Worker
582*35ffd701SAndroid Build Coastguard Worker    install (FILES ${BS_DIR_GMMLIB}/Utility/CpuSwizzleBlt/CpuSwizzleBlt.c
583*35ffd701SAndroid Build Coastguard Worker        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/igdgmm/GmmLib/Utility/CpuSwizzleBlt/ COMPONENT gmmlib-devel)
584*35ffd701SAndroid Build Coastguard Worker
585*35ffd701SAndroid Build Coastguard Worker    install(FILES ${CMAKE_BINARY_DIR}/igdgmm.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig COMPONENT gmmlib-devel)
586*35ffd701SAndroid Build Coastguard Worker    install(FILES ${CMAKE_BINARY_DIR}/igdgmm.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/igdgmm COMPONENT gmmlib-devel)
587*35ffd701SAndroid Build Coastguard Worker
588*35ffd701SAndroid Build Coastguard Worker    if(GMMLIB_CPACK_GENERATOR)
589*35ffd701SAndroid Build Coastguard Worker        set(CPACK_GENERATOR "${GMMLIB_CPACK_GENERATOR}")
590*35ffd701SAndroid Build Coastguard Worker    else()
591*35ffd701SAndroid Build Coastguard Worker        # If generators list was not define build native package for current distro
592*35ffd701SAndroid Build Coastguard Worker        if(EXISTS "/etc/debian_version")
593*35ffd701SAndroid Build Coastguard Worker        set(CPACK_GENERATOR "DEB")
594*35ffd701SAndroid Build Coastguard Worker        elseif(EXISTS "/etc/redhat-release")
595*35ffd701SAndroid Build Coastguard Worker        set(CPACK_GENERATOR "RPM")
596*35ffd701SAndroid Build Coastguard Worker        else()
597*35ffd701SAndroid Build Coastguard Worker        set(CPACK_GENERATOR "TXZ")
598*35ffd701SAndroid Build Coastguard Worker        endif()
599*35ffd701SAndroid Build Coastguard Worker    endif()
600*35ffd701SAndroid Build Coastguard Worker
601*35ffd701SAndroid Build Coastguard Worker    set(CPACK_PACKAGE_NAME "intel")
602*35ffd701SAndroid Build Coastguard Worker    set(CPACK_PACKAGE_VENDOR "Intel Corporation")
603*35ffd701SAndroid Build Coastguard Worker    set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Intel(R) Graphics Memory Management Library Package")
604*35ffd701SAndroid Build Coastguard Worker    set(CPACK_PACKAGE_ARCHITECTURE "x86_64")
605*35ffd701SAndroid Build Coastguard Worker
606*35ffd701SAndroid Build Coastguard Worker    set(CPACK_PACKAGE_VERSION_MAJOR ${MAJOR_VERSION})
607*35ffd701SAndroid Build Coastguard Worker    set(CPACK_PACKAGE_VERSION_MINOR ${MINOR_VERSION})
608*35ffd701SAndroid Build Coastguard Worker    set(CPACK_PACKAGE_VERSION_PATCH ${PATCH_VERSION})
609*35ffd701SAndroid Build Coastguard Worker    set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
610*35ffd701SAndroid Build Coastguard Worker
611*35ffd701SAndroid Build Coastguard Worker    set(CPACK_PACKAGE_INSTALL_DIRECTORY ${GMMLIB_INSTALL_TIME_ROOT_DIR})
612*35ffd701SAndroid Build Coastguard Worker    set(CPACK_SET_DESTDIR TRUE)
613*35ffd701SAndroid Build Coastguard Worker    set(CPACK_PACKAGE_RELOCATABLE FALSE)
614*35ffd701SAndroid Build Coastguard Worker
615*35ffd701SAndroid Build Coastguard Worker    set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
616*35ffd701SAndroid Build Coastguard Worker    set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Intel")
617*35ffd701SAndroid Build Coastguard Worker    set(CPACK_DEBIAN_COMPRESSION_TYPE "xz")
618*35ffd701SAndroid Build Coastguard Worker    set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_BINARY_DIR}/postinst;${CMAKE_CURRENT_BINARY_DIR}/postrm")
619*35ffd701SAndroid Build Coastguard Worker
620*35ffd701SAndroid Build Coastguard Worker    set(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64")
621*35ffd701SAndroid Build Coastguard Worker    set(CPACK_RPM_PACKAGE_RELEASE 1)
622*35ffd701SAndroid Build Coastguard Worker    set(CPACK_RPM_COMPRESSION_TYPE "xz")
623*35ffd701SAndroid Build Coastguard Worker    set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/postinst")
624*35ffd701SAndroid Build Coastguard Worker    set(CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE "${CMAKE_CURRENT_BINARY_DIR}/postrm")
625*35ffd701SAndroid Build Coastguard Worker
626*35ffd701SAndroid Build Coastguard Worker    if(CMAKE_VERSION VERSION_GREATER 3.6 OR CMAKE_VERSION VERSION_EQUAL 3.6)
627*35ffd701SAndroid Build Coastguard Worker      set(CPACK_DEBIAN_GMMLIB_FILE_NAME "intel-gmmlib_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
628*35ffd701SAndroid Build Coastguard Worker      set(CPACK_DEBIAN_GMMLIB-DEVEL_FILE_NAME "intel-gmmlib-devel_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
629*35ffd701SAndroid Build Coastguard Worker
630*35ffd701SAndroid Build Coastguard Worker      set(CPACK_RPM_GMMLIB_FILE_NAME "intel-gmmlib-${CPACK_PACKAGE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}%{?dist}.${CPACK_RPM_PACKAGE_ARCHITECTURE}.rpm")
631*35ffd701SAndroid Build Coastguard Worker      set(CPACK_RPM_GMMLIB-DEVEL_FILE_NAME "intel-gmmlib-devel-${CPACK_PACKAGE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}%{?dist}.${CPACK_RPM_PACKAGE_ARCHITECTURE}.rpm")
632*35ffd701SAndroid Build Coastguard Worker
633*35ffd701SAndroid Build Coastguard Worker      set(CPACK_ARCHIVE_GMMLIB_FILE_NAME "intel-gmmlib-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_ARCHITECTURE}")
634*35ffd701SAndroid Build Coastguard Worker      set(CPACK_ARCHIVE_GMMLIB-DEVEL_FILE_NAME "intel-gmmlib-devel-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_ARCHITECTURE}")
635*35ffd701SAndroid Build Coastguard Worker    else()
636*35ffd701SAndroid Build Coastguard Worker      if(CPACK_GENERATOR STREQUAL "DEB")
637*35ffd701SAndroid Build Coastguard Worker        set(CPACK_PACKAGE_FILE_NAME "intel-gmmlib_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
638*35ffd701SAndroid Build Coastguard Worker      elseif(CPACK_GENERATOR STREQUAL "RPM")
639*35ffd701SAndroid Build Coastguard Worker        set(CPACK_PACKAGE_FILE_NAME "intel-gmmlib-${CPACK_PACKAGE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}%{?dist}.${CPACK_RPM_PACKAGE_ARCHITECTURE}.rpm")
640*35ffd701SAndroid Build Coastguard Worker      else()
641*35ffd701SAndroid Build Coastguard Worker        set(CPACK_PACKAGE_FILE_NAME "intel-gmmlib-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_ARCHITECTURE}")
642*35ffd701SAndroid Build Coastguard Worker      endif()
643*35ffd701SAndroid Build Coastguard Worker    endif()
644*35ffd701SAndroid Build Coastguard Worker
645*35ffd701SAndroid Build Coastguard Worker    set(CPACK_DEBIAN_GMMLIB-DEVEL_PACKAGE_DEPENDS "intel-gmmlib(=${CPACK_PACKAGE_VERSION})")
646*35ffd701SAndroid Build Coastguard Worker    set(CPACK_RPM_GMMLIB-DEVEL_PACKAGE_REQUIRES "intel-gmmlib = ${CPACK_PACKAGE_VERSION}")
647*35ffd701SAndroid Build Coastguard Worker
648*35ffd701SAndroid Build Coastguard Worker    set(CPACK_COMPONENT_INSTALL ON)
649*35ffd701SAndroid Build Coastguard Worker    set(CPACK_DEB_COMPONENT_INSTALL ON)
650*35ffd701SAndroid Build Coastguard Worker    set(CPACK_RPM_COMPONENT_INSTALL ON)
651*35ffd701SAndroid Build Coastguard Worker    set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
652*35ffd701SAndroid Build Coastguard Worker    set(CPACK_COMPONENTS_ALL gmmlib gmmlib-devel)
653*35ffd701SAndroid Build Coastguard Worker
654*35ffd701SAndroid Build Coastguard Worker    include (CPack)
655*35ffd701SAndroid Build Coastguard Worker
656*35ffd701SAndroid Build Coastguard Workerendif()
657