Commit Graph

1271 Commits

Author SHA1 Message Date
Viktor Szakats
8f6b341a49 2010-05-18 02:25 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    + Added experimental -hbdynvm mode.
    + Added support for .def input file in -hbdyn/-hbdynvm modes.
    ; TODO: Couldn't find how to pass .def files to Open Watcom wlink.
            Anybody with an experience here?

  * src/rtl/memvarhb.prg
    + Added one initialization to NIL.
2010-05-18 00:26:06 +00:00
Viktor Szakats
948023ab13 2010-05-15 17:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* harbour.spec
  * contrib/Makefile
  + contrib/hbsms
  + contrib/hbsms/tests
  + contrib/hbsms/tests/send.prg
  + contrib/hbsms/tests/hbmk.hbm
  + contrib/hbsms/hbsms.prg
  + contrib/hbsms/hbsms.hbc
  + contrib/hbsms/Makefile
  * utils/hbmk2/examples/contribf.hbc
    + Readded hbsms lib.
    + Modified to use newly added core com functions
      via HBCT .prg level interface. (instead of hbtpathy)
    + Added disclaimer:
        EXPERIMENTAL CODE. USE AT YOUR OWN RISK. NO GUARANTEES.
      The code well may be pure crap, so if you have problem
      with it, supply working patches. Pls note that the
      reader function uses locally implemented timeout
      functionality, which may or may not work at all,
      though you can fix it if you have better idea.
      I've only tested it using Mac OS X 10.6 + old Nokia "S40"
      phone and one bad SMS number to see it kicks off at
      all and that's also the end of my testing possibilities.
2010-05-15 15:47:11 +00:00
Viktor Szakats
90ef2137c0 2010-05-12 22:17 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    * Two minor cleanups

  * config/postinst.prg
    + Will now honor HB_CONTRIBLIBS and HB_CONTRIB_ADDONS
      when creating import libraries. IOW it will only create
      implibs to the contribs actually built.

  * utils/hbmk2/hbmk2.prg
    + Added trick when using real xhb toolchain to detect
      -tW C flag and in this case automatically select the ST
      C RTL library. (Notice that -tW will only be detected
      when passed normally via cmdline or script, and not
      when using legacy HB_BUILD_CFLAGS envvar or inherited
      compiler flags).
2010-05-12 20:19:12 +00:00
Viktor Szakats
88a247ea23 2010-05-12 16:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
+ contrib/gtalleg/gtalleg.hbi
  + contrib/hbblat/hbblat.hbi
  + contrib/hbcairo/hbcairo.hbi
  + contrib/hbcurl/hbcurl.hbi
  + contrib/hbfbird/hbfbird.hbi
  + contrib/hbfimage/hbfimage.hbi
  + contrib/hbgd/hbgd.hbi
  + contrib/hbhpdf/hbhpdf.hbi
  + contrib/hbmysql/hbmysql.hbi
  + contrib/hbpgsql/hbpgsql.hbi
  + contrib/hbssl/hbssl.hbi
  + contrib/rddads/rddads.hbi
  + contrib/sddfb/sddfb.hbi
  + contrib/sddmy/sddmy.hbi
  + contrib/sddoci/sddoci.hbi
  + contrib/sddpg/sddpg.hbi
    + Added local import library generation hbmk2 make files
      to each contrib which requires it.

  * config/postinst.prg
    + Changed to use contrib local implib creation hbmk2 scripts to
      create import libraries.
    - Deleted mingw exception for ocilib to use the static library.
      Static lib is definitely better, but if someone would like to
      use it, it should be done locally/manually, just like for any
      other dependency.
    + Solved firebird implib creation hack/exception in contrib
      local .hbi file.
    ; These fix the last "centralization" issues in Harbour make system.
      Still remains documentation problem (everything is in INSTALL),
      and *nix .deb/.rpm centralized solution for contrib dependencies
      and contrib names in general.

  * utils/hbmk2/hbmk2.prg
    + Combining multiple -o options (one with name, one with directory)
      is now supported in -hbimplib mode. This makes it work like in
      other existing modes.
    ! Fixes regarding -o option combining and dir inheritance.
      (beware of regressions here)

  * contrib/gtalleg/gtalleg.hbc
    * Changed to use import library on Windows with an unmodified name
      (containing version).

  * src/rtl/hbcom.c
    ! Fixed one non-ANSI comment.

  * ChangeLog
    + Added two changes missed from prev entry:
      * utils/hbmk2/hbmk2.prg
        + In -hbimplib mode any options are automatically passed to
          import library creation command (so -iflag option is not
          absultely needed)
        - Deleted -mkimplibms option now replaces by generic -iflag
          solution.
    ! Stripped UTF-8 char from a recent entry.
