| 1 |
# ***************************************************************************** |
| 2 |
# Copyright (c) 2017 Intel Corporation |
| 3 |
# |
| 4 |
# Permission is hereby granted, free of charge, to any person obtaining a copy |
| 5 |
# of this software and associated documentation files (the "Software"), to deal |
| 6 |
# in the Software without restriction, including without limitation the rights |
| 7 |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 8 |
# copies of the Software, and to permit persons to whom the Software is |
| 9 |
# furnished to do so, subject to the following conditions: |
| 10 |
# |
| 11 |
# The above copyright notice and this permission notice shall be included in all |
| 12 |
# copies or substantial portions of the Software. |
| 13 |
# |
| 14 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 17 |
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 18 |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 19 |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 20 |
# SOFTWARE. |
| 21 |
# ***************************************************************************** |
| 22 |
|
| 23 |
|
| 24 |
if(NOT DEFINED _bs_include_dir_names) |
| 25 |
set(_bs_include_dir_names TRUE) |
| 26 |
|
| 27 |
|
| 28 |
include(${BUILD_SYS_INC}/bs_base_utils.cmake) |
| 29 |
|
| 30 |
|
| 31 |
if(NOT DEFINED GFX_DEVELOPMENT_DIR) |
| 32 |
if(DEFINED ENV{GFX_DEVELOPMENT_DIR}) |
| 33 |
set(GFX_DEVELOPMENT_DIR "$ENV{GFX_DEVELOPMENT_DIR}") |
| 34 |
else() |
| 35 |
message(FATAL_ERROR "Required variable not defined: GFX_DEVELOPMENT_DIR") |
| 36 |
endif() |
| 37 |
endif(NOT DEFINED GFX_DEVELOPMENT_DIR) |
| 38 |
|
| 39 |
|
| 40 |
# base dir vars |
| 41 |
# |
| 42 |
# These will be used later to help with separation of components. |
| 43 |
# |
| 44 |
bs_set_if_undefined(BS_DIR_SOURCE "${CMAKE_SOURCE_DIR}/..") |
| 45 |
|
| 46 |
bs_set_if_undefined(BS_DIR_COMMON "${BS_DIR_SOURCE}/gmmlib/Source/Common") |
| 47 |
bs_set_if_undefined(BS_DIR_GMMLIB "${BS_DIR_SOURCE}/gmmlib/Source/GmmLib") |
| 48 |
bs_set_if_undefined(BS_DIR_INC "${BS_DIR_SOURCE}/gmmlib/Source/inc") |
| 49 |
bs_set_if_undefined(BS_DIR_INSTALL "${BS_DIR_SOURCE}/install") |
| 50 |
bs_set_if_undefined(BS_DIR_MEDIA "${CMAKE_SOURCE_DIR}") |
| 51 |
|
| 52 |
endif(NOT DEFINED _bs_include_dir_names) |