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

Add option presets #128

Open
jimporter opened this issue Mar 11, 2020 · 0 comments
Open

Add option presets #128

jimporter opened this issue Mar 11, 2020 · 0 comments
Labels
Milestone

Comments

@jimporter
Copy link
Owner

jimporter commented Mar 11, 2020

It might be useful to allow build.bfg authors to add "option presets" to their config, allowing easy ways to set up build variants (debug, release, etc). What would this look like though? One option would be something like:

global_options([...], lang='c++', preset='debug')

executable(
    'exe',
    'src.cpp',
    compile_options=opts.preset([...], 'release')
)
@jimporter jimporter added this to the 0.6 milestone Mar 11, 2020
@jimporter jimporter modified the milestones: 0.6, 0.7 Jul 22, 2020
@jimporter jimporter modified the milestones: 0.7, 0.8 May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant