1# Copyright(c) 2017 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 21 22if(NOT DEFINED _bs_include_dir_names) 23set(_bs_include_dir_names TRUE) 24 25 26include(${BUILD_SYS_INC}/bs_base_utils.cmake) 27 28 29if(NOT DEFINED GFX_DEVELOPMENT_DIR) 30 if(DEFINED ENV{GFX_DEVELOPMENT_DIR}) 31 set(GFX_DEVELOPMENT_DIR "$ENV{GFX_DEVELOPMENT_DIR}") 32 else() 33 message(FATAL_ERROR "Required variable not defined: GFX_DEVELOPMENT_DIR") 34 endif() 35endif(NOT DEFINED GFX_DEVELOPMENT_DIR) 36 37 38# base dir vars 39# 40# These will be used later to help with separation of components. 41# 42bs_set_if_undefined(BS_DIR_SOURCE "${GFX_DEVELOPMENT_DIR}/Source") 43bs_set_if_undefined(BS_DIR_COMMON "${BS_DIR_SOURCE}/Common") 44bs_set_if_undefined(BS_DIR_3D_COMMON "${BS_DIR_SOURCE}/3d/common") 45bs_set_if_undefined(BS_DIR_GMMLIB "${BS_DIR_SOURCE}/GmmLib") 46bs_set_if_undefined(BS_DIR_INC "${BS_DIR_SOURCE}/inc") 47bs_set_if_undefined(BS_DIR_INSTALL "${BS_DIR_SOURCE}/install") 48bs_set_if_undefined(BS_DIR_MEDIA "${BS_DIR_SOURCE}/media") 49bs_set_if_undefined(BS_DIR_OPENCL "${BS_DIR_SOURCE}/OpenCL") 50bs_set_if_undefined(BS_DIR_UTIL "${BS_DIR_SOURCE}/util") 51 52 53endif(NOT DEFINED _bs_include_dir_names) 54