You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that the script 'raylib/examples/raylib_compile_execute.bat' is for Windows but it assumes the MingW installation of gcc. I would like to provide a supplement to that for using native Windows build tools. It would take the same parameters.
It is a bit more involved to set up and that would have to be explained to someone wanting to work examples from a command-line environment.
Is this an useful idea?
##Background
Starting with Visual Studio 2017, the Environment does not provide any vars by which vsvarsall.bat can be located. This prevents automation in scripts that establish a command-line environment for direct use of the Microsoft command-line tools, especially CL.exe.
There are ways to overcome this and Microsoft developers provide guidance about it.
There are shortcuts in the start menu/page on Windows 7 and beyond that initiate CMD.exe with vcvarsall.bat performed. This provides for three things,
The shortcuts (i.e., x64 Native Tools Command Prompt for VS 2022) can be performed in advance of any execution of batch files or commands requiring the command-line environment. By navigating to the location of a project under development, VS Code can be launched and it will detect the environment and all of the standard include files, providing intellisense for those files as well as C/C++ formatting and colorization. Batch files can detect whether this has happened and operate accordingly.
The shortcut can be copied to the desktop and customized to start in a desired location (and one can have multiple customizations). This is much better that the default of starting where the build tools are installed :). In addition, with a desktop shortcut, the properties can be used to customize the command-line display, setting the default window size and colors of various elements.
Here's an example of that in my preferred shortcut and setup I am working on.
This is a construction comparable to what the 'raylib/projects/scripts/build-windows.bat' does.
Another operation that (2) permits is extraction of an absolute location for access to vcvarsall.bat in other scripts. This is clumsier and more error-prone than (2).
I would propose providing something similar as a counterpart of raylib/examples/raylib_compile_execute.bat but for Native Windows on my adaptation of build-windows.bat
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I notice that the script 'raylib/examples/raylib_compile_execute.bat' is for Windows but it assumes the MingW installation of gcc. I would like to provide a supplement to that for using native Windows build tools. It would take the same parameters.
It is a bit more involved to set up and that would have to be explained to someone wanting to work examples from a command-line environment.
Is this an useful idea?
##Background
Starting with Visual Studio 2017, the Environment does not provide any vars by which
vsvarsall.bat
can be located. This prevents automation in scripts that establish a command-line environment for direct use of the Microsoft command-line tools, especiallyCL.exe
.There are ways to overcome this and Microsoft developers provide guidance about it.
There are shortcuts in the start menu/page on Windows 7 and beyond that initiate CMD.exe with vcvarsall.bat performed. This provides for three things,
x64 Native Tools Command Prompt for VS 2022
) can be performed in advance of any execution of batch files or commands requiring the command-line environment. By navigating to the location of a project under development, VS Code can be launched and it will detect the environment and all of the standard include files, providing intellisense for those files as well as C/C++ formatting and colorization. Batch files can detect whether this has happened and operate accordingly.Here's an example of that in my preferred shortcut and setup I am working on.
This is a construction comparable to what the 'raylib/projects/scripts/build-windows.bat' does.
I would propose providing something similar as a counterpart of raylib/examples/raylib_compile_execute.bat but for Native Windows on my adaptation of
build-windows.bat
Beta Was this translation helpful? Give feedback.
All reactions