Skip to content

On Windows, sdl2-config should be written in something other than bash #3516

@SDLBugzilla

Description

@SDLBugzilla

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: don't know
Reported for operating system, platform: Windows (All), All

Comments on the original bug report:

On 2020-01-18 01:03:50 +0000, Michael J. Walsh wrote:

I'd like to propose that in the Windows version of SDL, sdl2-config should be written in natively supported script system, like a batch file or Windows Script Host script.

I appreciate bash can work on Windows in wsl, cygwin, msys2 and probably others, but it's still not universally available.

On 2020-01-18 01:06:44 +0000, Michael J. Walsh wrote:

Created attachment 4169
link script to invoke cscript.exe

I'm attaching two documents:

sdl2-config.bat - a link script to invoke cscript.exe, and

sdl2-config.script - a javascript which imitates it's bash namesake. The only difference is that it assumes the prefix is the script's parent folder so if the script is in:

C:\Users\Shared\Downloads\SDL-ver2\bin

the prefix is set as

C:\Users\Shared\Downloads\SDL-ver2

On 2020-01-18 01:08:23 +0000, Michael J. Walsh wrote:

Created attachment 4170
a javascript which imitates it's bash namesake

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions