tools/keyboardio-builder: Only add -libraries, if needed

If there are no local libraries installed, do not add the directory to
the arduino-builder commandline.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/84/head
Gergely Nagy 8 years ago
parent 942df470f6
commit 7bca9e9497

@ -114,6 +114,10 @@ compile () {
${compile_HOOKS} ${compile_HOOKS}
if [ -d "${ARDUINO_LOCAL_LIB_PATH}/libraries" ]; then
local_LIBS="-libraries \"${ARDUINO_LOCAL_LIB_PATH}/libraries\""
fi
${ARDUINO_BUILDER} \ ${ARDUINO_BUILDER} \
-compile \ -compile \
-hardware "${ARDUINO_PATH}/hardware" \ -hardware "${ARDUINO_PATH}/hardware" \
@ -121,7 +125,7 @@ compile () {
${ARDUINO_TOOLS_PARAM} \ ${ARDUINO_TOOLS_PARAM} \
-tools "${ARDUINO_PATH}/tools-builder" \ -tools "${ARDUINO_PATH}/tools-builder" \
-fqbn "${FQBN}" \ -fqbn "${FQBN}" \
-libraries "${ARDUINO_LOCAL_LIB_PATH}/libraries" \ ${local_LIBS} \
-libraries "${BOARD_HARDWARE_PATH}/.." \ -libraries "${BOARD_HARDWARE_PATH}/.." \
-libraries "${ROOT}" \ -libraries "${ROOT}" \
${EXTRA_BUILDER_ARGS} \ ${EXTRA_BUILDER_ARGS} \

Loading…
Cancel
Save