for the hbmk2 parts:

> 4) I need to inform the root location of my HB installation path,
> because I would like to use hbIDE (done in Qt), but I compile with my
> HB + BCC or HB + MSVC or HB + MGW... The option "Path to hbMK2.exe" in
> properties would be for this?

Yes, you don't need to supply your Harbour root dir 
at all, as HBIDE uses hbmk2 as its build engine, and 
hbmk2 is able to handle all the little details of that. 
Based on its own location it will autodetect every required 
components of Harbour. Of course if you need to use 
something non-standard you can use existing hbmk2 
facilities to override any of the environment details 
using envvars (HB_*_INSTALL). I wouldn't recommend to 
do this though.

So the only required setting to make hbmk2 work is 
the location of hbmk2 executable. On all platforms.

[ BTW it can even be in PATH. But we must supply 
options for those who don't wish to add it to PATH. ]

> 5) In the properties of hbIDE should be have an option to specify the
> 'default location' where hbmk2 is found. So if we open a file PRG
> without a project open, we could click with it and build hbIDE could
> compile and link the file in use ... And until we could add a button
> similar to  "Build only this source" in the options menu.

I added HBIDE_DIR_HBMK2 envvar for this purpose, I didn't 
recheck after latest changes, but hopefully it still works, 
if not I think it should be fixed. And even better would 
be to propagate this option to the GUI somewhere as 
global option with per-project override.

> 7) I need to have an option to personalize the flags for compiler and
> linker in "Debug" or "Release" modes. in the toolbar and I need a
> practical way to  choose what target I would like to generate the
> application. So I could have # defines specific project to my way of
> "Debug" would not want to use in "Release" and this could be of great
> help. (Like MSVC)

This needs alteration of 'workdir' in hbmk2, which 
can be done using -workdir= option and adding a 
'${hbide_build_type}' macro component to the dir, 
and add -env:hbide_build_type=<debug|release> option 
to set it.

> 9) In the project properties would need a field to set the target
> platform and may be useful to make cross-build process.

Target platform is just an hbmk2 switch: -plat=

In HBIDE it was recently implemented as separate option with 
{hb_plat}, which uses HB_PLATFORM envvar. I don't know the 
reasons, this seems like overcomplicating this matter and 
HB_PLATFORM envvar is definitely a legacy solution, so using 
-plat= option directly seems to be the optimal solution here.

> 11) How we can generate an HRB from an source in current project?

As for the hbmk2 part, see contrib/hbnetio/utils/modules.hbp 
for option for this case.

Brgds,
Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to