diff --git a/harbour/ChangeLog b/harbour/ChangeLog
index 1d1c5ba0ce..3073db9344 100644
--- a/harbour/ChangeLog
+++ b/harbour/ChangeLog
@@ -16,6 +16,34 @@
The license applies to all entries newer than 2009-04-28.
*/
+2010-11-03 19:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
+ * utils/hbmk2/hbmk2.prg
+ * Using _APPMAIN() instead of MAIN() as entry function, to be
+ friendly with plugins using MAIN().
+ * Commented test code added for hbrun integration.
+ + Added popular package handler's lib and include directory
+ to bsd builds' default setup.
+ * Added comments describint which such directory belongs to which package
+ system (darwin, bsd)
+ + Plugins will now be called with Harbour header directory properly setup,
+ so it's possible to use headers in them.
+
+ * include/hbclass.ch
+ - Deleted some lines which were active when __HARBOUR__ is not defined.
+ As I understand this is Harbour-only header, so __HARBOUR__ is always
+ to be defined. Please speak up if you know what it was for.
+ It was added here: 2006-10-04 02:30 UTC+0200
+
+ * src/pp/hbpp.c
+ + Support for -e option which lets override the name of the
+ public entry function in generated PP rules .c file.
+
+ * contrib/hbqt/hbqt_hbmk2_plugin.hbs
+ + Some provisions to handle .qth files.
+
+ * INSTALL
+ * https links changed to http for win nightly pkgs.
+
2010-11-03 13:07 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/utils/hbqtgen.prg
% Deleted need for Harbour headers. Except hbclass.ch.
diff --git a/harbour/INSTALL b/harbour/INSTALL
index a4ec8f36b4..66473399f7 100644
--- a/harbour/INSTALL
+++ b/harbour/INSTALL
@@ -1194,8 +1194,8 @@ HARBOUR
4.) Harbour nightly binaries (updated once a day from source repository)
Windows (unified):
- https://sourceforge.net/projects/harbour-project/files/binaries-windows/nightly/harbour-nightly-win.exe/download
- https://sourceforge.net/projects/harbour-project/files/binaries-windows/nightly/harbour-nightly-win.7z/download
+ http://sourceforge.net/projects/harbour-project/files/binaries-windows/nightly/harbour-nightly-win.exe/download
+ http://sourceforge.net/projects/harbour-project/files/binaries-windows/nightly/harbour-nightly-win.7z/download
5.) Harbour source download (stable)
diff --git a/harbour/contrib/hbqt/hbqt_hbmk2_plugin.hbs b/harbour/contrib/hbqt/hbqt_hbmk2_plugin.hbs
index 00cafea4ac..b60ace9983 100644
--- a/harbour/contrib/hbqt/hbqt_hbmk2_plugin.hbs
+++ b/harbour/contrib/hbqt/hbqt_hbmk2_plugin.hbs
@@ -32,7 +32,7 @@
#define I_( x ) hb_i18n_gettext( x )
-#if ! defined( __HBSCRIPT__HBRUN )
+#if defined( __HBSCRIPT__HBMK )
FUNCTION hbmk2_plugin_qt( hbmk2 )
LOCAL cRetVal := ""
@@ -56,6 +56,7 @@ FUNCTION hbmk2_plugin_qt( hbmk2 )
hbmk2_Register_Input_File_Extension( hbmk2, ".ui" )
hbmk2_Register_Input_File_Extension( hbmk2, ".hpp" )
hbmk2_Register_Input_File_Extension( hbmk2, ".h" )
+ hbmk2_Register_Input_File_Extension( hbmk2, ".qth" )
EXIT
@@ -66,6 +67,7 @@ FUNCTION hbmk2_plugin_qt( hbmk2 )
hbmk2[ "vars" ][ "aQRC_Src" ] := {}
hbmk2[ "vars" ][ "aUIC_Src" ] := {}
hbmk2[ "vars" ][ "aMOC_Src" ] := {}
+ hbmk2[ "vars" ][ "aQTH_Src" ] := {}
FOR EACH cSrc IN hbmk2[ "params" ]
SWITCH Lower( hbmk2_FNameExtGet( cSrc ) )
@@ -79,6 +81,9 @@ FUNCTION hbmk2_plugin_qt( hbmk2 )
CASE ".h"
AAdd( hbmk2[ "vars" ][ "aMOC_Src" ], cSrc )
EXIT
+ CASE ".qth"
+ AAdd( hbmk2[ "vars" ][ "aQTH_Src" ], cSrc )
+ EXIT
ENDSWITCH
NEXT
@@ -86,9 +91,6 @@ FUNCTION hbmk2_plugin_qt( hbmk2 )
hbmk2[ "vars" ][ "aQRC_Dst" ] := {}
hbmk2[ "vars" ][ "aQRC_PRG" ] := {}
- hbmk2[ "vars" ][ "aUIC_Dst" ] := {}
- hbmk2[ "vars" ][ "aMOC_Dst" ] := {}
-
FOR EACH cSrc IN hbmk2[ "vars" ][ "aQRC_Src" ]
cDst := hbmk2_FNameDirExtSet( "rcc_" + hbmk2_FNameNameGet( cSrc ), hbmk2[ "cWorkDir" ], ".qrb" )
AAdd( hbmk2[ "vars" ][ "aQRC_Dst" ], cDst )
@@ -97,18 +99,31 @@ FUNCTION hbmk2_plugin_qt( hbmk2 )
hbmk2_AddInput_PRG( hbmk2, cDst )
NEXT
+ hbmk2[ "vars" ][ "aUIC_Dst" ] := {}
FOR EACH cSrc IN hbmk2[ "vars" ][ "aUIC_Src" ]
cDst := hbmk2_FNameDirExtSet( "uic_" + hbmk2_FNameNameGet( cSrc ), hbmk2[ "cWorkDir" ], ".prg" )
AAdd( hbmk2[ "vars" ][ "aUIC_Dst" ], cDst )
hbmk2_AddInput_PRG( hbmk2, cDst )
NEXT
+ hbmk2[ "vars" ][ "aMOC_Dst" ] := {}
FOR EACH cSrc IN hbmk2[ "vars" ][ "aMOC_Src" ]
cDst := hbmk2_FNameDirExtSet( "moc_" + hbmk2_FNameNameGet( cSrc ), hbmk2[ "cWorkDir" ], ".cpp" )
AAdd( hbmk2[ "vars" ][ "aMOC_Dst" ], cDst )
hbmk2_AddInput_CPP( hbmk2, cDst )
NEXT
+ hbmk2[ "vars" ][ "aQTH_CPP" ] := {}
+ hbmk2[ "vars" ][ "aQTH_PRG" ] := {}
+ FOR EACH cSrc IN hbmk2[ "vars" ][ "aQTH_Src" ]
+ cDst := hbmk2_FNameDirExtSet( "qth_cpp_" + hbmk2_FNameNameGet( cSrc ), hbmk2[ "cWorkDir" ], ".cpp" )
+ AAdd( hbmk2[ "vars" ][ "aQTH_CPP" ], cDst )
+ hbmk2_AddInput_CPP( hbmk2, cDst )
+ cDst := hbmk2_FNameDirExtSet( "qth_prg_" + hbmk2_FNameNameGet( cSrc ), hbmk2[ "cWorkDir" ], ".prg" )
+ AAdd( hbmk2[ "vars" ][ "aQTH_PRG" ], cDst )
+ hbmk2_AddInput_PRG( hbmk2, cDst )
+ NEXT
+
/* Detect tool locations */
IF ! hbmk2[ "lCLEAN" ]
@@ -317,6 +332,8 @@ FUNCTION hbmk2_plugin_qt( hbmk2 )
AEval( hbmk2[ "vars" ][ "aQRC_PRG" ], {| tmp | FErase( tmp ) } )
AEval( hbmk2[ "vars" ][ "aUIC_Dst" ], {| tmp | FErase( tmp ) } )
AEval( hbmk2[ "vars" ][ "aMOC_Dst" ], {| tmp | FErase( tmp ) } )
+ AEval( hbmk2[ "vars" ][ "aQTH_CPP" ], {| tmp | FErase( tmp ) } )
+ AEval( hbmk2[ "vars" ][ "aQTH_PRG" ], {| tmp | FErase( tmp ) } )
ENDIF
EXIT
@@ -384,30 +401,30 @@ PROCEDURE Main( cSrc, cDst )
LOCAL nError
LOCAL cExt
- LOCAL cName
-
IF cSrc != NIL .AND. ;
cDst != NIL
- FClose( hb_FTempCreateEx( @cTmp ) )
-
- cName := "TEST"
-
hb_FNameSplit( cSrc,,, @cExt )
SWITCH Lower( cExt )
CASE ".ui"
+
+ FClose( hb_FTempCreateEx( @cTmp ) )
+
IF ( nError := hb_processRun( "uic " + cSrc + " -o " + cTmp ) ) == 0
- IF ! uic_to_prg( NIL, cTmp, cDst, cName )
+ IF ! uic_to_prg( NIL, cTmp, cDst, "TEST" )
nError := 9
ENDIF
ELSE
OutErr( "Error: Calling 'uic' tool: " + hb_ntos( nError ) + hb_eol() )
ENDIF
- EXIT
- ENDSWITCH
- FErase( cTmp )
+ FErase( cTmp )
+
+ EXIT
+ CASE ".qth"
+ qth_to_src( cSrc, cDst )
+ ENDSWITCH
ELSE
OutErr( "Missing parameter. Call with: