Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiki: We could add optional tips to remove the DirectX SDK dependency #2493

Open
rumia-san opened this issue Apr 29, 2023 · 0 comments
Open

Comments

@rumia-san
Copy link

Since the Irrlicht supports OpenGL, the DirectX SDK is not a required dependency.
Just modify the windows filter in premake/irrlicht/premake5.lua

    filter { "system:windows" }
        defines { "_IRR_WCHAR_FILESYSTEM", "NO_IRR_COMPILE_WITH_DIRECT3D_9_", "NO_IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_" }
        links { "imm32" }

rumia-san/ygopro@65808d1

So that we don't need to download and install DirectX SDK. We could add optional tips for this.


就是DirectX SDK不是必需的依赖,只要irrlicht有NO_IRR_COMPILE_WITH_DIRECT3D_9_NO_IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_这两个宏,编译就不需要DirectX SDK了,可以在WIKI里加个提示,可能会有像我一样不想下载旧版directx sdk的人……
当然,system.conf里use_d3d只能写成0了,或者像我一样把代码写死成opengl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant