File: bs_dir_names.cmake

package info (click to toggle)
intel-gmmlib 20.4.1%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,524 kB
  • sloc: cpp: 52,910; ansic: 5,587; makefile: 6
file content (53 lines) | stat: -rwxr-xr-x 2,315 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright(c) 2017 Intel Corporation

# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files(the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and / or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.


if(NOT DEFINED _bs_include_dir_names)
set(_bs_include_dir_names TRUE)


include(${BUILD_SYS_INC}/bs_base_utils.cmake)


if(NOT DEFINED GFX_DEVELOPMENT_DIR)
    if(DEFINED ENV{GFX_DEVELOPMENT_DIR})
        set(GFX_DEVELOPMENT_DIR "$ENV{GFX_DEVELOPMENT_DIR}")
    else()
        message(FATAL_ERROR "Required variable not defined: GFX_DEVELOPMENT_DIR")
    endif()
endif(NOT DEFINED GFX_DEVELOPMENT_DIR)


# base dir vars
#
# These will be used later to help with separation of components.
#
bs_set_if_undefined(BS_DIR_SOURCE          "${GFX_DEVELOPMENT_DIR}/Source")
bs_set_if_undefined(BS_DIR_COMMON          "${BS_DIR_SOURCE}/Common")
bs_set_if_undefined(BS_DIR_3D_COMMON       "${BS_DIR_SOURCE}/3d/common")
bs_set_if_undefined(BS_DIR_GMMLIB          "${BS_DIR_SOURCE}/GmmLib")
bs_set_if_undefined(BS_DIR_INC             "${BS_DIR_SOURCE}/inc")
bs_set_if_undefined(BS_DIR_INSTALL         "${BS_DIR_SOURCE}/install")
bs_set_if_undefined(BS_DIR_MEDIA           "${BS_DIR_SOURCE}/media")
bs_set_if_undefined(BS_DIR_OPENCL          "${BS_DIR_SOURCE}/OpenCL")
bs_set_if_undefined(BS_DIR_UTIL            "${BS_DIR_SOURCE}/util")


endif(NOT DEFINED _bs_include_dir_names)