Author Topic: Setting up Geany for MegaGlest on GNU/Linux  (Read 656 times)

Baŝto

  • Summoner
  • **
  • Posts: 59
    • View Profile
    • find me on diaspora
Setting up Geany for MegaGlest on GNU/Linux
« on: 10 August 2014, 13:10:44 »
What is geany?

C++:



If you don’t use C much, you better switch places of C and C++ in filetype_extensions.conf (“Tools” > “Configuration Files”).

Otherwise .h files will be opened with C syntax highlighting by default!

Setting up a project:



Simply click on “Project” > “New” and create a new .geany-project.

Open a C++-File and click on “Project” > “Properties”.

Project:


Name=Megaglest
Base Directory=/pathtoMegaglest/megaglest-source/source/
File Pattern=*.cpp *.h CMakeList.txt *.ui

Build:


Label=Build
Command=./build-mg.sh
Working Directory=%p../mk/linux

Label=Run
Command=./$(zenity --list --radiolist --column "start" --column "application" TRUE megaglest FALSE megaglest_editor FALSE megaglest_g3dviewer FALSE megaglest_tests)
Working Directory=%p../mk/linux

Zenity is further GTK application, which offers simple dialogs.

This way you won’t get all megaglest methode names completed, you still need to open those classes.
But since Geany does not do a conext based completion, it’s better this way.

Interesting plugins:


  • GProject for better project management (search, switching between .h and .cpp...), uses settings of the built in feature
  • GeanyVC for git
  • ClassBuilder for new classes (built in)
  • CodeNav for switching between .h and .cpp files
« Last Edit: 11 August 2014, 09:19:35 by Baŝto »

 

anything