-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
Labels
Component: CompilationRelated to compilation of Arduino sketchesRelated to compilation of Arduino sketchesType: DuplicateAnother item already exists for this topicAnother item already exists for this topicarduino-builderThe tool used to handle the Arduino sketch compilation processThe tool used to handle the Arduino sketch compilation processarduino-cliRelated to the arduino-cli toolRelated to the arduino-cli toolfeature requestA request to make an enhancement (not a bug fix)A request to make an enhancement (not a bug fix)
Description
I am here suggesting a possible way of allowing configuring the libraries in a reliable way.
Currently when a library requires configuration, it takes those information either as arguments in the initializer, or build it into the code as #define
s. The first type is already customizable, but what about the latter, as used in, say, some variant of Ethernet library that can drive W5100
, W5200
and W5500
?
I am suggesting the use of an optional config.h
file. Only #define
s are allowed in this file, and those lines are turned into -D
flags that is present when compiling the entire sketch. This will allow some libraries to be configured at compile time.
wizard97, 256dpi, luelista, NdK73 and d-a-v
Metadata
Metadata
Assignees
Labels
Component: CompilationRelated to compilation of Arduino sketchesRelated to compilation of Arduino sketchesType: DuplicateAnother item already exists for this topicAnother item already exists for this topicarduino-builderThe tool used to handle the Arduino sketch compilation processThe tool used to handle the Arduino sketch compilation processarduino-cliRelated to the arduino-cli toolRelated to the arduino-cli toolfeature requestA request to make an enhancement (not a bug fix)A request to make an enhancement (not a bug fix)