Skip to content

Commit

Permalink
Move files to reduce levels
Browse files Browse the repository at this point in the history
aiebu/src/cpp/aiebu/src/* -> aiebu/src/cpp/*

Wrap legacy headers to include from new location, which is now
aiebu/src/cpp/include/aiebu/*.
This extra aieby level is so that end-user exported
files can be added under include/aiebu rather than directly under
include.

Ensure that clients including legacy top-level headers
can still build when including from legacy location when
using aiebu as a submodule.

Signed-off-by: Soren Soe <2106410+stsoe@users.noreply.github.com>

Move headers

Signed-off-by: Soren Soe <2106410+stsoe@users.noreply.github.com>
  • Loading branch information
stsoe committed Mar 1, 2025
1 parent 8404aa4 commit 1c549e4
Show file tree
Hide file tree
Showing 65 changed files with 287 additions and 581 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project(AIEBU HOMEPAGE_URL https://github.com/Xilinx/aiebu VERSION 1.0)

include(cmake/settings.cmake)

add_subdirectory(src/cpp/aiebu)
add_subdirectory(src/cpp)

add_subdirectory(specification)

Expand Down
File renamed without changes.
10 changes: 6 additions & 4 deletions src/cpp/aiebu/src/CMakeLists.txt → src/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# SPDX-License-Identifier: MIT
# Copyright (C) 2024-2025, Advanced Micro Devices, Inc. All rights reserved.
add_subdirectory(utils)

add_library(aiebu_library_objects OBJECT
analyzer/reporter.cpp
analyzer/transaction.cpp
Expand All @@ -26,7 +28,7 @@ target_include_directories(aiebu_library_objects
${AIEBU_SOURCE_DIR}/src/cpp/ELFIO

# The following should be spelled out in code
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/include/aiebu
${CMAKE_CURRENT_SOURCE_DIR}/preprocessor
${CMAKE_CURRENT_SOURCE_DIR}/preprocessor/aie2
${CMAKE_CURRENT_SOURCE_DIR}/encoder
Expand Down Expand Up @@ -87,9 +89,9 @@ install (TARGETS aiebu aiebu_static
)

install(FILES
include/aiebu.h
include/aiebu_assembler.h
include/aiebu_error.h
include/aiebu/aiebu.h
include/aiebu/aiebu_assembler.h
include/aiebu/aiebu_error.h
DESTINATION ${AIEBU_INSTALL_INCLUDE_DIR}
CONFIGURATIONS Debug Release COMPONENT Runtime
)
4 changes: 0 additions & 4 deletions src/cpp/aiebu/CMakeLists.txt

This file was deleted.

304 changes: 0 additions & 304 deletions src/cpp/aiebu/src/.clang-tidy

This file was deleted.

Loading

0 comments on commit 1c549e4

Please sign in to comment.