-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize XRT header files under core/include (#8648)
* XRT Linux Packaging: Organize headers Refactor header install per 4 buckets: 1. Internal to XRT, keep but stop exporting 2. Deprecated, delete from source tree 3. Indirectly included by xrt/xrt_<first class>.h, move to include/xrt/detail/ 4. Included by application host code, move to include/xrt/legacy (and or other name(s)) Signed-off-by: Soren Soe <[email protected]> * Move all exported headers under include/xrt Signed-off-by: Soren Soe <[email protected]> * cmake core infra changes to reflect file moves Signed-off-by: Soren Soe <[email protected]> * Fix include to pick up from new locations Signed-off-by: Soren Soe <[email protected]> * Fix windows includes Signed-off-by: Soren Soe <[email protected]> * Release core/include wrappers for legacy xrt Signed-off-by: Soren Soe <[email protected]> * Stop exporting internally used driver headers Signed-off-by: Soren Soe <[email protected]> * Fix typos --------- Signed-off-by: Soren Soe <[email protected]>
- Loading branch information
Showing
230 changed files
with
6,902 additions
and
6,664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved. | ||
|
||
# Custom variables imported by this CMake stub which should be defined by parent CMake: | ||
# LINUX_FLAVOR | ||
|
||
if (NOT WIN32) | ||
if (${LINUX_FLAVOR} MATCHES "^(ubuntu|debian)") | ||
set (XRT_DEV_COMPONENT_SUFFIX "dev") | ||
elseif (${LINUX_FLAVOR} MATCHES "^(rhel|centos)") | ||
set (XRT_DEV_COMPONENT_SUFFIX "devel") | ||
endif() | ||
endif(NOT WIN32) | ||
|
||
# Default component name for any install() command without the COMPONENT argument | ||
# The default component is the xrt run-time component, if XRT_DEV_COMPONENT is | ||
# set to something different then a development component will be created with | ||
# link libraries and header which are then excluded from runtime component | ||
set (CMAKE_INSTALL_DEFAULT_COMPONENT_NAME "xrt") | ||
|
||
# Enable development package by specifying development component name | ||
# If XRT_DEV_COMPONENT is same DEFAULT_COMPONENT then only that package | ||
# is created with both development and run-time content. | ||
#set (XRT_DEV_COMPONENT "xrt-dev") | ||
set (XRT_COMPONENT "xrt") | ||
set (XRT_DEV_COMPONENT "xrt") | ||
|
||
set (XRT_BASE_COMPONENT "base") | ||
set (XRT_BASE_DEV_COMPONENT "base-${XRT_DEV_COMPONENT_SUFFIX}") | ||
|
||
# For NPU builds the defalt component is "npu". | ||
if (XRT_NPU) | ||
set (CMAKE_INSTALL_DEFAULT_COMPONENT_NAME "npu") | ||
set (XRT_COMPONENT "npu") | ||
set (XRT_DEV_COMPONENT "npu") | ||
endif(XRT_NPU) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.