2010-05-12 15:02:01 +00:00
Viktor Szakats
2fed94876d 2010-05-12 09:20 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    - Deleted 'experimental' flags from all features.
    * Finalized import lib creation feature in hbmk2.
      + Added -hbimplib mode switch (this replaces -mkimplib= option)
      + Input source files (.dlls) now should be passed to
        hbmk2 as simple source filenames (without option prefix).
      + Multiple input source files are now supported.
      + Added -iflag= option to pass flags to import library creation
        command directly.
      * Changed so that target import library name/dir can now be
        specified using -o option (like in other modes).
      + Filenames/dirs are now all normalized.
      + Some warnings are now only shown in -info mode.
      ; F.e.:
          'hbmk2 -hbimplib mydll1 mydll2 -omydir -iflag={bcc}-a'
        This also means that a simple .hbp file can be created
        to solve the import library needs for a given dependency.

  * config/postinst.prg
    * Adapted to use new import library creation hbmk2 commands.

  * src/rtl/hbcom.c
    ! Fixed minor typo.
2010-05-12 07:24:05 +00:00
Viktor Szakats
5e3f92ac36 2010-05-08 11:53 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Extended -mkimplib option for windows gcc compilers (mingw/cygwin)
      to first look for matching COFF .lib file and use it to create
      import library. If such is not found, try to use matching .def
      file and automatically generate import library using dlltool.
      If none if these were found, use the .dll directly, to create
      the import library. In case of Harbour, this method resolves 
      almost all mingw implib needs.
      See longer note in source (in function win_implib_command_gcc())
      about the details of the problem, the only thing I cannot see
      is why mingw/cygwin developers insist on not fixing this issue
      since ten year, while all other compilers can properly resolve
      this problem. Anyhow until then mingw cannot use .dll using
      stdcall calling convention without COFF .lib or .def file. If
      both are missing, the only solution is to manually build a
      .def file by first generating it from .dll then manually
      adding '@nn' decoration according to function prototypes.
      Thanks mingw.

  * config/postinst.prg
    - Deleted APOLLO implib generation. Apollo fall into the
      problematic category for mingw, because developers chose
      to use stdcall callconv and they forgot to provide
      implib or .def file. It's not part of core anyway.
    * Slightly changed mysql implib generation to also work
      for mingw.
    - Deleted no more necessary manuall hack for mysql implib
      generation.
    + Added manual hack for firebird implib generation. In
      this hbmk2 automatism cannot work as they distribute
      COFF .lib in another directory and using a different
      name than the .dll.
2010-05-08 09:54:50 +00:00
Viktor Szakats
cd7aec0199 2010-05-07 18:16 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fix to recent mkimplib change.
2010-05-07 16:17:18 +00:00
Viktor Szakats
6778c4fcdc 2010-05-07 12:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/win/mingw.mk
    + Enabled --nxcompat and --dynamicbase options for mingw64
      targets.

  * utils/hbmk2/hbmk2.prg
    * Changed -mkimplib usage as follow:
         -mkimplib=some.dll [implib_name_or_dir]
      It's incompatible with previous one, but allows for simpler,
      short calls.
    ! Fix to path normalizer to also append a pathsep to "." when
      the resulting directory is an empty one.
    * Minor internal change (cCCEXT moved to hbmk structure)

  * config/postinst.prg
    % Changed to use new -mkimplib parameter format.
      (untested)
