Json ide script for gn to output cmake.
authorbungeman <bungeman@google.com>
Fri, 23 Sep 2016 15:16:04 +0000 (08:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 23 Sep 2016 15:16:04 +0000 (08:16 -0700)
commit623ef92e4fd7d79786f828844aade96bc3578e0e
treecf7b9ad3a2f2a9f636babb64839f3f155b056217
parent53c38087949252d27cde668368a3eeb59cc2eb00
Json ide script for gn to output cmake.

Can be run like

gn gen out/debug --ide=json --json-ide-script=../../gn/gn_to_cmake.py

or

gn gen out/debug --ide=json
python gn/gn_to_cmake.py out/debug/project.json

This first pass creates CMakeLists.txt with just enough information for an
ide. Each target is just a static library with sources, include
directories, and defines.

NOTRY=true
This isn't automatically tested.

Review-Url: https://codereview.chromium.org/2363873002
gn/gn_to_cmake.py [new file with mode: 0644]