Changeset dd1bdd3 in subsurface


Ignore:
Timestamp:
Jul 15, 2017, 9:59:31 PM (2 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
c21845aa
Parents:
20f5609a
Message:

build.sh: don't fail if we can't find libusb or hidapi

Also remove a left behind debug printout.

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/build.sh

    r20f5609a rdd1bdd3  
    231231                # or more specifically, the way libdivecomputer references
    232232                # the include files goes wrong
    233                 LIBDC_CFLAGS=-I$(dirname $(pkg-config --cflags libusb-1.0 | sed -e 's/^-I//'))
    234                 LIBDC_CFLAGS="${LIBDC_CFLAGS} -I$(dirname $(pkg-config --cflags hidapi | sed -e 's/^-I//'))"
    235                 echo $LIBDC_CFLAGS
     233                pkg-config --exists libusb-1.0 && LIBDC_CFLAGS=-I$(dirname $(pkg-config --cflags libusb-1.0 | sed -e 's/^-I//'))
     234                pkg-config --exists hidapi && LIBDC_CFLAGS="${LIBDC_CFLAGS} -I$(dirname $(pkg-config --cflags hidapi | sed -e 's/^-I//'))"
    236235        fi
    237236
Note: See TracChangeset for help on using the changeset viewer.