Viktor Szakáts wrote:
> 
>>> I think we should seriously consider this, and think 
>>> about the best way to combine the file types. I can 
>>> even create a hbmk2 option parser call which can be used 
>>> by hbide as is.
>>> 
>>> F.e. we can use option prefix to denote HBIDE specific 
>>> information: --hbide:cat.option=value, or use 
>>> comments: #hbide:cat.option=value
>>> 
>> 
>> I am convinced.
>> 
>> So we can have one more file type as only file 
>> file for the project - .hbp. 
>> 
>> This way we can reuse existing .hbp.
>> However we must consider how to include / remove 
>> sources in .hbp. I have an idea how to achieve it, and 
>> will implement this concept in toto.
> 
> If we want to avoid full and hbmk2 compatible 
> .hbp parser in HBIDE, one solution is to use 
> section markers:
> 
> --- .hbp
> -hbdyn
> -inc
> -...
> -o
> 
> #HBIDE.FILES_START
> test.prg
> #HBIDE.FILES_END
> ---
> 
> You can add similar sections for every .hbp parts 
> which are allowed to be controlled also by GUI means.
> 
> If you stick with above method, you can use this 
> method to store HBIDE-only settings inside .hbp file:
> 
> #HBIDE.category.option1=valuex
> #HBIDE.category.option2=valuey
> 

To include hbIDE specific stuff in .hbp is easier.
But the   reverse is tough from current .hbp format.
It would been heartening if .hbp would been sectionized.

Let us parse hbide.hbp

#
# $Id: hbide.hbp 13533 2010-01-11 13:44:04Z druzus $
#

../hbxbp/hbxbp.hbc
-inc
-w3 -es2 -gc3
-ohbide

# Trick to make QT 4.6 link using default Harbour build
-ldflag={msvc}-nodefaultlib:msvcrt.lib
-ldflag={msvc}-defaultlib:libcmt.lib

hbide.prg
ideobject.prg
idestylesheets.prg
idetags.prg
idemisc.prg
ideactions.prg
ideeditor.prg
idefindreplace.prg
idedocks.prg
idesaveload.prg
iderequests.prg
idethemes.prg
ideprojmanager.prg
idesources.prg

ideparseexpr.c


What I can recognize:
Lines starting with    #   comments
                            ..    hbc location
                             -    switch 
Lines having            =    switch 

Everything else              source file

Am I right in my observation ?
If yes, then I have an idea how to hook 
pure .hbp into hbIDE.

Regards
Pritpal Bedi

                              
   


-- 
View this message in context: 
http://old.nabble.com/hbIDE---Requested-Thought-of-Features-Tracking-tp27313368p27315955.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

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

Reply via email to