From 64d69750cffa27600aebef4921ec1e36b4c13821 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Mon, 15 Oct 2018 19:14:51 +0200 Subject: [PATCH] First attempt at building a static Windows binary. #136 --- cake/BuildExternals.cake | 2 +- .../libHarfBuzzSharp_windows/libHarfBuzzSharp.vcxproj | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cake/BuildExternals.cake b/cake/BuildExternals.cake index a0d9e6a249..47ae94b72d 100644 --- a/cake/BuildExternals.cake +++ b/cake/BuildExternals.cake @@ -88,7 +88,7 @@ Task ("externals-windows") $"target_os='win' target_cpu='{skiaArch}' " + $"skia_use_icu=false skia_use_sfntly=false skia_use_piex=true skia_use_dng_sdk=true " + $"skia_use_system_expat=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false " + - $"extra_cflags=[ '-DSKIA_C_DLL', '/MD', '/EHsc', '/Z7' ] " + + $"extra_cflags=[ '-DSKIA_C_DLL', '/MT', '/EHsc', '/Z7' ] " + $"extra_ldflags=[ '/DEBUG:FULL' ]"); // copy libSkiaSharp to output diff --git a/native-builds/libHarfBuzzSharp_windows/libHarfBuzzSharp.vcxproj b/native-builds/libHarfBuzzSharp_windows/libHarfBuzzSharp.vcxproj index c7e1e709a2..c3e5389054 100644 --- a/native-builds/libHarfBuzzSharp_windows/libHarfBuzzSharp.vcxproj +++ b/native-builds/libHarfBuzzSharp_windows/libHarfBuzzSharp.vcxproj @@ -222,6 +222,7 @@ HAVE_UCDN=1;HAVE_CONFIG_H;HB_EXTERN=__declspec (dllexport) extern;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;WIN32;_DEBUG;_WINDOWS;_USRDLL;HARFBUZZ_EXPORTS;%(PreprocessorDefinitions) ..\..\externals\harfbuzz\harfbuzz\src\hb-ucdn;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) 4267;4244 + MultiThreadedDebug Windows @@ -236,6 +237,7 @@ HAVE_UCDN=1;HAVE_CONFIG_H;HB_EXTERN=__declspec (dllexport) extern;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_DEBUG;_WINDOWS;_USRDLL;HARFBUZZ_EXPORTS;%(PreprocessorDefinitions) ..\..\externals\harfbuzz\harfbuzz\src\hb-ucdn;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) 4267;4244 + MultiThreadedDebug Windows @@ -252,6 +254,7 @@ HAVE_UCDN=1;HAVE_CONFIG_H;HB_EXTERN=__declspec (dllexport) extern;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;WIN32;NDEBUG;_WINDOWS;_USRDLL;HARFBUZZ_EXPORTS;%(PreprocessorDefinitions) ..\..\externals\harfbuzz\harfbuzz\src\hb-ucdn;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) 4267;4244 + MultiThreaded Windows @@ -270,6 +273,7 @@ HAVE_UCDN=1;HAVE_CONFIG_H;HB_EXTERN=__declspec (dllexport) extern;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;NDEBUG;_WINDOWS;_USRDLL;HARFBUZZ_EXPORTS;%(PreprocessorDefinitions) ..\..\externals\harfbuzz\harfbuzz\src\hb-ucdn;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) 4267;4244 + MultiThreaded Windows