Skip to content
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

Improve `target:set`, `target:add` and add `target:del` to modify target configuration #353

waruqi opened this Issue Feb 15, 2019 · 0 comments


None yet
1 participant
Copy link

waruqi commented Feb 15, 2019


  • Improve target:add(), target:set()
  • Improve option:add(), option:set()
    • Constrains api pass parameter format
    • Ensure the behavior is consistent with usage in the description scope
      • add values
        • target:add("defines", "XXX", "YYY", "ZZZ")
      • add pathes
        • target:add("files", "src/*.c", {defines = "xx"})
          -> Is equivalent to add_files("src/*.c", {defines = "xx"})
      • set key values
        • target:set("configvar", "KEY", "VALUE")
      • add settings dictionary
        • target:add({links = "", defines = {""}})
      • add settings array
        • target:add({{links = "", defines = {""}}, {links = "", defines = {""}}})
  • Add target:del(), option:del()
    • target:del("files", "src/*.c")

@waruqi waruqi added the improvement label Feb 15, 2019

@waruqi waruqi added this to the v2.2.5 milestone Feb 15, 2019

@waruqi waruqi changed the title Improve `target:set`, `target:add` and add `target:remove` to modify target configuration Improve `target:set`, `target:add` and add `target:del` to modify target configuration Feb 17, 2019

@waruqi waruqi closed this Mar 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.