We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4953 - On Windows, sdl2-config should be written in something other than bash
Summary: On Windows, sdl2-config should be written in something other than bash
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: don't know
Hardware: All Windows (All)
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-18 01:03 UTC by Michael J. Walsh
Modified: 2020-01-18 01:08 UTC (History)
0 users

See Also:


Attachments
link script to invoke cscript.exe (112 bytes, text/plain)
2020-01-18 01:06 UTC, Michael J. Walsh
Details
a javascript which imitates it's bash namesake (1.93 KB, text/javascript)
2020-01-18 01:08 UTC, Michael J. Walsh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael J. Walsh 2020-01-18 01:03:50 UTC
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.
Comment 1 Michael J. Walsh 2020-01-18 01:06:44 UTC
Created attachment 4169 [details]
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
Comment 2 Michael J. Walsh 2020-01-18 01:08:23 UTC
Created attachment 4170 [details]
a javascript which imitates it's bash namesake