[Issue 13265] Please detect the DXSDK when configuring sc.ini in the installer

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Aug 5 21:57:22 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13265

--- Comment #2 from Manu <turkeyman at gmail.com> ---
(In reply to Brad Anderson from comment #1)
> > The SDK installer also sets the DXSDK_DIR environment variable, so it's  probably better to use: 
> > Include: %DXSDK_DIR%\Include
> > Lib (x86): %DXSDK_DIR%\Lib\x86
> > Lib (x64): %DXSDK_DIR%\Lib\x64
> 
> If that's all that is needed we should just put them in the distributed
> sc.ini:
> https://github.com/D-Programming-Language/dmd/blob/master/ini/windows/bin/sc.
> ini
> 
> 
> Under [Environment32] (could be useful if Rainer's 32-bit COFF support
> happens):
> LIB=%LIB%;"%DXSDK_DIR%\Lib\x86"

Yeah, here's hoping!
It's a gigantic gaping hole in the D ecosystem! :)

> Under [Environment64]:
> LIB=%LIB%;"%DXSDK_DIR%\Lib\x64"
> 
> 
> I'm not familiar enough with DirectX these days to test this but if you
> could test that doing that works, either you or I could make a quick pull
> request to implement this.

Precisely, my sc.ini simply adds:

; DirectX SDK
LIB=%LIB%;"%DXSDK_DIR%\Lib\x64"

At the very end of the file, below the "Platform libraries (Windows SDK 7 and
6)". It works for me for years, and I'm sure this would work on anybodies
machines.

Do you reckon it's a good idea to add it, even if the SDK is not installed on
the user's machine? Should we check to see if it's there, and add it at the
same time as the various windows sdk's?

--


More information about the Digitalmars-d-bugs mailing list