2010-05-07 10:36:34 +00:00
Viktor Szakats
d1c80c5c63 2010-05-06 15:29 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Refining cygwin autodetection by additionally
      looking for gcc.exe next to cygstart.exe.
    + -o option will now accept macros, filters and will inherit
      parent path even in -gh and other Harbour-only modes.
2010-05-06 13:32:14 +00:00
Viktor Szakats
1e853cfc15 2010-05-05 10:39 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/os2/gcc.mk
  * utils/hbmk2/hbmk2.prg
    - Deleted resource support from os2/gcc and os2/gccomf.
      It didn't work with any gcc flavours. Resource support
      seems to be broken in gcc tools.
2010-05-05 08:44:08 +00:00
Viktor Szakats
2f5d29aff5 2010-05-05 08:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/achoice.prg
    ! Added patch by Jerry Finuliar to fine tune cursor
      positioning behavior.

  * contrib/hbmysql/mysql.c
    + Added MYSQL_REAL_ESCAPE_STRING() function.
    ! Fixed some types to be in sync with actual MYSQL implementation
      (int -> unsigned int, int -> unsigned long)
      in MYSQL_ESCAPE_STRING(), MYSQL_ESCAPE_STRING_FROM_FILE(),
      MYSQL_FETCH_ROW() functions.

  * utils/hbmk2/hbmk2.prg
    + Added comment on dbfnsx lib availability in xhb.
2010-05-05 06:06:26 +00:00
Viktor Szakats
2c10ee2ab4 2010-04-23 20:27 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Minor safety fix.
2010-04-23 18:27:26 +00:00
Viktor Szakats
e862e2e3db 2010-04-23 19:12 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed path normalization to return '.' in case a
      non-empty path becomes an empty one after normalization.
    * Added extra protection to avoid '-I' option with empty 
      parameter.
2010-04-23 17:13:16 +00:00
Viktor Szakats
1f9802082d 2010-04-23 02:36 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Minor adjustment to watcom -warn=max mapping.
2010-04-23 00:36:55 +00:00
Viktor Szakats
7df007ad24 2010-04-23 02:26 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Changed low warning level for msvc/icc compilers to -W2
      (-W1 is the default).

  * config/wce/msvcarm.mk
  * config/win/icc.mk
  * config/win/msvc.mk
    + Upped 'HB_BUILD_WARN=no' warning level for msvc/icc
      compilers to '-W2'. (matching hbmk2 -warn=low level)

  * config/dos/watcom.mk
  * config/win/watcom.mk
  * config/linux/watcom.mk
  * config/os2/watcom.mk
    + Upped 'HB_BUILD_WARN=no' warning level for msvc/icc
      compilers to '-w1'. (matching hbmk2 -warn=low level)
2010-04-23 00:30:50 +00:00
Viktor Szakats
a4bf46c73f 2010-04-23 01:53 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Reverted bcc experimental warning tweak.
    * Fine tuned bcc -warn levels.
    ! Fixed sunpro warning levels.

  * config/beos/gcc.mk
  * config/bsd/gcc.mk
  * config/wce/mingwarm.mk
  * config/darwin/gcc.mk
  * config/darwin/clang.mk
  * config/hpux/gcc.mk
  * config/dos/djgpp.mk
  * config/win/mingw.mk
  * config/win/cygwin.mk
  * config/linux/gcc.mk
  * config/linux/clang.mk
  * config/os2/gcc.mk
  * config/sunos/gcc.mk
    + Upped 'HB_BUILD_WARN=no' warning level for GCC
      and compatible compilers to '-W'.

  * config/linux/sunpro.mk
  * config/sunos/sunpro.mk
    ! Fixed to not disable all warnings explicitly
      in HB_BUILD_WARN=no mode.

  * config/win/bcc.mk
    * Minor sync with hbmk2.
