[ 
https://issues.apache.org/jira/browse/COUCHDB-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029078#comment-13029078
 ] 

Andrew Tunnell-Jones commented on COUCHDB-1012:
-----------------------------------------------

As far as I'm aware the only method of giving rebar additional include paths is 
to hardcode them in rebar.config with something like {erl_opts, [{i, "Path"}]}. 
Due to this I think the least friction for integrating with rebar would be an 
option to get the path flag free so something like this can be dropped in 
rebar.config:

{pre_hooks, [
             {clean, "rm include/couch_helper.hrl"},
             {compile, "echo -include\\(\"`pkg-config 
whatever`include/couchdb.hrl\"\\). > include/couch_helper.hrl"}
]}.

+1 on having a flag-free path to the lib dir for install commands. An option to 
get the path to local.d could be useful too.

> Utility to help plugin developers manage paths
> ----------------------------------------------
>
>                 Key: COUCHDB-1012
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1012
>             Project: CouchDB
>          Issue Type: New Feature
>          Components: Build System
>            Reporter: Randall Leeds
>         Attachments: 0001-support-pkg-config-for-plugins-COUCHDB-1012.patch
>
>
> Developers may want to write plugins (like GeoCouch) for CouchDB. Many hooks 
> in the configuration system allow loading arbitrary Erlang modules to handle 
> various internal tasks, but currently there is no straightforward and 
> portable way for developers of these plugins to discover the location of the 
> CouchDB library files.
> Two options that have been proposed are to use pkg-config or install a 
> separate script that could be invoked (e.g. as couch-config --erl-libs) to 
> discover important CouchDB installation paths.
> As far as I know the loudest argument against pkg-config is lack of support 
> for Windows.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to