Skip to content

Commit

Permalink
meson: Fix symbol exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovazquezblanco authored and likle committed May 6, 2024
1 parent f418404 commit 8527639
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ project('cwalk', 'c',

cwalk_inc = include_directories('include')

cwalk_c_args = []
if get_option('default_library') == 'shared'
cwalk_c_args += '-DCWK_SHARED'
endif

cwalk = library('cwalk', 'src/cwalk.c',
install: true,
include_directories: cwalk_inc
include_directories: cwalk_inc,
c_args: cwalk_c_args
)

install_headers('include/cwalk.h')
Expand Down

0 comments on commit 8527639

Please sign in to comment.