Re: Switching GTK version

Hi Igor,

On Tue, 2017-08-22 at 15:48 -0400, Igor Korot wrote:
 Hi, ALL,
I have setup to do my development for GTK+2 and GTK+3 on 2 different
My project is on GitHub and there is one codebase.

What's the best way to set up Makefiles?

You're going to find this is a matter of opinion. Traditionally, GTK+
and GNOME projects have used GNU autotools for their build system. Many
are now moving to meson. Either way, I suggest you take some time and
learn one or both in order to make an informed decision about which
build system is best for you.

Meson is relatively new, and has most of its documentation on its
website[1]. GNU autotools has a vast online manual available[2],
however I recommend reading "Autotools: A Practition's Guide to to GNU
Autoconf, Automake, and Libtool"[3] to get a hands-on understanding of
the autotools suite.

2:, etc.

You could, of course, eschew all of those and use your own hand-
maintained Makefile. You'll find varying levels of opinion there too,
although you'll encounter some pretty compelling arguments against
maintaining your own hand-crafted Makefiles anywhere you look. In this
case, you could consider at least using pkg-config to find out whether
your required libraries are installed and where they are located on
your build host.

Is it feasible to define some environment variable and select GTK
version if it defined?

Or there is a better alternative?

Thank you.
gtk-list mailing list
gtk-list gnome org

Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]