From d23b18f6c78878b35bbbdd41b27bfc5e397390b5 Mon Sep 17 00:00:00 2001 From: Andrew McNulty Date: Sat, 7 Sep 2024 15:36:30 +0100 Subject: [PATCH] Deal with windows as suggested by @WillAyd --- meson.build | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index b00122dc..05eb4e18 100644 --- a/meson.build +++ b/meson.build @@ -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()