Add PKG_CONFIG_PATH for libffi
This commit is contained in:
parent
a4657149d7
commit
53a723c414
2
LICENSE
2
LICENSE
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2016, 2017, 2018 Rene Hexel
|
||||
Copyright (c) 2016, 2017, 2018, 2019 Rene Hexel
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
@ -6,7 +6,7 @@ A Swift wrapper around gdk-3.x that is largely auto-generated from gobject-intro
|
|||
|
||||
### Swift
|
||||
|
||||
To build, you need at least Swift 4 (Swift 4.2.x should work fine), download from https://swift.org/download/ -- if you are using macOS, make sure you have the command line tools installed as well). Test that your compiler works using `swift --version`, which should give you something like
|
||||
To build, you need at least Swift 4 (Swift 5 should work fine), download from https://swift.org/download/ -- if you are using macOS, make sure you have the command line tools installed as well). Test that your compiler works using `swift --version`, which should give you something like
|
||||
|
||||
$ swift --version
|
||||
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
|
||||
|
@ -15,12 +15,12 @@ To build, you need at least Swift 4 (Swift 4.2.x should work fine), download fro
|
|||
on macOS, or on Linux you should get something like:
|
||||
|
||||
$ swift --version
|
||||
Swift version 4.2.1 (swift-4.2.1-RELEASE)
|
||||
Swift version 4.2.3 (swift-4.2.3-RELEASE)
|
||||
Target: x86_64-unknown-linux-gnu
|
||||
|
||||
### Gtk 3.18 or higher
|
||||
|
||||
The Swift wrappers have been tested with glib-2.46, 2.48, 2.52, 2.56, and 2.58, and gdk/gtk 3.18, 3.20, 3.22, and 3.24. They should work with higher versions, but YMMV. Also make sure you have `gobject-introspection` and its `.gir` files installed.
|
||||
The Swift wrappers have been tested with glib-2.46, 2.48, 2.52, 2.56, 2.58 and 2.60, and gdk/gtk 3.18, 3.20, 3.22, and 3.24. They should work with higher versions, but YMMV. Also make sure you have `gobject-introspection` and its `.gir` files installed.
|
||||
|
||||
#### Linux
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ module=`echo "${Module}" | tr '[:upper:]' '[:lower:]'`
|
|||
mod=`echo "${Mod}" | tr '[:upper:]' '[:lower:]'`
|
||||
BUILD_DIR=`pwd`/.build
|
||||
export PATH="${BUILD_DIR}/gir2swift/.build/release:${BUILD_DIR}/gir2swift/.build/debug:${PATH}"
|
||||
export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig:${PKG_CONFIG_PATH}
|
||||
LINKFLAGS=`pkg-config --libs $module pangocairo pangoft2 pango gobject-2.0 gio-unix-2.0 glib-2.0 | tr ' ' '\n' | sed -e 's/^/-Xlinker /' -e 's/-Wl,//' | tr '\n' ' ' | sed -e 's/^/-Xlinker /' -e 's/-Wl,//g' -e 's/ -pthread/ -lpthread/g' -e 's/-Xcc[ ]*-Xlinker/-Xlinker/g' -e 's/-Xlinker[ ]*-Xcc/-Xcc/g' -e 's/-Xlinker[ ]*--export-dynamic//g' -e 's/-Xlinker[ ]*-Xlinker/-Xlinker/g' -e 's/-Xcc *$//' -e 's/-Xlinker *$//'`
|
||||
CCFLAGS=`pkg-config --cflags $module pangocairo pangoft2 pango gobject-2.0 gio-unix-2.0 glib-2.0 | tr ' ' '\n' | sed 's/^/-Xcc /' | tr '\n' ' ' | sed -e 's/^/-Xlinker /' -e 's/-Wl,//g' -e 's/ -pthread/ -lpthread/g' -e 's/-Xcc[ ]*-Xlinker/-Xlinker/g' -e 's/-Xlinker[ ]*-Xcc/-Xcc/g' -e 's/-Xlinker[ ]*--export-dynamic//g' -e 's/-Xlinker[ ]*-Xlinker/-Xlinker/g' -e 's/-Xcc *$//' -e 's/-Xlinker *$//'`
|
||||
TAC="tail -r"
|
||||
|
|
Loading…
Reference in New Issue