Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Makefile #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

candidtim
Copy link

This pull request brings few changes to the Makefile, allowing users to rebuild the library from scratch after the clone:

  1. usb-serial-for-android submodule is now initialized automatically (previously had to be initialized manually with git submodule init && git submodule update, before launching make init).
  2. Compiles all sources altogether - ArduinoFirmata-Android and usb-serial-for-android, which ensures that compiler will find necessary depdendencies, and that ArduinoFirmata-Android is compiled against same usb-serial-for-android version as the one which will be then assembled (see below).
  3. Creates both jars: for ArduinoFirmata-Android itself, and for usb-serial-for-android. This is necessary because it turns out that usb-serial-for-android jars 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.

As usb-serial-for-android doesn't provide thier
own build but propose "linking" sources upon
user module build, Makefile is updated to do
exactly this.

Additionally fixed paths of resources in the
packaged jar file: resources are now packed
directy into the root.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant