summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/libgl-gdi
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2018-10-09 16:46:21 +0100
committerJose Fonseca <[email protected]>2018-10-12 07:45:53 +0100
commit7c5aececdad2a04b642ca8419cf2fe4889c7e524 (patch)
tree01f13896a80f7faa1eec1ca1882251eb0fa96b64 /src/gallium/targets/libgl-gdi
parent416013b4f5caef69f8be15aaebf31d789b93f30f (diff)
scons: Allow building with custom MSVC_USE_SCRIPT script.
SCons MSVC support relies on vcvarsall.bat to extract the PATH, CPP includes, library paths, etc. And SCons also has an build env var named MSVC_USE_SCRIPT which one can use to point to alternative vcvarsall.bat script. This change exposes this MSVC_USE_SCRIPT build env variable as a SCons command line variable. This will enable using MSVC outside Program Files (e.g, network shares, etc.) This change also links advapi32 library, necessary for the Windows Registry API used by WGL state tracker, avoiding missing symbols. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/targets/libgl-gdi')
-rw-r--r--src/gallium/targets/libgl-gdi/SConscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/targets/libgl-gdi/SConscript b/src/gallium/targets/libgl-gdi/SConscript
index a8bdc3e5869..132cb73358d 100644
--- a/src/gallium/targets/libgl-gdi/SConscript
+++ b/src/gallium/targets/libgl-gdi/SConscript
@@ -16,6 +16,7 @@ env.Append(LIBS = [
'user32',
'kernel32',
'ws2_32',
+ 'advapi32',
])
env.Prepend(LIBS = [