[Geany-Users] setting compile-build command for Allegro

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Geany-Users] setting compile-build command for Allegro

Amir Teymuri

I want to compile a source code of the Allegro game library. After some googling i found this compile command (

g++ hello.cpp -o hello -I/usr/include/allegro5 -L/usr/lib -lallegro

) which runs the program. How can i set this as compile command in geany, and is there a way not having to switch between this and a normal compile command automatically when working on an Allegro and some other/Non-Allegro files?


Many thanks


_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] setting compile-build command for Allegro

Colomban Wendling
Le 09/08/2016 à 00:53, Amir Teymuri a écrit :
> […] How can i set this as compile command in geany,

Build->Set build commands.  There are per-filetype commands, and to set
the ones for a specific filetype you need to access this dialog with a
file of the appropriate type open.

See https://www.geany.org/manual/#set-build-commands

> and is there a way not having to switch between this and a normal
> compile command automatically when working on an Allegro and some
> other/Non-Allegro files?

I would recommend you to use a build system of some sort (Make,
Automake, CMake, Ninja or whatever else).

Alternatively, you can set build comments per Geany project, so you
could make a project file for your allegro-using program, and change its
own build commands instead of the global ones.

Regards,
Colomban
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Loading...