Makefile: Structurate correctly for Arduino and PlatformIO

Signed-off-by: Ricardo Mena C <rgacort12@gmail.com>
This commit is contained in:
Ricardo Mena C 2016-12-17 00:19:04 -06:00
parent 21b19e6b7d
commit 719f1ed7a7
2 changed files with 12 additions and 2 deletions

View File

@ -137,11 +137,12 @@ html:
ARDUINO_LIB_FILES = MQTTClient/src/*.h MQTTClient/src/arduino/*.h $(srcdir)/*
ARDUINO_SAMPLES = MQTTClient/samples/arduino/*
LEGAL_FILES = edl-v10 epl-v10 notice.html about.html CONTRIBUTING.md README.md
LEGAL_FILES = edl-v10 epl-v10 notice.html about.html CONTRIBUTING.md README.md library.properties
arduino: mkdir
-mkdir -p ${blddir}/arduino/MQTTClient/examples
cp $(ARDUINO_LIB_FILES) ${blddir}/arduino/MQTTClient
-mkdir -p ${blddir}/arduino/MQTTClient/src
cp $(ARDUINO_LIB_FILES) ${blddir}/arduino/MQTTClient/src
cp $(LEGAL_FILES) ${blddir}/arduino/MQTTClient
cp -R $(ARDUINO_SAMPLES) ${blddir}/arduino/MQTTClient/examples
cd ${blddir}/arduino && zip -r arduino MQTTClient

9
library.properties Normal file
View File

@ -0,0 +1,9 @@
name=MQTTClient
version=1.0.0
author=Ian Craggs
maintainer=Ian Craggs https://github.com/icraggs
sentence=This is the lowest level library, the simplest and smallest, but hardest to use. It simply deals with serialization and deserialization of MQTT packets.
paragraph=...
category=Communication
url=https://github.com/eclipse/paho.mqtt.embedded-c
architectures=*