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 custom command in vs project generator #1792

Closed
waruqi opened this issue Nov 2, 2021 · 1 comment
Closed

Add custom command in vs project generator #1792

waruqi opened this issue Nov 2, 2021 · 1 comment

Comments

@waruqi
Copy link
Member

waruqi commented Nov 2, 2021

Related issues: #1735

@waruqi
Copy link
Member Author

waruqi commented Nov 15, 2021

I have supported it only for rules with batchcmds

example: tests/project/other/bin2c

rule("foo")
    after_buildcmd(function (target, batchcmds, opt)
        batchcmds:show("hello xmake!")
        batchcmds:cp("xmake.lua", "/tmp/")
        -- batchcmds:execv("echo", {"hello", "world!"})
        -- batchcmds:runv("echo", {"hello", "world!"})
    end)

target("test")
    set_kind("binary")
    add_rules("foo")
    add_files("src/*.c")
xmake project -k vs

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