A tool to setup new projects in c++
- Ninja
- Clang
- Set an environment variable to the .exe file (or just type the full path to the tool)
- Use the tool in the project folder.
- Adjust the varsx64.ninja and varsx86.ninja files for your includes, libraries, and flags if needed.
- Add your files to the src folder and include folder and call the update function for this tool.
- Use the buildx64.bat or buildx86.bat (dependending on what you want to build for) to build your project.
- Profit???
- -v
This reports the version of this tool. - -help or -h
This list the commands, what they do, and what the tool does. - -f
This selects a different directory than the current directory for the tool. - -n
This set the project name which will determine the output files name (Not Required). Default name is output. - -u
This update a project setup by this tool at the current directory. Should be called when you change anything in the src folder. - -i
This sets some environment variables that this tool uses such as WLIBVALUES. - -c
This sets a variable for the compiler that you wish to use. It can be a path. By default, it is "clang" - -ct
This sets a variable for the compiler type that you are using. This can be automatically set by -c. Will only detect gcc, clang, and msvc.
- -Include_Windows
Includes the windows headers and libraries for both x86 and x64. Done through environment variables - -Static_Library
Sets the project up for building a static library. Other builds are still included. - -Dynamic_Library
Sets the project up for building a dynamic library. Other builds are still included. - -Ext_Debug_Flags
Adds additional debug options to the debug build of the project. - -VSCode_Files
Adds settings files for vscode to build and launch the program. - -Exclude_x86
Removes the x86 build and launch options. - -Exclude_x64
Removes the x64 build and launch options.
This tool can be used with any compiler and operating system that ninja supports.
By default, this tool uses clang and outputs a batch file for easy compilation.
cppPS can now use any compiler specified through the -c option and assumes that
either gcc or msvc syntax will work. If they do not, the user must adjust the generated
files.
cppPS can also generate the necessary environment variables to include windows by using the -i option.