Skip to content

Commit

Permalink
Deal with windows as suggested by @WillAyd
Browse files Browse the repository at this point in the history
  • Loading branch information
amcn committed Sep 7, 2024
1 parent 0a90199 commit d23b18f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,21 @@ if buildtype == 'debug' and cc_id != 'msvc'
flatcc_name = 'flatcc_d'
endif

libflatccrt = library(flatccrt_name,
if build_machine.system() == 'windows'
lib_type = 'static_library'
else
lib_type = 'library'
endif

libflatccrt = build_target(flatccrt_name,
target_type: lib_type,
sources: flatccrt_src,
include_directories: inc_dir,
install: not meson.is_subproject()
)

libflatcc = library(flatcc_name,
libflatcc = build_target(flatcc_name,
target_type: lib_type,
sources: flatcc_src,
include_directories: inc_dir,
install: not meson.is_subproject()
Expand Down

0 comments on commit d23b18f

Please sign in to comment.