Skip to content

Commit

Permalink
iox-#1391 Update used headers and add the new include paths to the sc…
Browse files Browse the repository at this point in the history
…ript

Signed-off-by: Simon Hoinkis <[email protected]>
  • Loading branch information
mossmaurice committed Jan 31, 2023
1 parent cefdfd7 commit 0266452
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 10 additions & 2 deletions tools/scripts/list_stl_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,25 @@

SCOPE=${1:-list}
COMPONENTS=(iceoryx_hoofs iceoryx_posh)
SOURCE_DIR=(source include)
POSH_SOURCE_DIR=(source include)
HOOFS_SOURCE_DIR=(source include memory time vocabulary container)
WORKSPACE=$(git rev-parse --show-toplevel)
QNX_PLATFORM_DIR=$WORKSPACE/iceoryx_platform/qnx/
USELIST=$WORKSPACE/tools/scripts/used-headers.txt
CURRENTLY_USED_HEADERS=$(mktemp)
GET_HEADER_NAME="\<\K[^<>]+(?=>)" # Matches the content between angle brackets

for COMPONENT in ${COMPONENTS[@]}; do
for DIR in ${SOURCE_DIR[@]}; do
if [[ "$COMPONENT" == "iceoryx_posh" ]]; then
for DIR in ${POSH_SOURCE_DIR[@]}; do
GREP_PATH_HOOFS_POSH="${GREP_PATH_HOOFS_POSH} ${WORKSPACE}/${COMPONENT}/$DIR"
done
fi
if [[ "$COMPONENT" == "iceoryx_hoofs" ]]; then
for DIR in ${HOOFS_SOURCE_DIR[@]}; do
GREP_PATH_HOOFS_POSH="${GREP_PATH_HOOFS_POSH} ${WORKSPACE}/${COMPONENT}/$DIR"
done
fi
done

echo "# QNX platform / libc headers" | tee -a $CURRENTLY_USED_HEADERS
Expand Down
1 change: 0 additions & 1 deletion tools/scripts/used-headers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ map
memory
mutex
new
numeric
process.h
regex
sstream
Expand Down

0 comments on commit 0266452

Please sign in to comment.