{"action":"opened","issue":{"url":"https://api.github.com/repos/ocaml/dune/issues/563","repository_url":"https://api.github.com/repos/ocaml/dune","labels_url":"https://api.github.com/repos/ocaml/dune/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/dune/issues/563/comments","events_url":"https://api.github.com/repos/ocaml/dune/issues/563/events","html_url":"https://github.com/ocaml/dune/issues/563","id":301231818,"number":563,"title":"Any way to specify dependencies for `optional` instead of `libraries`?","user":{"login":"camlspotter","id":180532,"avatar_url":"https://avatars0.githubusercontent.com/u/180532?v=4","gravatar_id":"","url":"https://api.github.com/users/camlspotter","html_url":"https://github.com/camlspotter","followers_url":"https://api.github.com/users/camlspotter/followers","following_url":"https://api.github.com/users/camlspotter/following{/other_user}","gists_url":"https://api.github.com/users/camlspotter/gists{/gist_id}","starred_url":"https://api.github.com/users/camlspotter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camlspotter/subscriptions","organizations_url":"https://api.github.com/users/camlspotter/orgs","repos_url":"https://api.github.com/users/camlspotter/repos","events_url":"https://api.github.com/users/camlspotter/events{/privacy}","received_events_url":"https://api.github.com/users/camlspotter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-01T00:08:23Z","updated_at":"2018-03-01T00:08:23Z","closed_at":null,"author_association":"NONE","body":"I want to control the build of an optional library based on whether some file exists or not:\r\n\r\n```\r\n(library\r\n  ((name mylibrary)\r\n   (public_name mylibrary)\r\n   (optional)\r\n   (libraries (notmylibrary))\r\n   (???)  ; build only happens when some file exists\r\n  ))\r\n```\r\n\r\nBut I cannot find a way to add such a dependency to `library` stanza.  Is there a way for it or any workaround?\r\n"}}
{"actor":{"display_login":"camlspotter"}}