Commit Graph

1800 Commits

Author SHA1 Message Date
Viktor Szakats
e3473c5876 2009-04-29 19:44 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for macros in -l options.
2009-04-29 17:44:32 +00:00
Viktor Szakats
7ca3548e34 2009-04-29 19:37 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Readded -map support for *nixes.
    ! Changed -strip support for darwin to use separate strip command.
    + .hbmk dir is now set hidden.
    + Target name is displayed on screen.

  * ChangeLog
    - Removed one empty line from license header after last commit.
      (Przemek pls update your script to reflect that)
2009-04-29 17:38:37 +00:00
Viktor Szakats
6f588c2e58 2009-04-29 13:11 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbqt/generator/hbqtgen.prg
  * contrib/hbqt/hbqt.h
  * contrib/gtqtc/gtqtc.h
  * contrib/gtqtc/Makefile
    ! Fixed to use no dir when including qglobal.h. This fixes
      darwin compile error.

  * utils/hbmk2/hbmk2.prg
    ! Fixed static lib output extension for rest of compilers (*nix/gcc).
    ! Fixed 'lib' prefix handling for static lib output names when dir
      was present in the name.
    * Now -inc files will be put into .hbmk/* dirs.
    ! Disabled -map option for *nix gcc as it doesn't seem supported 
      (probably isn't needed on these platforms anyway).
    % Cleaned code redundancy in forming output names.
    ; TOFIX: gcc/darwin complains that -s switch is obsolete and being ignored.
2009-04-29 11:49:34 +00:00
Viktor Szakats
966e700e5c 2009-04-29 00:49 UTC+0100 Viktor Szakats (viktor.szakats syenar.hu)
* COPYING
    + Added Creative Commons Attribution-ShareAlike 3.0 Unported (CC-by-sa)
      license section. To be used for misc text, documentation and typically
      everything which isn't source/program code. Currently these files
      (in part or whole) are covered by this license:
      INSTALL
      ChangeLog
      doc/whatsnew.txt
    ; TODO: If this works out well, IMO we should apply this license to 
            all non-code parts of our repository. /doc, /man sections 
            and some files in the root specifically. We can also cover 
            the homepage content with this license.

  * INSTALL
    + Added CC-by-sa license.

  * doc/whatsnew.txt
  * ChangeLog
    + Added CC-by-sa license. I've covered all my past entries with
      this license, besides these, only the new entries will fall
      under the license.

  * contrib/hbblat/blatwrp.c
    ! Fixed extern declaration to work in C++ mode.

  * source/lang/msgtrwin.c
  * source/lang/msgtr857.c
    ! Typos in comments.

  * source/vm/set.c
    + Added copyright for few functions (hb_osEncode()/hb_osDecode()).

  * utils/hbmk2/hbmk2.prg
    ! Fixed RTE in Harbour-only (-gh) mode.
2009-04-28 22:55:59 +00:00
Viktor Szakats
7e1584c472 2009-04-24 13:18 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* INSTALL
    * Changed QT examples according to 4.5.1 new default dir layout.

  * contrib/gtqtc/tests/demoqtc.prg
    ! Removed zip dependency.

  * contrib/gtqtc/tests/wvtext.prg
    ! Fixed non-lower case filename.
    ! Fixed wrong reference to test .ico file.
      BTW, is .ico portable? I doubt, so we should probably
      switch to .png in context of QT.
    ! Fixed wrong reference to test.dbf.

  * contrib/hbqt/tests/hbqt.hbp
  * contrib/gtqtc/tests/gtqtc.hbp
    + Added support for HB_QT_DIR envvar to find QT libs.
      This is the same envvar which is needed for Harbour
      builds, so you may already have it set up.
    ; TODO: If this works out well, I'll add the same method
            for other contribs too.

  * utils/hbmk2/hbmk2.prg
    + libpaths will now be checked for existance before being
      added to the list.
2009-04-24 11:26:59 +00:00
Viktor Szakats
26e05ac6cb 2009-04-22 15:51 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Stub obj wasn't deleted in all occasions.
2009-04-22 13:52:08 +00:00
Viktor Szakats
cde9771dbe 2009-04-22 14:35 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    * Finished to .pot support (changed po to pot).
    * Renamed po= .hbp setting to pots=.
    ! Few minor fixes in error cases in .hbl generation.

  * utils/hbi18n/hbi18n.prg
    ! Typo in header.
2009-04-22 12:35:40 +00:00
Viktor Szakats
088e27cc8d 2009-04-22 12:42 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    * Changed to not try to create an .hbl automatically if no 
      explicit .hbl file is passed or -hbl option used. Instead 
      now -hbl= or -hbl option will force creation of an .hbl 
      file with an automatic name.
2009-04-22 10:44:08 +00:00
Viktor Szakats
5ef7291b95 2009-04-22 11:38 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed regression in handling .c stub after recent changes.
    ! Fixed potential problem with inctrypath in some situations.
2009-04-22 09:38:50 +00:00
Viktor Szakats
465792092d 2009-04-22 10:06 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added .hbl file to possible input file list.
      (this is supported alternatively to -hbl= option)

  * source/hbpcre/pcrevutf.c
  * source/hbpcre/pcre.h
  * source/hbpcre/pcreconf.c
  * source/hbpcre/pcreinfo.c
  * source/hbpcre/config.h
  * source/hbpcre/pcrenewl.c
  * source/hbpcre/pcrefinf.c
  * source/hbpcre/pcreexec.c
  * source/hbpcre/pcreinal.h
  * source/hbpcre/pcretabs.c
  * source/hbpcre/pcredfa.c
  * source/hbpcre/pcrecomp.c
  * source/hbpcre/pcrexcls.c
  * source/hbpcre/pcreprni.h
  * source/hbpcre/ucp.h
    + Upgraded to PCRE 7.9 (from 7.8)
2009-04-22 08:08:04 +00:00
Viktor Szakats
cca7fb705d 2009-04-22 08:48 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
+ Implemented .po to .hbl conversion inside hbmk2, with
    incremental feature (.hbl will only be regenerated if any
    .po file dependencies are newer). This is currently the
    default, no -inc switch is needed for that.
    You can specify .po files in the command line, in po=
    lines in .hbp files, output file is passed via -hbl= option.
    To handle multiple languages without hassle, you can use
    ${lng} macro in .po and .hbl filenames, plus pass the list
    of languages in -lng=<lang comma list> option:
    app_${lng}.po -hbl=lang/${lng}.hbl -lng=en,hu,sk,pl
    [ Actual .po -> .hbl conversion code was taken from hbi18n
    tool made by Przemek, with little modifications. ]
  ! Fixed to check included .res file timestamp, but not parse it.
  + Added macro support in libs= .hbp lines.
2009-04-22 06:54:54 +00:00
Viktor Szakats
c5a3aaf70b 2009-04-21 18:14 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added new CPU architecture filters: x86, x86_64, ia64, arm
    + Added new CPU macro: ${hb_cpu} (returning values above)
    ! Fixed filter keyword detection on darwin due to typo.
2009-04-21 16:23:24 +00:00
Pritpal Bedi
393b9a05df 2009-04-21 08:08 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* utils/hbmk2/hbmk2.prg
    ! Line # 1056 - Parenthesis not closed.
2009-04-21 15:09:48 +00:00
Viktor Szakats
83fbbeebec 2009-04-21 16:25 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added filter support to -o option.
    + Added macro support to -o option.
    ! Fixed missing win system libs from bcc linker command.
      IMPORTANT: bcc users will have to make sure they add bcc PSDK
                 lib to their bcc32.cfg and ilink32.cfg files,
                 otherwise hbmk2 won't work for them:
                 --- bcc32.cfg
                 -I"C:\devl\BCC55\Include"
                 -L"C:\devl\BCC55\Lib";"C:\devl\BCC55\Lib\PSDK"
                 --- ilink32.cfg
                 /L"C:\devl\BCC55\Lib";"C:\devl\BCC55\Lib\PSDK"
                 ---
                 (or manually pass that with -L option to hbmk2)
    * -i option moved to main help screen.

  * utils/hbmk2/examples/fwh.hbp
    + Added odbc32 lib.
2009-04-21 14:34:33 +00:00
Viktor Szakats
a9c0f66d54 2009-04-21 12:35 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for ${hb_self} in .hbm files.
    + -incpath/-i will now also add paths to resource compiler.
2009-04-21 10:38:18 +00:00
Viktor Szakats
8d3b5783d5 2009-04-21 04:19 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed minor but fatal oversight in prev commit.
2009-04-21 02:19:58 +00:00
Viktor Szakats
ace39f0fc1 2009-04-20 21:15 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to find headers in originating file directory.
      This may need further tweaking. This works a little
      differently in Harbour and C compilers and hbmk2 tries
      to mimic both. Possible that it's still not fully
      compatible, if you know something pls speak up.
    + Added -incpath= option and incpaths= .hbp option. This
      is now the preferred method to add headers paths. All
      path will be added to both Harbour and C compiler.
      Important: a synonym for this switch is simply -i, just
      like before, but now the path will be also added to
      C compiler command line.
    * From now on Harbour include dir will always be the first
      one on the include path list passed to compilers. Before
      in Harbour it was always first, in C compilers it was
      always last. (disregarding include dirs passed directly
      to compiler, which will always come first, but isn't
      recommended). The ordering is thus this:
      compiler ... flags harbourincludedir incpaths ...
    - Deleted include path option detection, from now on
      only those paths will be scanned wich were passed to
      hbmk2 via -incpath/-i options.
    % Added -kmo optimization for hbmk2 source.
    + -info and -quiet will now work in .hbm files.
      (they will not control some close-to-startup messages
      if specified this way though)

  * external/libhpdf/Makefile
  * external/libpng/Makefile
    + Enabled for darwin.

  * contrib/hbqt/generator/hbqtgen.prg
    ! Recent fix to hbqt.h applied to generator.

  * utils/hbmk2/hbmk2.hbm
    - Removed no longer needed -km switch.

  * utils/hbmk2/examples/hmg.hbp
  * utils/hbmk2/examples/hwgui.hbp
  * utils/hbmk2/examples/fwh.hbp
    % Updated to use -incpaths=

  * utils/hbmk2/examples/fwh.hbp
    * Updated to work like similar hwgui and hmg files.
    ; QUESTION: Is hbwin lib required for FWH?
2009-04-20 19:18:39 +00:00
Viktor Szakats
f2a1e1fd1c 2009-04-20 16:30 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.hbm
    + Added -km option.

  * utils/hbmk2/hbmk2.prg
    ! Fixed typo preventing filter keywords to work.
2009-04-20 14:42:48 +00:00
Viktor Szakats
bc447eb8f5 2009-04-20 16:25 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + -quiet will now suppress command output in case of error.
      This is useful when the commands are large and it makes
      valuable tool output visible.
    ! Fixed recent typos in help code causing RTE.
2009-04-20 14:37:32 +00:00
Viktor Szakats
379f03d5ed 2009-04-20 16:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Typo in 'allwin' filter handling.
2009-04-20 14:19:22 +00:00
Viktor Szakats
3df1455a29 2009-04-20 16:15 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Using hb_process*() functions instead of hb_run() to elminiate
      some bad side effects of the former (like command line limits
      on Windows). hb_run() is now only used in DOS builds.
2009-04-20 14:16:33 +00:00
Viktor Szakats
60beb19545 2009-04-20 14:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to inherit .hbm dir before doing wildcard expansion.
      This makes wildcarded input files work in .hbm files
      located in different than current dirs.
2009-04-20 12:00:57 +00:00
Viktor Szakats
5209383fc1 2009-04-20 13:02 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed wildcarded input files to handle directory component.
2009-04-20 11:02:58 +00:00
Viktor Szakats
cdef827f29 2009-04-20 12:46 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Made possible to use -hbdyn/-hblib options in .hbm files.
2009-04-20 10:46:39 +00:00
Viktor Szakats
f7ac9f0d15 2009-04-20 11:16 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + .c header detection now takes place before doing anything.
      Also compiler setup got moved to the beginning of the
      process.
      This allows to make a stop if something is missing. Some
      more steps are needed to exploit that in practice.
      Please test, this may cause regressions, I didn't test
      all combinations.
    * Generalized internal support for header location detection.
      (now can support any C compiler and it's also possible to
      add this feature for .prg files if needed)
    + Added new filter keywords: allgcc, allwin, allmingw, allmsvc,
      allpocc, allicc.
    + Added support for include dirs with spaces for msvc and mingw.
2009-04-20 09:43:45 +00:00
Viktor Szakats
5bfddcec4d 2009-04-20 08:19 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added experimental support for header directory autodetection.
      This means that you can pass a list of possible dirs to use
      when a .c header cannot be found in explicitly passed locations.
    ! Fixed to always disable -shared with -hbdyn.
    ! Added hbmaindllp in -hbdyn mode on win|wce.
    ! Fix in -nohbp parameter handling.
    + Added support for macros in -L, -*flag=, -workdir=
    + Added -stop command line parameter which stops execution.
      Can be used in conjunction with arch/comp filters to stop
      execution on certain platforms/compilers.
    ! Fixed to not create workdir in some unlikely combination of options.
    ! Fixed typo causing newer headers not being detected in resource files.
    + Now 'unix' can also be used in filters to check for any *nix platform.
    % Excluding some well-known headers from parsing (windows.h, ole2, os2.h
      currently)
    ; Above changes makes it possible to use hbmk2 to build our contribs.
      The only missing feature is 'install', what is a simple copy.
      ---
      -ohbpgsql

      # just for the sake of an example, not needed for real hbpgsql.
      -stop{dos}

      -inctrypath=${HB_INC_PGSQL}
      -inctrypath={unix}/usr/include
      -inctrypath={unix}/usr/local/pgsql/include
      -inctrypath={unix}/usr/local/pgsql/include/libpq
      -inctrypath={unix}/usr/include/pgsql
      -inctrypath={unix}/usr/include/postgresql
      -inctrypath={unix}/postgres/include
      -inctrypath={unix}/opt/local/include/postgresql83

      postgres.c

      pgrdd.prg
      tpostgre.prg
      ---

  * contrib/hbole/oleinit.c
  * contrib/hbole/hbwinole.h
    * Cleanups in header usage and content. This should fix
      missing hb_oleInit() symbol on some compilers.

  * contrib/examples/pp/hbpptbl.c
    - Removed HB_EXTENSION protected two lines.
2009-04-20 06:27:58 +00:00
Viktor Szakats
ce8e5643c4 2009-04-17 15:10 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/vm/Makefile
    + Enabled "amalgamated" VM lib for all compilers/platforms,
      except for those where this doesn't give any advantage, or
      it breaks the build, these are: pocc*, xcc, bcc, dmc.
      Please note that Open Watcom 1.7 might also fail (I didn't
      test), so make sure to upgrade to 1.8.

  * harbour-win-spec
  * harbour-wce-spec
  * mpkg_win.bat
  * mpkg_tgz.sh
  * harbour.spec
  * bin/hb-func.sh
  * include/hbsetup.h
  * source/vm/Makefile
  * source/vm/fm.c
  - source/vm/fm
  - source/vm/fmmt
  * utils/hbmk2/hbmk2.prg
    - Removed hbfm and hbfmmt lib references. These libs are
      no longer generated or used.
    * Narrowed HB_FM_STATISTICS presence in various source
      files. From now on the system default for all builds is
      HB_FM_STATISTICS_OFF. We may change this to
      HB_FM_STATISTICS_DYN_OFF if we find a solution to the
      potential and actual problems with this method.
      If someone needs to change mem stat default, it can be
      done by ususal means.
2009-04-17 13:13:48 +00:00
Viktor Szakats
2b0728caea 2009-04-17 10:48 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for envvar HB_VISUALC_VER_PRE80 to signal 
      older MSVC versions (just like in Harbour builds).
    + Synced mscvarm optimization switches.
      The sync between hbmk2 and Harbour build switches is 
      now done. The only - intentional - difference is that 
      hbmk2 won't set any explicit C compiler warning level,
      but this also can be implemented later with optional 
      switches.
    ! Fixed regression in win/icc linker name.
2009-04-17 08:51:56 +00:00
Viktor Szakats
5917b81453 2009-04-17 08:20 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed -strip for gcc family. It got broken after switching
      to separate link phase.
    ! Fixed -bind_as_load and -multiply_defined suppress to be
      passed at link phase on darwin. Got broken like above.
      Change not tested.
    ! Fixed RTE in FINDNEWERHEADERS(3064).
2009-04-17 06:24:23 +00:00
Viktor Szakats
f128a09655 2009-04-16 23:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added -opt/-noopt switch (plus .hbp param) to control
      C compiler optimizations.
    + Added C compiler optimizations to all compilers identical
      to the ones used to build Harbour. Specifically MinGW,
      MSVC got new switches, bcc got -6, owatcom got fully
      synced.
    + Added internal support for C++ mode selection for all
      compilers.
    + Added -debug support for all compilers where it was missing
      (most).
    ! Synced poccarm switch with Harbour build.

  - utils/hbmk2/examples/minigui.hbp
  + utils/hbmk2/examples/hmg.hbp
    + Harbour MiniGUI hbmk2 param file updated 
      and instructions added. Now it's possible 
      to build hmg apps using hbmk2 very easily, 
      see instructions in file.

  * utils/hbmk2/examples/hwgui.hbp
    + hwgui hbmk2 param file updated and 
      instructions added. Now it's possible
      to build hwgui apps using hbmk2 very easily, 
      see instructions in file.

  * source/vm/itemapi.c
  * source/rtl/hbffind.c
  * contrib/hbct/atnum.c
    ! Fixed macro related warnings.
2009-04-16 21:30:09 +00:00
Viktor Szakats
acefc0332e 2009-04-16 16:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for wildcarded input files for Harbour,
      C, resource compiler and object input files.
      This also works in .hbm files. Note: You must specify
      the extension, so *.* won't work, but *.prg and *.c will.
      Use with care, as hbmk2 will pickup everything and this
      may not be what you want to do f.e. in our tests dirs,
      but it can be useful if you store source files belonging
      to the same project in one dir, or with some unique
      filename prefix.
      (some of these may be unnecessary on *nix platforms, where
      the shell does such expansion already, it's still useful
      though, as *nix users can also benefit from wildcard usage 
      inside .hbm files)
2009-04-16 14:08:11 +00:00
Viktor Szakats
31c1c2370d 2009-04-16 15:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    % Skipping duplicate headers while walking the inclusion tree.
      This is a more efficient way to avoid inclusion loops,
      allowing deeper recursion.
    + Recursion level increased to 10 (from 4).
2009-04-16 13:48:31 +00:00
Viktor Szakats
d610c88430 2009-04-16 12:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for source file parsing for headers in -inc mode.
      .prg, .c and .rc files are currently parsed recursively,
      include paths will be scanned for included files. There are
      currently three levels of scanning: disabled, partial (default)
      and full. Partial will scan the first 16K of each source file
      for performance reasons, full will scan the complete files.
      The source parser is currently very simple; '#include "<filename>"'
      pattern is recognized anywhere in the processed source, no
      other variations are supported ATM. Using this format is IMO
      best practice for user programs, if someone needs more
      than this, it needs to be developed, current method is quite
      fast, which is important when dealing with lots of source
      files.
    + Added option to control header scanning: -[no]head=<mode>
      This is also supported in .hbp files.
    + Added support to look in current dir for libs for compilers
      where this is supported.
    + Added cmdline option -resflag=, .hbp option resflags= and
      overall support for user supplied resource compiler flags.
    + Added support for cyg*.dll style libs.
    ! Fixed to handle libs with explicit dirs for compilers
      where this is supported.

  * config/dos/owatcom.cf
  * config/win/owatcom.cf
  * config/linux/owatcom.cf
  * config/os2/owatcom.cf
    + Added link to wlink options.
2009-04-16 10:33:36 +00:00
Viktor Szakats
d9a1a96649 2009-04-16 04:18 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added -inc support for lib dependencies. This means that
      changed libs will also force a target rebuild.
      I've implemented three separate logic for mingw/cygwin,
      gcc/linux+sunos and the rest of compilers. This may not
      be precisely the way each of the hbmk2 supported compilers
      wotk, but it probably covers most cases. Anyhow please
      tweak and correct if you find some problems. I did
      tests with mingw, msvc, bcc static and shared mode.
    ! Removed automatic path tweak in .hbp/libpaths=.
2009-04-16 02:19:47 +00:00
Viktor Szakats
390e04be26 2009-04-15 18:58 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed bcc targets linking wrong (own bcc) PCRE engine instead 
      of the Harbour one by reordering lib list. This should fix 
      hbtip problems reported on the list.
2009-04-15 16:58:59 +00:00
Viktor Szakats
3117b701ca 2009-04-15 08:24 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* ChangeLog
  * utils/hbmk2/hbmk2.prg
    * Some cleanups resulting in incompatible changes:
      ${hb_parent} -> ${hb_self}
      -prgflag:<f> -> -prgflag=<f> 
      -cflag:<f>   -> -cflag=<f>   
      -ldflag:<f>  -> -ldflag=<f>  
      -aflag:<f>   -> -aflag=<f>   
      -dflag:<f>   -> -dflag=<f>   
      -runflag:<f> -> -runflag=<f>
    + Added not yet used -jobs=<n> parameter.
    + Added array splitter to chunks functions.

  * contrib/hbtip/tests/dnldftp.prg
    ! Fix to prev.
2009-04-15 06:24:54 +00:00
Viktor Szakats
534ad5fe4d 2009-04-15 00:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + libpaths= can now have relative paths specified, and in this
      case the path will be adjusted by absolute path of host .hbp.
      This makes it possible to point hbmk2 to a .hbp file in a
      foreign dir, and let it pick up local lib dirs automatically.
    + .hbp files passed without absolute paths will now inherit
      the .hbm path if applicable.
    + Will now echo all explicitly specified .hbp filenames on
      screen in -info mode.
    + Added echo= support in .hbp files. The parameter will be 
      echoed to stdout as is.
    + Added macro support for following .hbp lines:
      libpaths=, prgflags=, cflags=, ldflags=, echo=.
      Supported macros are:
      ${hb_root}: hbmk2 base dir
      ${hb_parent}: .hbp file dir
      ${hb_arch}: architecture
      ${hb_comp}: compiler
      ${<envvar>}: any envvar
    + .hbp files are now searched in libpaths, too.
    ; NOTE: With above changes it's possible to refer to a 3rd
            party lib solely by pointing to its .hbp file, from
            that point all lib/include paths can be automatically
            picked up. Here's an example for hwgui, the file
            needs to be places in hwgui root dir:
            ---
            {win}prgflags=-i${hb_parent}include
            {win}cflags=-I${hb_parent}include
            {win}libpaths=${hb_parent}lib
            {win}libs=hwgui hwg_qhtm procmisc hbxml
            {win}gt=gtgui
            ---
            Any hwgui apps can be compiled with this command:
            hbmk2 appname.prg C:\hwgui\hwgui.hbp

  * contrib/hbtip/tests/dnldftp.prg
    % Minor opt.
2009-04-14 22:26:26 +00:00
Viktor Szakats
472b472fd0 2009-04-14 20:31 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for -hbdyn option with bcc. .dll is created
      but I cannot test if it's usable.
    ! Worked around strange behaviour of filefind API, when it will
      return 'filename.extx' when we're looking for '*.ext' files.
      This can be seen with Directory().
2009-04-14 18:34:09 +00:00
Viktor Szakats
136509b429 2009-04-14 19:21 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed additional bcc link parameter to honor GUI/CUI mode.
      This should fix the command window for GUI GTs.

  * utils/hbmk2/examples/hwgui.hbp
    ! Fixed.
    ! Added gt=gtnul.
2009-04-14 17:23:35 +00:00
Viktor Szakats
837190c19c 2009-04-14 15:57 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed Borland stub for both GUI and CUI mode.
      This bug surfaced now that a separate link phase is always used.
    ! Fixed handling of libpaths with '-' chars in them for bcc.
2009-04-14 13:57:49 +00:00
Viktor Szakats
97043a7868 2009-04-14 14:29 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    * Changed to put user supplied lib to the beginning of the lib 
      list. This should fix situations where user lib is overriding 
      some Harbour objects (like getsys).
    + Added internal switch to enable simple -inc debug.
    ! Fixed to add .prg extension for Harbour input files when
      checking their timestamp, so files passed without extension 
      will now work in -inc mode.
2009-04-14 12:30:11 +00:00
Viktor Szakats
0323982efa 2009-04-14 09:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
+ contrib/hbcurl/hbcurls
  + contrib/hbcurl/hbcurls/Makefile
  * contrib/hbcurl/Makefile
    + Added generation of static flavour of hbcurl. This can 
      be used to link against static libcurl.

  * utils/hbmk2/hbmk2.prg
    ! Fixed target exe name with msvc.
    ! Added /debug link switch for msvc in -debug mode.
2009-04-14 07:48:30 +00:00
Viktor Szakats
7208fec5ca 2009-04-14 02:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added -clean option to clean incremental work files and dir.
    + Added -rebuild option to force full rebuild in incremental mode.
2009-04-14 00:02:04 +00:00
Viktor Szakats
297eb8582e 2009-04-14 01:31 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    * Autodetection of embedded MinGW installation is now done
      *after* trying to detect user installed compiler. This way 
      it's more natural to use the unified build as it will
      automatically use the user's C compiler if setup. It's also
      easier to override MinGW in unified builds, since there
      is no need to force compiler using -comp: option, it's
      enough to put preferred C compiler in the PATH.
2009-04-13 23:32:28 +00:00
Viktor Szakats
b53e5db89f 2009-04-14 00:44 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added -workdir:<dir> cmdline option to override default
      working dir (arch/comp) in -inc mode.
    + Added support for working directory in -inc mode.
      Due to lack of output dir option in certain compilers
      (most sadly in gcc family), these compilers will have to
      be executed for each input file, slightly reducing
      performance. I hope some day their developers will add such
      basic option.
    + -quiet option will now suppress the header lines for
      executed commands, creating a good progress output with
      '-trace -quiet'.
    ! Fixed output related regressions in msvc/bcc.
    * Removed explicit warning level settings from C compiler
      options. User can override if needed.
    * Returns errorlevel 19 instead of 9 in help mode. Now 
      returns 9 if the working dir couldn't be created.
    ! Fixed resource compiler command for bcc, msvc, pocc.
      Turns out none of them supported multiple inputs.
    % Minor code size optimization in target output dependency
      checking.
2009-04-13 22:45:41 +00:00
Viktor Szakats
701e344ce4 2009-04-13 21:44 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to delete stub object in -inc mode.
    ! Fixed to handle .res input files with MinGW compilers.
    + Now using different extension (.reso) for compiled .rc and
      .res file with MinGW compilers instead of former .o extension
      which could collide with source files with the same name.
2009-04-13 19:46:34 +00:00
Viktor Szakats
bba5548d6e 2009-04-13 20:50 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    * Added separate compile and link phases for gcc family.
      Please retest, this may cause regressions.
    * win/bcc made to use separate compile/link phases in all
      cases.
    + Added simple progress in -inc mode.
    ! Fixed to detect target timestamp in hblib/hbdyn modes.
2009-04-13 19:03:28 +00:00
Viktor Szakats
20cd02917b 2009-04-13 19:52 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added support for incremental build mode. Still a work in
      progress, many combinations weren't tested and some features
      may not work with certain compilers yet. (bcc/msvc/pocc/owatcom
      should be working, only msvc was tested)
    + Added support for multiple resource input files for mingw
      and owatcom.
    + Added support for inc=on/off .hbp option.
    + msvc targets now use separate link phase. This will automatically
      enable incremental linking if target already exists.
    ! Fixed not prepending CCPATH to resource compiler in mingw mode.
2009-04-13 17:55:46 +00:00
Viktor Szakats
95673458f2 2009-04-13 10:49 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* tests/speedtst.prg
    ! Fixed missing hb_progname() for non-Harbour compilers.

  * include/hbextern.ch
    + Added time related new functions.

  * utils/hbmk2/hbmk2.prg
    + Added -runflag: option to pass flags to target executable.
    + Started -inc (incremental link) support. It's very early
      stage, don't expect it to work yet and please don't report
      any problems with this feature yet.

  * source/vm/asort.c
    ! Fixed to return Clipper compatible results when non-logical
      non-numeric value is returned from ASORT() codeblock.

  * utils/hbtest/rt_array.prg
    * Cleaned ASORT() tests when sorting block returns constant value.
      Now Clipper results aren't bent anymore, instead I've added
      different expected results for Harbour and Clipper. The
      difference is due to different sorting algorithms used,
      here the point is to get similar *pattern* for different
      invalid values.

  * source/rtl/philes.c
    % HB_FGETDATETIME(): Removed double call to hb_stortdt().

  * contrib/hbqt/tests/hbqt.hbp
    * Removed extra line at EOL.

  * contrib/gtqtc/tests/hbqt.hbp
    ! Removed environment dependent 'libspath=' line.
      Please don't add such path to Harbour SVN, since these
      can differ from system to system and is also non-portable.
      The correct name of the directive is: 'libpaths='.

  * contrib/gtqtc/Makefile
    % Removed double SVN ID.
      This file needs to be updated according to hbqt latest
      Makefile portability changes.

  * contrib/rddads/ads1.c
    * Minor formatting.
2009-04-13 08:53:53 +00:00
Viktor Szakats
cc953d88ec 2009-04-09 20:42 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    - Disabled UPX support for all non-Linux *nix systems.
2009-04-09 18:42:42 +00:00