twxs / peg-cmake Goto Github PK
View Code? Open in Web Editor NEWPEG.js cmake parser
License: MIT License
PEG.js cmake parser
License: MIT License
Hi,
Hope you are all well !
Is it possible to extract the tree of package dependencies from a CMakeLists.txt and export it into a yaml with peg-cmake ?
More clearly, is it possible to get all the commands attributes key/value from a standard cmake macro and from custom cmake macros/functions ?
Custom functions/macros:
https://github.com/headupinclouds/gatherer/blob/develop/CMakeLists.txt#L66
Packages,Components,Version
https://github.com/halismai/bpvo/blob/master/CMakeLists.txt#L124
https://github.com/halismai/bpvo/blob/master/CMakeLists.txt#L136
I would find it useful for building Docker Image for any c++ project, alpine based, more quickly by knowing the list of missing dependencies to add with the apk manager.
I haven't find any good cmake lexer/parser in go, as I am writing my docker bundler in golang, so I started to check for python based script, neither :-(
Thanks for any tips or insights about this question ! :-)
Have a good day !
Cheers,
Richard
endfunction
, endmacro
, etc parameters are not stored in the AST, but should be included.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.