2010-04-22 23:53:45 +00:00
Viktor Szakats
0a016856bc 2010-04-23 01:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.pt_BR.po
  * utils/hbmk2/hbmk2.hu_HU.po
  * utils/hbmk2/hbmk2.prg
    + Added new warnings levels:
      -warn=max - maximum warning level (higher than Harbour).
      -warn=low - low warning level.
    * -warn=yes in bcc will not disable signedness warnings anymore.
      (experimental)
2010-04-22 23:03:13 +00:00
Viktor Szakats
62ba429c07 2010-04-22 13:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbtrace.c
  * INSTALL
    + Added trace output support to syslog() for *nix systems
      (except watcom builds).
      It's enabled by HB_TR_SYSOUT=yes envvar, which now
      supercedes previous HB_TR_WINOUT setting.
      Windows users pls change HB_TR_WINOUT to HB_TR_SYSOUT.
    ! Fixed potential problem in HB_TR_WINOUT code, where
      the same vararg holder variable was used multiple
      times. On *nix this caused GPF. The safest is to make
      a copy of it for each usage.

  * contrib/hbwin/hbwin.ch
  * contrib/hbwin/Makefile
  + contrib/hbwin/tests/testevnt.prg
  + contrib/hbwin/win_evnt.c
    + Added function to add a new event to the Windows event log:
        WIN_REPORTEVENT( [<cServerName]>, <cEventLog>,
                             <nType>, [<nCategory>], [<nEventID>],
                                <cString> | <acString>, [<cRawData>] ) -> <lSuccess>

  * contrib/hbwin/win_prn2.c
    ! Fixed wce warning.

  * utils/hbmk2/examples/contribf.hbc
  * utils/hbmk2/examples/contrib.hbc
    + Added minizip lib.
2010-04-22 11:49:30 +00:00
Viktor Szakats
b4181a49f6 2010-04-16 13:25 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/win/msvc.mk
  * utils/hbmk2/hbmk2.prg
    * Replaced -Ot2b1 win/msvc* option with -O2 as recommended by Microsoft,
      and in sync with GNU Make. This will result in somewhat larger
      executable, but this gives the best overall performance. AFAICS
      this change will practically allow automatic inlining to take place.
      This puts msvc in the lead again compared to mingw regarding speed.

  * config/wce/msvcarm.mk
    * Deleted bogus option -Od turning off all optimization for
      wce/msvcarm targets for new compiler versions.

  * config/wce/msvcarm.mk
  * config/win/msvc.mk
    * Deleted Exception Handling options from all msvc cmdlines
      where it was supplied. It has a heritage from the past, and
      I could depict no sense in the setup:
         - old wce/msvcarm: -EHsc
         - new wce/msvcarm: -EHsc-
         - old win/msvc*: none
         - new win/msvc*: -EHs-c-
      The only place this could be needed ATM is hbqt, so pls report
      results after this change, or unleash any information about
      proper usage of these options.
      NOTE: These options were already left out from hbmk2.

  * utils/hbmk2/hbmk2.prg
    * Deleted -YX option for old msvc versions. (to be in sync with
      this recent change in GNU Make)
    * Synced msvcarm options for new compiler versions with GNU Make.
      (deleted bogus -Od and some other options)

  ; TODO: msvc optimization options for old compiler version could
          still use a revamp.
2010-04-16 11:27:55 +00:00
Viktor Szakats
acc8da9057 2010-04-12 11:08 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added feature to allow -inc mode when using harbour compiler
      as preprocessor:
         'hbmk2 -hbraw -inc -p[<path>] -s[<m>] <.prg[s]>'
    + Added dummy handling for rest of '%__APP*__%' OSX macros.
