Skip to content
This repository has been archived by the owner on Aug 30, 2020. It is now read-only.

support for meson build system #51

Closed
agauniyal opened this issue Feb 29, 2016 · 2 comments
Closed

support for meson build system #51

agauniyal opened this issue Feb 29, 2016 · 2 comments

Comments

@agauniyal
Copy link
Contributor

I'm trying out meson for a few pet projects and I was hoping if YCM-Generator could support it. It generates a compile_command.json, just like CMake does, of such format -

[
  {
    "directory": "/home/agauniyal/projects/rang/build",
    "command": "ccache c++  '-pipe' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-std=c++11' '-g' '-Itest/RCBTest@exe' '-I../test' '-Itest' '-Iinclude' '-I../include' '-MMD' '-MQ' 'test/RCBTest@exe/RCBTest.cpp.o' '-MF' 'test/RCBTest@exe/RCBTest.cpp.o.d' -o 'test/RCBTest@exe/RCBTest.cpp.o' -c ../test/RCBTest.cpp",
    "file": "../test/RCBTest.cpp"
  },
  {
    "directory": "/home/agauniyal/projects/rang/build",
    "command": "ccache c++  '-pipe' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-std=c++11' '-g' '-Itest/VTest@exe' '-I../test' '-Itest' '-Iinclude' '-I../include' '-MMD' '-MQ' 'test/VTest@exe/visualTest.cpp.o' '-MF' 'test/VTest@exe/visualTest.cpp.o.d' -o 'test/VTest@exe/visualTest.cpp.o' -c ../test/visualTest.cpp",
    "file": "../test/visualTest.cpp"
  }
]
@rdnetto
Copy link
Owner

rdnetto commented Feb 29, 2016

Unfortunately, I don't have the time available to implement support for a new build system. However, I'd be more than happy to accept a PR adding support for it.

YCM-Generator doesn't use compile_command.json (see #33). Instead, it works by invoking the build system with its own compiler and linker specified (usually through the CC, etc. environment variables). You can see the Cmake-specific logic here.The logic is fairly straightforward, so I encourage you to try to write a patch for it if you're interested.

@vyasgiridhar
Copy link

I can take this up but not right now.
let me come back to this in a few days :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants