I applied a much simplier solution, you're still locked into using include/wx as a base path but you can now specify any number of additional extra paths.
You merely set a variable in your component's bakefile as shown in the template bakefile: wxCode/build/empty.bkl.template <!-- Specify an optional extra path to the header files for install-wxheaders component/include/wx[$(DIRSEP)optional path] Always include the leading $(DIRSEP) and no trailing one, leave blank to use the path include/wx to your headers. --> <set var="COMP_WXHEADERS_EXTRA_INCLUDE_PATH"> </set> and then it's used here wxCode/build/targets.bkl. Hope this helps, John Labenski On 10/25/06, John Labenski <[EMAIL PROTECTED]> wrote: > In wxCode/build/bakefile/targets.bkl we have, which is similar as > COMP_WANT_UNINSTALL_WXHEADERS_TARGET. > > <!-- "make install-wxheaders": --> > <if cond="COMP_WANT_INSTALL_WXHEADERS_TARGET=='1'"> > <data-files-tg id="install-wxheaders"> > > <files>$(COMP_BASEPATH)$(DIRSEP)include$(DIRSEP)wx$(DIRSEP)*.h</files> > <if cond="TARGETING_WIN32=='1'"> > > <install-to>$(WX_DIR)$(DIRSEP)include$(DIRSEP)wx</install-to> > > <!-- little hack over "data-files-tg" which is > truly defined only on unix --> > <set var="__copy_cmd" eval="0"> > mkdir $(__dstdir) > cd $(__srcdir) > copy /Y $(__files) $(__dstdir) > </set> > <dependency-of>install</dependency-of> > <command>$(__copy_cmd)</command> > </if> > <if cond="TARGETING_WIN32=='0'"> > <install-to>$(INCLUDEDIR)/wx</install-to> > </if> > </data-files-tg> > > ============================ > > BUT! If you have your includes as > wxCode/components/wxstedit/include/wx/stedit/*.h this doesn't work. I > figured that by adding "stedit" to the include path I'd avoid any > problems with name clashes. > > In your user bakefile you have, optionally > > <set var="COMP_INCLUDE_PATH" overwrite="0"> > include$(DIRSEP)wx$(DIRSEP)/stedit > </set> > > > and in wxCode/build/bakefile/targets.bkl > > > <set var="COMP_INCLUDE_PATH" overwrite="0"> > include$(DIRSEP)wx > </set> > > and adjust the install and uninstall targets to use it > > <!-- "make install-wxheaders": --> > <if cond="COMP_WANT_INSTALL_WXHEADERS_TARGET=='1'"> > <data-files-tg id="install-wxheaders"> > > <files>$(COMP_BASEPATH)$(DIRSEP)$(COMP_INCLUDE_PATH)$(DIRSEP)*.h</files> > <if cond="TARGETING_WIN32=='1'"> > > <install-to>$(WX_DIR)$(DIRSEP)$(COMP_INCLUDE_PATH)</install-to> > > <!-- little hack over "data-files-tg" which is > truly defined only on unix --> > <set var="__copy_cmd" eval="0"> > mkdir $(__dstdir) > cd $(__srcdir) > copy /Y $(__files) $(__dstdir) > </set> > <dependency-of>install</dependency-of> > <command>$(__copy_cmd)</command> > </if> > <if cond="TARGETING_WIN32=='0'"> > <install-to>$(INCLUDEDIR)/wx</install-to> <=== HERE! > </if> > </data-files-tg> > > ============================ > > How to make the <install-to> item work? It doesn't want the "include" > part of the path since it already has it from wxWidgets/include. > > Maybe just have the user only specify "wx/stedit" and assume > everything is in "include" as in "include/wx/stedit"? Or will we run > into similar problems with some other "nonstandard" component like > mine? > > Any ideas? > John Labenski > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users