blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.81k stars 1.38k forks source link

Added option to compile dynamic library #526

Closed hajosc closed 3 years ago

hajosc commented 3 years ago

Description

Adds option to linux/Makefile to crate a dynamically linked library. And install said lib. Pls review the Makefile -- the auto-generated pkg-config file sets a default library verion nmbr of 0.0 for now. You may want to automate this with your release system.

Issues Resolved

n/a

vshymanskyy commented 3 years ago

Thanks! This is rather cool, but Blynk is intended to statically linked. It's a really tiny library, so I'm wondering why dynamic linking was needed?

hajosc commented 3 years ago

Heya, I'm thinking to release IoT code which uses blynk. If a user were to compile it on her/his machine, they would have to download the blynk library source and meddle with my Makefile to also get the blynk lib compiled and properly linked. I'm sure this is beyond many people. If there's a shared lib on their system however, then my code compiles cleanly and easily without too much expert knowledge. I could of course also package the blynk lib with my code, but that doesn't seem right either... Let me know if you have a better idea how to do this, very happy to learn ;-) Thx, Sir!