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 on_build, on_build_file and on_xxx for target and rule #259

Closed
waruqi opened this issue Nov 16, 2018 · 2 comments
Closed

Improve on_build, on_build_file and on_xxx for target and rule #259

waruqi opened this issue Nov 16, 2018 · 2 comments
Milestone

Comments

@waruqi
Copy link
Member

waruqi commented Nov 16, 2018

Improve on_build in target/rule

We can call original build script:

on_build(function (target, opt)
    opt.origin(target, opt)
end)

Add before/after/on_build_file in target

before_build_file(function (target, sourcefile, opt)
end)

on_build_file(function (target, sourcefile, opt)
    opt.origin(target, sourcefile, opt)
end)

after_build_file(function (target, sourcefile, opt)
end)

Add before/after/on_build_files in target

before_build_files(function (target, sourcebatch, opt)
end)

on_build_files(function (target, sourcebatch, opt)
    opt.origin(target, sourcebatch, opt)
end)

before_build_files(function (target, sourcebatch, opt)
end)
@waruqi waruqi added this to the v2.2.3 milestone Nov 16, 2018
@waruqi
Copy link
Member Author

waruqi commented Nov 17, 2018

#261

@waruqi
Copy link
Member Author

waruqi commented Nov 17, 2018

@waruqi waruqi closed this as completed Nov 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant