Giter Club home page Giter Club logo

Comments (4)

floooh avatar floooh commented on August 29, 2024

The cmake script should generate a dummy .cc and .h file on ./fips gen (or any cmake run) if those don't exist yet (see here: https://github.com/floooh/fips/blob/master/cmake/fips_generators.cmake#L11), this seems to be necessary because cmake requires that all source files exist.

I'm currently rewriting the code generation stuff in the 'refactorgen' branch, so some things will change (most importantly the function signature of the python generate() functions, the details for this rewrite are here: #16

I have tried to move the generated files out of the source tree so that it is easier to keep them out of version control, but this is tricky because of the header search path setup. Because C compiler searches first in the directory of the current source I would have to assign per-source-file search paths, I think cmake allows this but it's not very elegant.

Another option would be to automatically populate a local .gitignore file, but I don't like that solution either :/

from fips.

mgerhardy avatar mgerhardy commented on August 29, 2024

The advantage of having it in the source tree is that you could browse it more easily. There might be situations where you have to open a generated file. Also for example eclipse CDT does index only files that are part of the project. If you move it out of out of the project dir, you will never get something indexed.

I would vote for populating the .gitignore ;)

from fips.

floooh avatar floooh commented on August 29, 2024

Ok, I'll try a few different solutions over the weekend... the generated files would still be available in IDE project browsers since they are part of the project, but not in normal text editors like vim...

from fips.

floooh avatar floooh commented on August 29, 2024

I have merged the new code generation stuff (this is now handled through a new fips_generate() macro), and opened a new issue for not putting generated source files into version control.

from fips.

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.