A que te refieres con "construir un PRG"Antonio Linares wrote:Cual es la forma más simple de construir un PRG que estemos editando ?
gracias
#include "FiveWin.ch"
function Main()
MsgInfo( "Hello world" )
return nil
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": ".\\go32.bat ${file}"
}
]
}
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
c:\harbour\bin\hbmk2 %1 fivewin.hbp -comp=msvc
-gui
-mt
-Ic:\fwh\include
-Lc:\fwh\lib2
-lFiveH32
-lFiveHC32
-lgdiplus
-lole32
-lOleDlg
-lversion
xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbfoxpro.hbc
hbvmmt.hbc
-ldflag=/NODEFAULTLIB:MSVCRT
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": ".\\go32.bat ${input:variableID}"
}
],
"inputs": [
{
"id": "variableID",
"type": "promptString",
"description": "Indica el nombre del prg"
}
]
}
del %1.exe
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
if exist %1.rc (
c:\harbour\bin\hbmk2 %1.prg %1.rc testvc.hbp -comp=msvc
) else (
c:\harbour\bin\hbmk2 %1.prg testvc.hbp -comp=msvc
)
%1.exe
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "C:\\FWH\\samples\\go32.bat ${fileBasenameNoExtension}",
"options": {
"cwd": "${fileDirname}"
}
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "C:\\FWH\\Samples\\go32.bat ${input:variableID}",
"options": {
"cwd": "C:\\FWH\\Samples"
}
}
],
"inputs": [
{
"id": "variableID",
"type": "promptString",
"description": "Indica el nombre del prg. sin extensión"
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "c:\\Users\\anto\\Documents\\go32.bat ${fileDirname}/${fileBasename} ${fileDirname}\\${fileBasenameNoExtension}.exe"
}
]
}
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
c:\harbour\bin\hbmk2 %1 c:\users\anto\documents\fivewin.hbp -comp=msvc
%2
-o${hb_dir}
-gui
-trace
-Ic:\fwh\include
-Lc:\fwh\lib
-lFiveH32
-lFiveHC32
-lgdiplus
-lole32
-lOleDlg
-lversion
xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbfoxpro.hbc
-ldflag=/NODEFAULTLIB:MSVCRT
-ldflag=/FORCE:multiple
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "c:\\Users\\anto\\Documents\\go32.bat ${fileDirname}\\${fileBasenameNoExtension}",
"problemMatcher": [
"$harbour"
]
}
]
}
del %1.exe
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
if exist %1.rc (
c:\harbour\bin\hbmk2 %1.prg %1.rc c:\users\anto\documents\fivewin.hbp -o%1 -comp=msvc
) else (
c:\harbour\bin\hbmk2 %1.prg c:\users\anto\documents\fivewin.hbp -o%1 -comp=msvc
)
%1
-gui
-Ic:\fwh\include
-Lc:\fwh\lib
-lFiveH32
-lFiveHC32
-lgdiplus
-lole32
-lOleDlg
-lversion
xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbfoxpro.hbc
-ldflag=/NODEFAULTLIB:MSVCRT
-ldflag=/FORCE:multiple
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 21 guests