diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-08-30 19:08:35 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-10-02 15:30:58 -0500 |
| commit | 9c51c824182a1b3180cecdd86b5af6c9dbc958ab (patch) | |
| tree | d59c79682d34f5af12e5f7b657e7375cca8d2c7b | |
| parent | ba2bd6e40a1a4b954fd0d508f5cc98d0f06d62bc (diff) | |
| download | nimterop-9c51c824182a1b3180cecdd86b5af6c9dbc958ab.tar.gz nimterop-9c51c824182a1b3180cecdd86b5af6c9dbc958ab.zip | |
Add autopoint detection
| -rw-r--r-- | .travis.yml | 6 | ||||
| -rw-r--r-- | appveyor.yml | 4 | ||||
| -rw-r--r-- | nimterop/build.nim | 5 |
3 files changed, 12 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index e56a392..564c34d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,11 @@ os: - linux - osx +addons: + apt: + packages: + - autopoint + language: c env: @@ -15,7 +20,6 @@ cache: - "$HOME/.choosenim/toolchains/nim-0.20.2" install: - # `set -u` failed for ubuntu: /home/travis/.travis/job_stages: line 107: secure: unbound variable - set -e - export CHOOSENIM_CHOOSE_VERSION=$BRANCH - | diff --git a/appveyor.yml b/appveyor.yml index 9525673..5386bbc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,7 +10,7 @@ matrix: environment: matrix: - NIM_VERSION: 0.19.6 - - NIM_VERSION: 0.20.0 + - NIM_VERSION: 0.20.2 for: - @@ -54,6 +54,8 @@ for: - image: Ubuntu install: + - sudo apt-get update + - sudo apt-get --yes --force-yes install liblzma-dev liblzma5 autopoint - if [ ! -e /home/appveyor/binaries ]; then echo $NIM_VERSION && mkdir /home/appveyor/binaries && diff --git a/nimterop/build.nim b/nimterop/build.nim index 53237c0..dfeb2d4 100644 --- a/nimterop/build.nim +++ b/nimterop/build.nim @@ -462,7 +462,10 @@ proc buildLibrary(lname, outdir, conFlags, cmakeFlags, makeFlags: string): strin if findExe("aclocal").len != 0: if findExe("autoconf").len != 0: if findExe("libtoolize").len != 0: - cfgCommon() + if findExe("autopoint").len != 0: + cfgCommon() + else: + conDepStr &= "autopoint executable missing" else: conDepStr &= "libtoolize executable missing" else: |
