ArduinoFirmata-Android
ArduinoFirmata-Android copied to clipboard
Enhance Makefile
This pull request brings few changes to the Makefile, allowing users to rebuild the library from scratch after the clone:
-
usb-serial-for-androidsubmodule is now initialized automatically (previously had to be initialized manually withgit submodule init && git submodule update, before launchingmake init). - Compiles all sources altogether -
ArduinoFirmata-Androidandusb-serial-for-android, which ensures that compiler will find necessary depdendencies, and thatArduinoFirmata-Androidis compiled against sameusb-serial-for-androidversion as the one which will be then assembled (see below). - Creates both jars: for
ArduinoFirmata-Androiditself, and forusb-serial-for-android. This is necessary because it turns out thatusb-serial-for-androidjars are no longer updated/distributed for plain download, and project's README actually recommends to "link" its sources upon build directly - what this update effectively does.
P.S. I think though that a more proper way to manage the build process would be to implement a Gradle project, which will allow correct build on all platforms, and will allow managing usb-serial-for-android properly (as a dependency). This update however is a quick change to enable easier assembling of the libraries, while not changing the process conceptually.