-
Notifications
You must be signed in to change notification settings - Fork 5
/
dub.json
60 lines (60 loc) · 1.66 KB
/
dub.json
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"name": "paho-mqttd",
"authors": [
"Frank Pagliughi"
],
"description": "The Eclipse Paho MQTT D Client for Posix and Windows",
"copyright": "Copyright © 2016, Frank Pagliughi",
"license": "EPL-1.0",
"homepage": "https://github.com/eclipse/paho.mqtt.d",
"targetType": "dynamicLibrary",
"targetPath": "./lib/",
"libs": ["paho-mqtt3a"],
"configurations": [
{
"name": "paho-mqttd-posix",
"platforms": ["posix"],
"preBuildCommands": [
"if [ -d lib ]; then cd lib ; rm -f libpaho-mqttd.so libpaho-mqttd.so.0 ; fi",
"if [ -e lib/libpaho-mqttd.so.0.1 ]; then cd lib ; mv libpaho-mqttd.so.0.1 libpaho-mqttd.so; fi"
],
"postBuildCommands": [
"cd lib ; mv libpaho-mqttd.so libpaho-mqttd.so.0.1",
"cd lib ; ln -s libpaho-mqttd.so.0.1 libpaho-mqttd.so.0",
"cd lib ; ln -s libpaho-mqttd.so.0 libpaho-mqttd.so"
]
}
],
"subPackages": [
{
"name": "async_pub",
"description": "Simple Paho MQTT example for message publishing",
"targetType": "executable",
"targetName": "async_pub",
"sourceFiles": [ "samples/async_pub.d" ],
"dependencies": {
"paho-mqttd": { "path": "." }
}
},
{
"name": "async_sub",
"description": "Simple Paho MQTT example for message subscription",
"targetType": "executable",
"targetName": "async_sub",
"sourceFiles": [ "samples/async_sub.d" ],
"dependencies": {
"paho-mqttd": { "path": "." }
}
},
{
"name": "thr_sub",
"description": "Simple Paho MQTT example for threaded message subscription",
"targetType": "executable",
"targetName": "thr_sub",
"sourceFiles": [ "samples/thr_sub.d" ],
"dependencies": {
"paho-mqttd": { "path": "." }
}
}
]
}