2010-04-12 09:13:03 +00:00
Viktor Szakats
576701d94f 2010-04-11 21:45 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + -info parameter will now enable output line with target
      filename. This is done by default in -inc mode, so to get
      it also in non -inc mode, just add -info to cmdline.
      This fixed target detection in HBIDE.
2010-04-11 19:45:32 +00:00
Viktor Szakats
5405a20528 2010-04-09 23:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* harbour.spec
  * utils/hbmk2/examples/contribf.hbc
  * contrib/Makefile
  + contrib/hbblink
  + contrib/hbblink/hbblink.ch
  + contrib/hbblink/hbblink.hbc
  + contrib/hbblink/Makefile
  + contrib/hbblink/blinker.prg
  * contrib/hbmisc/hbmisc.hbc
  * contrib/hbmisc/Makefile
  - contrib/hbmisc/blinker.prg
  - contrib/hbmisc/blinker.ch
    * Moved Blinker compatibility calls to separate library.
    * Renamed blinker.ch to hbblink.ch
    ! Changed to use '-c' instead of '/c' in command execution.
    ; QUESTION: Any opinions on including that in core?
2010-04-09 21:15:45 +00:00
Viktor Szakats
92a56a25c7 2010-04-09 08:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * _EOL -> _CHR_EOL
2010-04-09 06:49:39 +00:00
Viktor Szakats
86a38625eb 2010-04-08 21:23 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed not propely working filters in some options + situations.
      (should fix hbrun.hbp problem after recent update)
    * Cleanups regarding pathsep conversion to native
      format in some internal routines.
2010-04-08 19:23:50 +00:00
Viktor Szakats
0749c855ce 2010-04-07 15:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
+ package/harb_os2.ico
    + Uploaded OS X Harbour icon.
      Thanks to Vailton Renato.

  * utils/hbrun/hbrun.rc
  * utils/hbrun/hbrun.hbp
    * Changed to use OS/2 .ico file for OS/2 targets. Pls test.
2010-04-07 13:28:32 +00:00
Viktor Szakats
fc33f10a4d 2010-04-07 10:37 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
- package/harbour.ico
  + package/harb_win.ico
  * package/mpkg_win.nsi
  * package/winuni/mpkg_win_uni.nsi
  * utils/hbrun/hbrun.rc
  * utils/hbrun/hbrun.hbp
    * Renamed .ico to make it obvious that it is a Windows icon file.
2010-04-07 08:38:22 +00:00
Viktor Szakats
8ea115f759 2010-03-29 22:34 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed to always convert pathseps in icon filename to forward 
      slashes.

  * utils/hbrun/hbrun.rc
    * Cleaned. Now back to original commit with purely forward 
      slashes. Should see if this works with OS/2 GCC windres.
2010-03-29 20:36:08 +00:00
Viktor Szakats
dae414e1ce 2010-03-29 13:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
  * config/os2/gcc.mk
    ! Fixed to not use '-O coff'. It generates strange error.
      '-O omf' is still used, pls test it.

  * utils/hbrun/hbrun.rc
    * Trying to make it work for OS/2 and at the same time
      lessen the chaos (f.e. using forward slashes in filenames).
2010-03-29 11:51:42 +00:00
Viktor Szakats
bc73992c1a 2010-03-28 19:22 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.prg
    * Corrected double pathseps in one place.

  * ChangeLog
    + Marked TODO's as DONE.
    ! Fixed timezone for today.

  * utils/hbrun/hbrun.rc
    + Added support for OS/2. Can someone test it?
2010-03-28 17:23:00 +00:00
Viktor Szakats
037260a10b 2010-03-28 11:38 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/wce/mingwarm.mk
  * config/win/mingw.mk
  * config/win/cygwin.mk
  * config/os2/gcc.mk
    ! Fixed resource compiler binary name to honor CCPREFIX and friends.

  * utils/hbrun/Makefile
  + utils/hbrun/hbrun.rc
    + Added resource file to include icon.
    ; TOFIX: The .ico file path is hard-wired and will break if HB_BUILD_NAME
             contains subdirs.

  * bin/postinst.bat
    - Deleted no more necessary hack to build hbrun with icon using hbmk2.
