The way I would expect this to work, you would declare your files as `data = ["README.md"]` either as part of another target or as a standalone target, e.g.:
group("files") {
data = [ "README.md" ]
}
If I do that, and then run `gn desc //out //:files runtime_deps`, it will output "../README.md" (as I'd expect).
Annoyingly, however, if I run `gn gen --ide=json`, the README.md file is not included. And, if I declare a dependency on the target with `data_deps=["files"]` in some other target, it looks like `data_deps` are being merged into the regular `deps` in the JSON file.
The first thing is not entirely surprising to me; we've never made a concerted effort to ensure that the JSON file contains everything. However, it should, so this is just an enhancement request and it should be an easy fix if anyone wants to make it. If no one volunteers, I can probably do it soonish.
The second thing (data_deps being merged) seems like a bug to me, but maybe there's a reason for it that someone else knows?
-- Dirk