GithubHelp home page GithubHelp logo

Comments (4)

skabbes avatar skabbes commented on August 17, 2024

+1

from djinni.

artwyman avatar artwyman commented on August 17, 2024

It's reasonably likely this would be almost as expensive as if you did the full run and simply ignored the output files, since Djinni would still need to parse all the input to know the set of output files. Saving the I/O cost of writing them would be worthwhile, though, and not too difficult.

Another alternative here would be a mode in which Djinni outputs a single file (with a predictable name you can use in GYP actions). That can't work for Java, though.

from djinni.

mknejp avatar mknejp commented on August 17, 2024

This would be a help for tools like CMake.
CMake does have special targets to run code generators, but you have to supply it with the names of the generated files so it can do dependency analysis, know when to rebuild projects (for instance to add/remove generated files to Xcode projects) and stuff. So if it were possible to run djinni once to only get the output file names, capture them, and then forward them to the generator target, that might be a win.

Though this is yet hypothetical, we haven't integrated Djinni into our CMake toolchain yet.

from djinni.

artwyman avatar artwyman commented on August 17, 2024

This is available now. See the --list-in-files and --list-out-files parameters.

from djinni.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.