Page 1 of 1

Project files as compiler definitions

Posted: Thu Sep 21, 2023 5:12 pm
by bsilver
Maybe I missed it in documentation, but what I'd like to do is have a way to point a command-line compiler at a project or some kind of definition file, generated by the IDE, that has all the flags to generate the executable(s) for a project by simply pointing the compiler to the project file.

My thought was that this could simplify automatically building applications for testing and building on different platforms with a script.

(If someone already has a good way of extracting what flags are used in generating your application with current settings from the IDE, please let me know :-) )

Re: Project files as compiler definitions

Posted: Thu Sep 21, 2023 9:05 pm
by freak
You can compile a project from the commandline by calling the IDE with the "/BUILD" (Windows) or "--build" (Linux/OSX) commandline switch.

See here: https://www.purebasic.com/documentation ... dline.html

Re: Project files as compiler definitions

Posted: Thu Sep 21, 2023 11:00 pm
by bsilver
Awesome, thanks!