Skip to content

Commit

Permalink
export-dev: create common -> libc symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
vhotspur committed Jan 5, 2024
1 parent 7b907a0 commit 017ffce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ install_deps = []
# Exported libraries and include files
# Format: [ type, source_file, destination ]
# See meson/part/exports/copy-export.sh for supported file types.
exported_devel_files = []
exported_devel_files = [
[ 'includenamedsymlink', 'libc', 'common' ]
]

# Install script for headers.
# TODO: Make a list of directories and turn into script later.
Expand Down
5 changes: 5 additions & 0 deletions meson/part/exports/copy-export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ while [ "$#" -gt 0 ]; do
cd "${target_dir}/include/$3" && ln -s "../$2" .
)
;;
includenamedsymlink)
(
cd "${target_dir}/include/" && ln -s "$2" "$3"
)
;;
config)
cp -L "$2" "${target_dir}/$3"
;;
Expand Down

0 comments on commit 017ffce

Please sign in to comment.