ladislas / Bare-Arduino-Project

Start your Arduino projects right out of the box
MIT License
564 stars 68 forks source link

Single library across multiple projects #25

Closed g770 closed 8 years ago

g770 commented 8 years ago

Is it possible to have a single library that is shared across projects? In playing with this it looks like there is a 1:1 mapping between project and library, for example FooProject and FooLib.

ladislas commented 8 years ago

if your library is in lib/myLib, you can reference it from every project in src/myProject and have multiple project reference the same library.

but it can not be outside of the whole project. if you want to do so you can use submodules.

g770 commented 8 years ago

Hmm... ok, let me plan around a bit.

ladislas commented 8 years ago

my repo https://github.com/WeAreLeka/moti is a good example on how this works.

you'll see that in src I have different robot's behavior that all use the same libraries included from lib

I'm closing this now, feel free to reopen if needed.