2010-03-28 09:43:41 +00:00
Viktor Szakats
67e63c23f3 2010-03-27 17:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Very small cleanup.
2010-03-27 16:02:05 +00:00
Viktor Szakats
7b901edeb6 2010-03-26 15:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed decorating implib name in -mkimplib option if the name 
      contained dir component.
2010-03-26 14:44:54 +00:00
Viktor Szakats
b5c0243e6f 2010-03-26 15:04 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Minor cleanup to use native pathseps in hb_FileExists() call.

  * bin/postinst.bat
    ! Fixed missing '\' when forming PGSQL .dll path.
2010-03-26 14:06:03 +00:00
Viktor Szakats
fa396fec40 2010-03-23 08:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Minor (non-functional) corrections to latest additions.
2010-03-23 07:38:29 +00:00
Viktor Szakats
556256c6ba 2010-03-22 10:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed implib internal flag handling for msvc targets.
    ! Fixed path format conversion in implib parameters.
    + Added support for filters, macros for implib creation parameters.
2010-03-22 09:59:45 +00:00
Viktor Szakats
506e43ffda 2010-03-22 10:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added -trace support to -mkimplib option.
    * Variables renamed in new code.

  - examples/hbdoc
  - examples/hbmsql
    - Deleted two obsolete components:
      - hbmsql is not available freely anymore and was not tested
        or update since many years. Check hbmysql and hbsqlit3 for
        alternatives.
      - hbdoc was superceded by hbdoc2.
2010-03-22 09:37:36 +00:00
Viktor Szakats
e808b13bc1 2010-03-22 01:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added undocumented '-mkimplibms' option to allow for users
      to make bcc implib happy for some .dlls (translated to
      -a implib.exe option). Ugly solution, needed because bcc 
      chose not to follow standards.

  * bin/postinst.bat
    + Some adjustments to hbmk2-based implib generation cmdlines.
    + Added exception to use static ocilibs with mingw.

  * bin/postinst.bat
  - bin/hb-mkimp.prg
  * package/winuni/mpkg_win_uni_extra_copy.bat
  * package/winuni/mpkg_win_uni.bat
  * package/winuni/mpkg_win_uni.nsi
    + Switched HB_BUILD_IMPLIB build option to use hbmk2
      to create implibs instead of local solution (hb-mkimp.prg).
      Note, this means that implibs will now always be
      created dynamically from .dll, even when a package
      offers pre-built .lib for the compiler. This will
      in practice cause a change msvc and pocc compilers.
      This also means that from now on it's enough to have
      the .dll to create implibs.
      It's also easier for users to create implibs using
      hbmk2 any time, so it's possible that HB_BUILD_IMPLIB
      build-time option will be deleted in the future.
    ; Not tested yet.
2010-03-22 00:34:28 +00:00
Viktor Szakats
e41a40e72f 2010-03-22 01:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Finishing touches to -mkimplib option:
      - Automatic "dressing" of target library name with extension, lib prefix.
      - More detailed feedback.

  * bin/postinst.bat
    + Added hb-mkimp.prg replacement logic based on hbmk2.
      (not yet enabled)
2010-03-22 00:04:46 +00:00
Viktor Szakats
504e7698e9 2010-03-22 00:43 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added experimental -mkimplib= option to "convert" .dll
      files into import libraries. Syntax tentative.
    ; TODO: Support for idiotic -a Borland C implib option.
            If anyone has an idea how to detect when to use
            -a and when not, I will implement it. If not,
            I will most probably drop maintaining -a option
            for bcc and leave it off. This leaves implibs
            working for most .dlls we currently use, but will
            break some (blat, curl, cairo, pq, alleg from
            contrib).

  * config/win/xcc.mk
  * utils/hbmk2/hbmk2.prg
    ! Fixed to use case-correct filenames for xcc tools.

  * bin/hb-mkimp.prg
    + Added msvcia64, msvcarm, xcc support.
    ! Fixed few library specs for msvc*.
    * FS_ERROR -> F_ERROR
    ! Fixed handling spaces inside dll name for msvc*.
    ! Fixed handling non .dll extension for msvc*.
