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

Comments

Projects
None yet
1 participant
@waruqi
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 the improvement label Nov 16, 2018

@waruqi waruqi added this to the v2.2.3 milestone Nov 16, 2018

@waruqi

This comment has been minimized.

Member

waruqi commented Nov 17, 2018

@waruqi

This comment has been minimized.

Member

waruqi commented Nov 17, 2018

@waruqi waruqi closed this Nov 18, 2018

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