ninja-build-gen icon indicating copy to clipboard operation
ninja-build-gen copied to clipboard

MSVC deps

Open GiffE opened this issue 7 years ago • 5 comments

Hey, This generator doesn't support msvc deps at the moment. https://ninja-build.org/manual.html#_deps

Currently if a depfile is provided it then writes a deps of 'gcc'.
It wouldn't be a large change to add an additional deps(type) function which provides access to what depfile type is provided.

something along the lines of (keep in mind I don't know coffeescript):

deps: (type) ->
    @deps = type
    this
 # Write the rule into a `stream`.
    write: (stream) ->
        ....
        if @dependencyFile? and @deps?
            stream.write "  depfile = #{@dependencyFile}\n"
            stream.write "  deps = #{@deps}\n"

Otherwise, great work on this generator, it has certainly helped.

GiffE avatar May 29 '17 13:05 GiffE