New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build_Flags (dynamic variables) separated in serveral lines (platform.ini) #889

Closed
GeneralLuzi opened this Issue Jan 27, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@GeneralLuzi

GeneralLuzi commented Jan 27, 2017

Hi,
I'm using the dynamic variables section within the paltform.ini very intensive.

[common]
build_flags = -DVERSION="1.2.3" '-DOTAAUTH="secret"' -DDEBUG="1" -DVAR1="1" -DVAR2="2" ....
lib_deps_builtin = SPI, Wire, ...
lib_deps_external = ArduinoJson@>5.6.0, WifiManager, ...

Hence, I would like to use this section separated in several lines per option due to readability reasons:`

[common]
build_flags =
              -DVERSION="1.2.3"
              '-DOTAAUTH="secret"'
              -DDEBUG="1"
              -DVAR1="1" 
              -DVAR2="2"
              ....
lib_deps_builtin =
              SPI,
              Wire,
              ...
lib_deps_external =
              ArduinoJson@>5.6.0,
              WifiManager,
              ...

It tested several scenarios and in conclusion you can use comma separated options within different lines (like lib__deps__builtin). Build flags (bulid__flags), which are not comma separated, cannot be used in different lines. You get a compilation error.
Question:

  • Is there another way to get a better readablity within the platform.ini?
  • Will there be a such feature in the future?

Thanks,
GL

@ivankravets ivankravets added this to the 3.3.0 milestone Mar 12, 2017

@ivankravets ivankravets modified the milestones: 3.3.0, 3.4.0 Mar 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment