Is there any way to have the same functionality for include directories?
I need to create a multi-target abstraction, where each target has its own include files and own libraries.
For me it is rather one project with multiple targets.
lib_ignore part for me sadly doesn’t work, as I put target specific source files in a library directory, without doing anything that identifies it as a library.
Some kind of
lib_ignore_dir to ignore the whole library folder and add a target specific library/directory with a command like
lib_add_dir would be nice.
What I find weird is that when I for example create a new directory that I call
target, that is supposed to be used like the
lib directory, but in a way that not all of the libraries are added automatically.
I want to use the directory in a way, that I declare for every target a library directory, that should
be built and linked to the binary file.
platform = nxplpc
board = lpc1768
; Needs to stay for every probe
build_flags = -D MCB1700, -D LPC1768, -Wl,-T"./scripts/target/LPC1768/LPC1768.ld", -D DEBUG
extra_scripts = scripts/target/LPC1768/extra_script.py
; ignore everythin in lib folder and only add the platform specific library
lib_extra_dirs = target/LPC1768
upload_protocol = jlink-jtag
debug_tool = jlink
platform = atmelavr
board = atmega328p
; atmega328p specific binary files, e.g. board init etc.
lib_extra_dirs = target/ATmega328p
; build and debugging flags
build_flags = -D ATMEGA328P, -D DEBUG
; upload port.
upload_port = /dev/cu.SLAB_USBtoUART
The behavior of the
lib_extra_dirs seems to be different from the
lib directory, as header files seem not to be found properly.
this is the current repository’s revision, that I want to get working properly.
Thanks for your time and effort.