Skip to content

Commit

Permalink
common: turn the module into a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottox committed Oct 5, 2023
1 parent 8a1dcf8 commit 19b9bb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions common/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ libsqsh_common = static_library(
dependencies: libsqsh_common_dependencies,
install: false,
)

libsqsh_common_dep = declare_dependency(
link_with: libsqsh_common,
include_directories: libsqsh_common_include,
)
3 changes: 1 addition & 2 deletions libsqsh/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ endif

libsqsh_dependencies = [
cextras_dep,
libsqsh_common_dep,
]

libsqsh_c_args = []
Expand Down Expand Up @@ -45,11 +46,9 @@ libsqsh = both_libraries(
libsqsh_sources,
include_directories: [
libsqsh_private_include,
libsqsh_common_include,
libsqsh_include,
],
install: not meson.is_subproject(),
link_with: [libsqsh_common],
c_args: libsqsh_c_args,
dependencies: libsqsh_dependencies,
version: meson.project_version(),
Expand Down

0 comments on commit 19b9bb5

Please sign in to comment.