Skip to content

Commit

Permalink
try vcpkg includepath and libpath for win scons
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed May 29, 2024
1 parent 57679ac commit 14b2e8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,12 @@ if platform == "darwin":
break
elif platform == "win32":
if 'msvc' in env['TOOLS']:
vcpkg_prefix = (os.environ['HOME'] if 'HOME' in os.environ else 'C:') + f'/vcpkg/installed/x{env['bits']}-windows'
env.Append(
LINKFLAGS=['/SUBSYSTEM:WINDOWS','/ENTRY:mainCRTStartup','/MACHINE:X86'],
CXXFLAGS=['/EHsc','/MD','/FIglobal.hpp'],
LIBPATH=("C:\Program Files (x86)\Microsoft Visual Studio " + env['MSVC_VERSION'] + "\VC\lib"),
INCLUDEPATH=vcpkg_prefix + '/include'
LIBPATH=vcpkg_prefix + '/lib',
LIBS=Split("""
kernel32
user32
Expand Down

0 comments on commit 14b2e8b

Please # to comment.