Skip to content

Commit

Permalink
meson: fix resource file compilation on Windows
Browse files Browse the repository at this point in the history
It needs to know about the correct include directories on its own.
  • Loading branch information
eli-schwartz committed Jan 31, 2022
1 parent c9072dd commit 5b2c6c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build/meson/lib/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ libzstd_c_args = []
if cc_id == compiler_msvc
if default_library_type != 'static'
libzstd_sources += [windows_mod.compile_resources(
join_paths(zstd_rootdir, 'build/VS2010/libzstd-dll/libzstd-dll.rc'))]
join_paths(zstd_rootdir, 'build/VS2010/libzstd-dll/libzstd-dll.rc'),
include_directories: libzstd_includes)]
libzstd_c_args += ['-DZSTD_DLL_EXPORT=1',
'-DZSTD_HEAPMODE=0',
'-D_CONSOLE',
Expand Down
3 changes: 2 additions & 1 deletion build/meson/programs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ endif
if cc_id == compiler_msvc
if default_library_type != 'static'
zstd_programs_sources += [windows_mod.compile_resources(
join_paths(zstd_rootdir, 'build/VS2010/zstd/zstd.rc'))]
join_paths(zstd_rootdir, 'build/VS2010/zstd/zstd.rc'),
include_directories: libzstd_includes)]
endif
endif

Expand Down

0 comments on commit 5b2c6c7

Please sign in to comment.