mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-08 16:52:13 +08:00
Fix snapcraft build.
This commit is contained in:
parent
7a26cc259c
commit
2801d5c128
@ -10,7 +10,7 @@ description: This is a message broker that supports version 5.0, 3.1.1, and 3.1
|
||||
example.
|
||||
confinement: strict
|
||||
grade: stable
|
||||
base: core20
|
||||
base: core18
|
||||
|
||||
apps:
|
||||
mosquitto:
|
||||
@ -57,20 +57,19 @@ parts:
|
||||
mosquitto:
|
||||
after:
|
||||
- lws
|
||||
- cjson
|
||||
plugin: make
|
||||
make-parameters: ["prefix=/usr", "WITH_WEBSOCKETS=yes", "WITH_ADNS=yes", "CFLAGS=-Wall -ggdb -O2 -I$SNAPCRAFT_STAGE -D_GNU_SOURCE"]
|
||||
make-parameters: ["prefix=/usr", "WITH_WEBSOCKETS=yes", "WITH_ADNS=yes", "CFLAGS=-Wall -ggdb -O2 -I$SNAPCRAFT_STAGE/include -I$SNAPCRAFT_STAGE/include/cjson -D_GNU_SOURCE"]
|
||||
source: https://github.com/eclipse/mosquitto
|
||||
source-type: git
|
||||
|
||||
build-packages:
|
||||
- libcjson-dev
|
||||
- libssl-dev
|
||||
- xsltproc
|
||||
- docbook-xsl
|
||||
- gcc
|
||||
- g++
|
||||
stage-packages:
|
||||
- libcjson1
|
||||
- libssl1.0.0
|
||||
- ca-certificates
|
||||
prime:
|
||||
@ -99,3 +98,13 @@ parts:
|
||||
- include/lws_config.h
|
||||
- lib/libwebsockets.a
|
||||
prime: [-*]
|
||||
|
||||
cjson:
|
||||
plugin: cmake
|
||||
configflags: ["-DCMAKE_C_FLAGS=-fPIC", "-DBUILD_SHARED_AND_STATIC_LIBS=OFF", "-DBUILD_SHARED_LIBS=OFF", "-DCJSON_BUILD_SHARED_LIBS=OFF", "-DCJSON_OVERRIDE_BUILD_SHARED_LIBS=OFF"]
|
||||
source: https://github.com/DaveGamble/cJSON/archive/v1.7.14.tar.gz
|
||||
source-type: tar
|
||||
stage:
|
||||
- include/cjson/cJSON.h
|
||||
- lib/libcjson.a
|
||||
prime: [-*]
|
||||
|
Loading…
x
Reference in New Issue
Block a user