queezythegreat / arduino-cmake

Arduino CMake Build system
644 stars 216 forks source link

Arduino Core Disable Option. #44

Closed queezythegreat closed 11 years ago

queezythegreat commented 12 years ago

Add new option which disables the Arduino Core library for the given target. This option should enable users to completely bypass Arduino functionality, and write pure AVR code without Arduino's abstraction layer.

This option should automatically enable the NO_AUTOLIBS option, as it make no sens to have Arduino Library detection if the Core is not being used. Sketch support should also be disabled.

The proposed new option should be called MANUAL:

generate_arduino_firmware(firmware_name
                          SRCS src1.cpp src2.cpp src3.cpp
                          HDRS hdr1.h hdr2.h hdr3.h
                          MANUAL)

This functionality should also be present for generate_arduino_library().

Another possibility would be to create a new command called generate_avr_firmware().