2010-03-21 23:44:16 +00:00
Viktor Szakats
9d30f3ba4d 2010-03-21 12:00 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
+ bin/hb-mkimp.prg
    + Added .prg rewrite for implib generation. This highly
      reduces redundancy, drops WinNT and GNU Sed tool
      requirement, further lowers the amount of non-portable
      batch sources in SVN. It also opens the door to add
      automatic implib generation in tools like hbmk2.
      Not yet tested.

  * bin/postinst.bat
    % Minor cleanup.

  * bin/hb-mkimp.bat
    * Rearrangement.

  * utils/hbmk2/hbmk2.prg
    ! Typo on comment.
2010-03-21 11:01:31 +00:00
Viktor Szakats
5e706af37a 2010-03-20 10:49 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbbz2/Makefile
  - contrib/hbbz2/hbbzip2.ch
  + contrib/hbbz2/hbbz2.ch
  - contrib/hbbz2/hbbzip2.c
  + contrib/hbbz2/hbbz2.c
  - contrib/hbbz2/hbbzip2.hbc
  + contrib/hbbz2/hbbz2.hbc
  * contrib/hbbz2/tests/hbmk.hbm
    * Renaming hbbzip2 to hbbz2 (pass 2/2)

  * utils/hbmk2/examples/contribf.hbc
    * Updated.

  - utils/hbmk2/examples/hmg.hbc
  - utils/hbmk2/examples/minigui.hbc
    - Deleted these example since they are now maintained in 
      HMG/MiniGui projects (Thanks!).
2010-03-20 09:50:12 +00:00
Viktor Szakats
29d0c87141 2010-03-15 09:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/ctnet.c
  * contrib/hbtpathy/tpwin.c
  * contrib/hbnf/getenvrn.c
    ! Fixed to disable some functionality on all WinCE platforms.
      These were WinCE API functions wrongly declared in
      mingwarm/poccarm headers. (thus causing link-time errors
      for final apps trying to use these functions)

  * contrib/hbwin/win_dlg.c
    ! Enabled more functionality for WinCE. mingwarm builds
      will probably crash due to buggy commdlg.h header.

  * src/vm/fm.c
    ! Fixed to redefine ABORT for all wce/msvcarm targets.

  * utils/hbmk2/hbmk2.prg
    ! Minor typo in recently added help item.

  * contrib/gtwvg/gtwvg.h
  * contrib/gtwvg/wvggui.h
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
  * contrib/hbwin/win_dlg.c
  * contrib/hbodbc/odbc.c
  * contrib/rddsql/sddodbc/sddodbc.c
    ! Fixed to compile with -DWIN32_LEAN_AND_MEAN.
2010-03-15 09:00:55 +00:00
Viktor Szakats
c6f9de005f 2010-03-14 22:35 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* bin/postinst.bat
    ! Fixed hbmk2 -lang option.

  * contrib/hbwin/win_prn1.c
    - Deleted comment no more necessary.

  * utils/hbmk2/hbmk2.prg
    + Added -width= option to set output width.
2010-03-14 21:35:41 +00:00
Viktor Szakats
e97a7501d0 2010-03-14 21:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/fm.c
  * src/common/hbwince.c
  * include/hbwince.h
  * include/hbthread.h
  * contrib/hbct/ctnet.c
  * contrib/hbodbc/Makefile
  * contrib/xhb/hbserv.c
  * contrib/hbtpathy/tpwin.c
  * contrib/hbnf/getenvrn.c
  * contrib/rddsql/sddodbc/Makefile
  * contrib/hbwin/olecore.c
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_dlg.c
  * config/wce/msvcarm.mk
    + Added support for msvcarm 2008.

  * utils/hbmk2/hbmk2.prg
    ! Synced msvcarm dynlib creatino options with Harbour build.
