Project files as compiler definitions

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
bsilver
User
User
Posts: 27
Joined: Tue Jun 27, 2023 3:36 pm

Project files as compiler definitions

Post 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 :-) )
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Project files as compiler definitions

Post 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
quidquid Latine dictum sit altum videtur
bsilver
User
User
Posts: 27
Joined: Tue Jun 27, 2023 3:36 pm

Re: Project files as compiler definitions

Post by bsilver »

Awesome, thanks!
Post Reply