From 9a9362acb3288b667b66d674bce684085cd72794 Mon Sep 17 00:00:00 2001 From: Frederik Seiffert Date: Tue, 18 Jan 2022 12:56:22 +0100 Subject: [PATCH] Adjust example project settings to work for release builds and x86. --- examples/ObjCWin32/ObjCWin32/ObjCWin32.mm | 2 +- .../ObjCWin32/ObjCWin32/ObjCWin32.vcxproj | 39 +++++++++++++------ 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/examples/ObjCWin32/ObjCWin32/ObjCWin32.mm b/examples/ObjCWin32/ObjCWin32/ObjCWin32.mm index be25ec2..064dfd1 100755 --- a/examples/ObjCWin32/ObjCWin32/ObjCWin32.mm +++ b/examples/ObjCWin32/ObjCWin32/ObjCWin32.mm @@ -25,7 +25,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); - // TODO: Place code here. + NSLog(@"Hello Objective-C"); // Initialize global strings LoadStringW(hInstance, IDC_OBJCWIN32, szWindowClass, MAX_LOADSTRING); diff --git a/examples/ObjCWin32/ObjCWin32/ObjCWin32.vcxproj b/examples/ObjCWin32/ObjCWin32/ObjCWin32.vcxproj index 9087702..634d227 100755 --- a/examples/ObjCWin32/ObjCWin32/ObjCWin32.vcxproj +++ b/examples/ObjCWin32/ObjCWin32/ObjCWin32.vcxproj @@ -29,13 +29,13 @@ Application true - v143 + ClangCL Unicode Application false - v143 + ClangCL true Unicode @@ -48,14 +48,11 @@ Application false - v143 + ClangCL true Unicode - - link.exe - @@ -75,28 +72,36 @@ true + C:\GNUstep\$(LibrariesArchitecture)\$(Configuration)\include;$(IncludePath) + C:\GNUstep\$(LibrariesArchitecture)\$(Configuration)\lib;$(LibraryPath) false + C:\GNUstep\$(LibrariesArchitecture)\$(Configuration)\include;$(IncludePath) + C:\GNUstep\$(LibrariesArchitecture)\$(Configuration)\lib;$(LibraryPath) true - C:\GNUstep\x64\Debug\include;$(VC_IncludePath);$(WindowsSDK_IncludePath); - C:\GNUstep\x64\Debug\lib;$(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64) + C:\GNUstep\$(LibrariesArchitecture)\$(Configuration)\include;$(IncludePath) + C:\GNUstep\$(LibrariesArchitecture)\$(Configuration)\lib;$(LibraryPath) false + C:\GNUstep\$(LibrariesArchitecture)\$(Configuration)\include;$(IncludePath) + C:\GNUstep\$(LibrariesArchitecture)\$(Configuration)\lib;$(LibraryPath) Level3 true - WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + WIN32;_DEBUG;_WINDOWS;GNUSTEP;GNUSTEP_WITH_DLL;GNUSTEP_RUNTIME=1;_NONFRAGILE_ABI=1;_NATIVE_OBJC_EXCEPTIONS;GSWARN;GSDIAGNOSE;%(PreprocessorDefinitions) true + -fobjc-runtime=gnustep-2.0 -Xclang -fexceptions -Xclang -fobjc-exceptions -fblocks -Xclang -fobjc-arc %(AdditionalOptions) Windows true + gnustep-base.lib;objc.lib;%(AdditionalDependencies) @@ -105,14 +110,16 @@ true true true - WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + WIN32;NDEBUG;_WINDOWS;GNUSTEP;GNUSTEP_WITH_DLL;GNUSTEP_RUNTIME=1;_NONFRAGILE_ABI=1;_NATIVE_OBJC_EXCEPTIONS;GSWARN;GSDIAGNOSE;%(PreprocessorDefinitions) true + -fobjc-runtime=gnustep-2.0 -Xclang -fexceptions -Xclang -fobjc-exceptions -fblocks -Xclang -fobjc-arc %(AdditionalOptions) Windows true true true + gnustep-base.lib;objc.lib;%(AdditionalDependencies) @@ -135,14 +142,16 @@ true true true - NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + NDEBUG;_WINDOWS;GNUSTEP;GNUSTEP_WITH_DLL;GNUSTEP_RUNTIME=1;_NONFRAGILE_ABI=1;_NATIVE_OBJC_EXCEPTIONS;GSWARN;GSDIAGNOSE;%(PreprocessorDefinitions) true + -fobjc-runtime=gnustep-2.0 -Xclang -fexceptions -Xclang -fobjc-exceptions -fblocks -Xclang -fobjc-arc %(AdditionalOptions) Windows true true true + gnustep-base.lib;objc.lib;dispatch.lib;%(AdditionalDependencies) @@ -155,6 +164,12 @@ + + + + + + @@ -168,7 +183,7 @@ - + PreserveNewest %(Filename)%(Extension)