[gtk-web] Update pkg-config invocation



commit 452b2a757756f35490e25844d7ca703d581d6292
Author: Emmanuele Bassi <ebassi gmail com>
Date:   Thu Aug 19 17:40:37 2021 +0000

    Update pkg-config invocation
    
    Update for GTK4.

 _docs/dev-tools/index.md | 64 +++++++++++++++++++++++++-----------------------
 1 file changed, 34 insertions(+), 30 deletions(-)
---
diff --git a/_docs/dev-tools/index.md b/_docs/dev-tools/index.md
index f1ec71c..bc8c171 100644
--- a/_docs/dev-tools/index.md
+++ b/_docs/dev-tools/index.md
@@ -12,35 +12,39 @@ The following interactive shell session demonstrates how `pkg-config` is used
 (the actual output on your system may be different):
 
 ```sh
-$ pkg-config --cflags gtk+-3.0
- -pthread -I/usr/include/gtk-3.0 
- -I/usr/lib64/gtk-3.0/include
- -I/usr/include/atk-1.0
- -I/usr/include/cairo
- -I/usr/include/pango-1.0
- -I/usr/include/glib-2.0
- -I/usr/lib64/glib-2.0/include
- -I/usr/include/pixman-1
- -I/usr/include/freetype2
- -I/usr/include/libpng12
-$ pkg-config --libs gtk+-3.0
- -pthread
- -lgtk-3
- -lgdk-3
- -latk-1.0
- -lgio-2.0
- -lpangoft2-1.0
- -lgdk_pixbuf-2.0
- -lpangocairo-1.0
- -lcairo
- -lpango-1.0
- -lfreetype
- -lfontconfig
- -lgobject-2.0
- -lgmodule-2.0
- -lgthread-2.0
- -lrt
- -lglib-2.0
+$ pkg-config --cflags gtk4
+-I/usr/include/gtk-4.0
+-I/usr/include/pango-1.0
+-I/usr/include
+-I/usr/include/glib-2.0
+-I/usr/lib64/glib-2.0/include
+-I/usr/include/harfbuzz
+-I/usr/include/freetype2
+-I/usr/include/libpng16
+-I/usr/include/libmount
+-I/usr/include/blkid
+-I/usr/include/fribidi
+-I/usr/include/libxml2
+-I/usr/include/cairo
+-I/usr/include/pixman-1
+-I/usr/include/gdk-pixbuf-2.0
+-I/usr/include/graphene-1.0
+-I/usr/lib64/graphene-1.0/include
+-mfpmath=sse -msse -msse2
+-I/usr/include/gio-unix-2.0
+-pthread
+$ pkg-config --libs gtk4
+-lgtk-4
+-lpangocairo-1.0
+-lpango-1.0
+-lharfbuzz
+-lgdk_pixbuf-2.0
+-lcairo-gobject
+-lcairo
+-lgraphene-1.0
+-lgio-2.0
+-lgobject-2.0
+-lglib-2.0
 ```
 
 The simplest way to compile a program is to use the "backticks" feature of
@@ -49,7 +53,7 @@ its output will be substituted into the command line before execution. So to
 compile a GTK "Hello, World" application, you would type the following:
 
 ```sh
-$ cc `pkg-config --cflags gtk+-3.0` hello.c -o hello `pkg-config --libs gtk+-3.0`
+$ cc `pkg-config --cflags gtk4` hello.c -o hello `pkg-config --libs gtk4`
 ```
 
 # Development environments


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