Closed CarterLi closed 1 year ago
If I use this library as a dependency, I might prefer the git submodule or CMake FetchContent. Copy-pasting is also completely fine if you want better code control. I also listed some other methods here: https://github.com/ibireme/yyjson/blob/master/doc/BuildAndTest.md.
As for the MIT License, since I'm not a lawyer, I can't give you an accurate answer. But if you're concerned about it, I can copy the full text of the LICENSE file to the header of the source file so that you don't have to copy the LICENSE file separately.
As far as I know, most package managers didn't include yyjson, which make it hard to use yyjson as 3rd party dependency. Users either embed source code of yyjson into their project, or download precompiled dll / so / dylib and embed C headers.
What option is preferred? What's the license requirement? If I need to embed your code, Do you prefer git submodule, or copy-paste? Do I need a MIT license copy in my project even if my project is also MIT licensed?