forked from eclipse-paho/paho.mqtt.rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devenv.sh
27 lines (23 loc) · 826 Bytes
/
devenv.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#
# devenv.sh
#
# Sets up a development environment for working on the the Paho Rust Library on Linux,
# using the development tree of the Paho C library.
#
# This is _not_ necessary for building applications against the library once it has
# been installed - it's just for library developers.
#
# Source it into the current shell as:
# $ source devenv.sh
#
# If readlink doesn't exist, consider using 'realpath', if available.
PAHO_MQTT_C_PATH=$(readlink -e ../paho.mqtt.c)
PAHO_MQTT_C_INC_PATH=${PAHO_MQTT_C_PATH}/src
PAHO_MQTT_C_LIB_PATH=${PAHO_MQTT_C_PATH}/build/output
# This is necessary for bindgen when creating the bindings
# during a clean build.
# It requires clang 3.8+
export LIBCLANG_PATH=/usr/lib/llvm-4.0/lib
export DEVELOP=1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${PAHO_MQTT_C_LIB_PATH}