2009-03-19 15:33 UTC+0100 Viktor Szakats (harbour.01 syenar hu)

* INSTALL
  * contrib/Makefile
    + Added QT to the mainstream build. See INSTALL how to 
      enable it. We will disable it before release if it will 
      be a build blocker.

  + contrib/hbqt/hbqt_base.cpp
    + Added missing file from previous commit.

  * utils/hbmk2/hbmk2.prg
    + Added -dflag: and -aflag: options.
This commit is contained in:
Viktor Szakats
2009-03-19 14:34:33 +00:00
parent 10ce64a632
commit 04e0670135
5 changed files with 97 additions and 1 deletions

View File

@@ -8,6 +8,19 @@
2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
*/
2009-03-19 15:33 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* INSTALL
* contrib/Makefile
+ Added QT to the mainstream build. See INSTALL how to
enable it. We will disable it before release if it will
be a build blocker.
+ contrib/hbqt/hbqt_base.cpp
+ Added missing file from previous commit.
* utils/hbmk2/hbmk2.prg
+ Added -dflag: and -aflag: options.
2009-03-19 12:58 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* config/rules.cf
% Removed -ko option as it slightly decreases performance in -gc3 mode.

View File

@@ -147,6 +147,7 @@ HOW TO ENABLE OPTIONAL COMPONENTS BEFORE BUILD
HB_INC_MYSQL=C:\mysql\include
HB_INC_OPENSSL=C:\openssl\inc32
HB_INC_PGSQL=C:\pgsql\include
HB_INC_QT=C:\Qt\2009.01\qt\include
NOTES: - For mingw and cygwin you have to use forward slashes
and also cygwin drive notation for cygwin.

View File

@@ -42,6 +42,7 @@ DIRS +=\
hbmsql \
hbmysql \
hbpgsql \
hbqt \
hbssl \
rddads \
rddsql \

View File

@@ -0,0 +1,65 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT base routines
*
* Copyright 2009 Viktor Szakats <harbour 01 syenar.hu>
* www - http://www.harbour-project.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
*
* As a special exception, the Harbour Project gives permission for
* additional uses of the text contained in its release of Harbour.
*
* The exception is that, if you link the Harbour libraries with other
* files to produce an executable, this does not by itself cause the
* resulting executable to be covered by the GNU General Public License.
* Your use of that executable is in no way restricted on account of
* linking the Harbour library code into it.
*
* This exception does not however invalidate any other reasons why
* the executable file might be covered by the GNU General Public License.
*
* This exception applies only to the code released by the Harbour
* Project under the name Harbour. If you copy code from other
* Harbour Project or Free Software Foundation releases into a copy of
* Harbour, as the General Public License permits, the exception does
* not apply to the code that you add in this way. To avoid misleading
* anyone as to the status of such modified files, you must delete
* this exception notice from them.
*
* If you write modifications of your own for Harbour, it is your choice
* whether to permit this exception to apply to your modifications.
* If you do not wish that, delete this exception notice.
*
*/
#include "hbapi.h"
#include "hbqt.h"
HB_FUNC( QT_VERSION )
{
hb_retnint( QT_VERSION );
}
HB_FUNC( QT_VERSION_STR )
{
hb_retc_const( QT_VERSION_STR );
}

View File

@@ -874,6 +874,20 @@ FUNCTION Main( ... )
AAdd( s_aOPTL , PathSepToTarget( cParam, 2 ) )
ENDIF
CASE Left( cParamL, Len( "-dflag:" ) ) == "-dflag:"
cParam := ArchCompFilter( SubStr( cParam, Len( "-dflag:" ) + 1 ) )
IF Left( cParam, 1 ) $ cOptPrefix
AAdd( s_aOPTD , PathSepToTarget( cParam, 2 ) )
ENDIF
CASE Left( cParamL, Len( "-aflag:" ) ) == "-aflag:"
cParam := ArchCompFilter( SubStr( cParam, Len( "-aflag:" ) + 1 ) )
IF Left( cParam, 1 ) $ cOptPrefix
AAdd( s_aOPTA , PathSepToTarget( cParam, 2 ) )
ENDIF
CASE Left( cParam, 2 ) == "-l" .AND. ;
Len( cParam ) > 2 .AND. ;
!( Left( cParam, 3 ) == "-l-" )
@@ -3172,7 +3186,9 @@ STATIC PROCEDURE ShowHelp( lLong )
" -bldf=[p][c][l] inherit .prg/.c/linker flags (or none) from Harbour build" ,;
" -prgflag:<f> pass flag to Harbour" ,;
" -cflag:<f> pass flag to C compiler" ,;
" -ldflag:<f> pass flag to linker" ,;
" -ldflag:<f> pass flag to linker (executable)" ,;
" -aflag:<f> pass flag to linker (static library)" ,;
" -dflag:<f> pass flag to linker (dynamic library)" ,;
" -hbcmp stop after creating the object files" ,;
" create link/copy hbmk to hbcmp for the same effect" ,;
" -hbcc stop after creating the object files and accept raw C flags" ,;