Compiler options

Forum help and suggestions to improve this forum.

Moderator: Rathinagiri

Post Reply
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

Compiler options

Post by trmpluym »

Dear friends,

Where can i find documentation for the .hbc compiler options ?

Code: Select all

inc=yes
Incremental compiling ? Advantages ?

Code: Select all

head=native
No idea ? I also found "head=real"

Code: Select all

mt=yes
Multithreading

Code: Select all

libs=
Library files

Are there more options ?

Theo
User avatar
gfilatov
Posts: 1060
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: Compiler options

Post by gfilatov »

trmpluym wrote: Sat Jan 25, 2020 2:06 pm Are there more options ?
Hi Theo,

There are the following .hbc directives (they should be written in the separate lines):
echo=<msg> display <msg>
skip=[<msg>] skip processing the rest of the .hbc file. Display <msg>,
if specified.
stop=[<msg>] stop the build. Display <msg>, if specified.
sources= add space separated list of files as input files
headers= add space separated list of .ch format headers as
standard header
libs= add space separated list of libraries (see more at -l
option)
frameworks= add space separated list of frameworks (Darwin only)
requests= add space separated list of symbols to force link to the
build target
syslibs= add space separated list of libraries as system libraries
(before regular libraries)
hbcs= embed space separated list of .hbc files. Names without
the extension is accepted. These references are processed
in place.
autohbcs= space separated list of values as in -autohbc= option
libpaths= space separated list of additional library paths
incpaths= add space separated list of additional header paths (for
both Harbour and C)
instfiles= space separated list of values as in -instfile= option
instpaths= space separated list of values as in -instpath= option
prgflags= space separated list of values as in -prgflag= option
cflags= space separated list of values as in -cflag= option
resflags= space separated list of values as in -resflag= option
ldflags= space separated list of values as in -ldflag= option
ldflags+= space separated list of values as in -ldflag+= option
dflags= space separated list of values as in -dflag= option
dflags+= space separated list of values as in -dflag+= option
pflags= space separated list of values as in -pflag= option
psources= space separated list of values as in -pi= option
gui=<bool> 'yes' = -gui, 'no' = -std option
mt=<bool> 'yes' = -mt, 'no' = -st option
pic=<bool> 'yes' = -pic, 'no' = -pic- option
shared=<bool> 'yes' = -shared, 'no' = -static option
shareddef=<bool> similar to shared=, but works only if shared/static mode
was not set before
fullstatic=<bool> 'yes' = -fullstatic, 'no' = -static option
debug=<bool> 'yes' = -debug, 'no' = -debug- option
optim= 'yes' = -optim, 'no' = -optim- option
nulrdd=<bool> 'yes' = -nulrdd, 'no' = -nulrdd- option
nodefgt=<bool> 'yes' = -nodefgt, 'no' = -nodefgt- option
map=<bool> 'yes' = -map, 'no' = -map- option
hbcppmm=<bool> 'yes' = -hbcpmm, 'no' = -hbcpmm- option
implib=<bool> 'yes' = -implib, 'no' = -implib- option
winuni=<bool> 'yes' = -winuni, 'no' = -winuni- option
strip=<bool> 'yes' = -strip, 'no' = -strip- option
run=<bool> 'yes' = -run, 'no' = -run- option
inc=<bool> 'yes' = -inc, 'no' = -inc- option
safe=<bool> 'yes' = -safe, 'no' = -safe- option
cpp= same as -cpp= option
warn= same as -warn= option
compr= same as -compr= option
head= same as -head= option
plugins= space separated list of hbmk2 plugins to load
gt=<name> same as -gt<name> option
gtdef=<name> set the default GT to be used
env= same as -env: option
deppkgname= same as -deppkgname= option
depkeyhead= same as -depkeyhead= option
depoptional= same as -depoptional= option
depcontrol= same as -depcontrol= option
depincroot= same as -depincroot= option
depincpath= same as -depincpath= option
depincpathlocal= same as -depincpathlocal= option
depimplibs= same as -depimplibs= option
depimplibd= same as -depimplibd= option
depfinish= same as -depfinish= option
name= package name
description= package description
version=<x.y.z> package version number, where x,y,z >= 0 <= 255. Defaults
to 0.0.1, if not specified.
keywords= space separated list of keywords
licences= space separated list of licenses
repository= space separated list of source repository references
You'll received the more infrormation when you'll launching the following command :arrow:
hbmk2 -???
:idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

Re: Compiler options

Post by trmpluym »

Grigory,

Thanks for your response, I also found this documentation !

https://harbour.github.io/doc/harbour.h ... er-options

Theo
Post Reply