2010-03-14 20:32:31 +00:00
Viktor Szakats
69ebe57a58 2010-03-14 12:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/wce/msvcarm.mk
  * utils/hbmk2/hbmk2.prg
    ! Added -D_ARM_ required by some MSVC releases.
      This caused compilation errors with some sources.
2010-03-14 11:22:12 +00:00
Viktor Szakats
f3caf5ad7e 2010-03-13 19:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed autodetection of mingwarm, when Cygwin is also 
      in PATH (it is supposed to be there, as it is a 
      requirement for C compiler).
2010-03-13 18:48:14 +00:00
Viktor Szakats
17c6e80808 2010-03-13 17:20 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + hbmainstd/hbmainwin lib is now added for mingw family
      to lib list also for static executables. It fixes the GPF
      at startup with Equation Solution mingw64 build. I hope
      it doesn't create any harm for other builds, it remains
      to be tested.
    % Disabled -fomit-frame-pointer for mingw64.

  * utils/hbformat/Makefile
  * utils/hbmk2/Makefile
  * utils/hbi18n/Makefile
  * utils/hbtest/Makefile
  * utils/hbrun/Makefile
  * config/win/mingw.mk
    % "HB_MAIN" logic eliminated from local make files and moved
      to mingw.mk only.
2010-03-13 16:27:08 +00:00
Viktor Szakats
0cae7b71e1 2010-03-13 15:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
  * utils/hbmk2/hbmk2.prg
    + Added autodetection for Equation Solution mingw64 builds.

  * INSTALL
    + Added link to Equation Solution mingw releases.

  * src/vm/itemapi.c
    * Formatting.
2010-03-13 14:07:12 +00:00
Viktor Szakats
3cd5de7df6 2010-03-12 11:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Readded -pipe option for gcc (except djgpp) and icc/linux family
      compilers in a more sophisticated way. Now -pipe option is only
      used when hbmk2 controls the output filename, and in such case
      the output filename will always be deleted by hbmk2 if the
      C compiler returned error. This way -pipe can never leave
      faulty or dummy object files on disk, confusing incremental builds
      or just leaving trash behind. BTW, it'd be interesting to
      know why such seemingly buggy behavior hasn't been fixed in gcc
      in the last 6-7 years... (making -pipe option useless for Harbour 
      build process f.e.)
2010-03-12 10:42:29 +00:00
Viktor Szakats
805f3b55e8 2010-03-12 02:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/evpmd.c
    ! Disabled md2 support for >= 1.0.0 OpenSSL versions.
      Seems they dropped it.

  * contrib/hbssl/ssl.c
  * contrib/hbssl/x509.c
  * contrib/hbssl/sslctx.c
    ! Disabled some code parts which didn't compile with
      >= 1.0.0 OpenSSL versions. This is not the right fix,
      but I just can't figure what went wrong (or what
      has been changed) in OpenSSL which cases it. There
      is something wrong around 'X509_NAME' symbol.

  * utils/hbmk2/hbmk2.prg
  * config/beos/gcc.mk
  * config/bsd/gcc.mk
  * config/wce/mingwarm.mk
  * config/darwin/gcc.mk
  * config/hpux/gcc.mk
  * config/win/mingw.mk
  * config/win/cygwin.mk
  * config/linux/gcc.mk
  * config/linux/icc.mk
  * config/os2/gcc.mk
  * config/sunos/gcc.mk
    - Deleted '-pipe' option. Efficient, but buggy. It didn't take
      too long to bump into the problem: On build error, the
      .o file is generated with some dummy content, so a second
      build attempt will silently make build errors ignored.

  * contrib/rddsql/sddfb/sddfb.c
    * Minor formatting.
2010-03-12 01:11:58 +00:00