la forma mas simple de construir desde vscode
Posted: Sat Oct 01, 2022 8:12 am
Cual es la forma más simple de construir un PRG que estemos editando ?
gracias
gracias
www.FiveTechSoft.com
https://forums.fivetechsupport.com/
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
Code: Select all | Expand
#include "FiveWin.ch"
function Main()
MsgInfo( "Hello world" )
return nil
Code: Select all | Expand
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": ".\\go32.bat ${file}"
}
]
}
Code: Select all | Expand
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
c:\harbour\bin\hbmk2 %1 fivewin.hbp -comp=msvc
Code: Select all | Expand
-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
Code: Select all | Expand
{
"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"
}
]
}
Code: Select all | Expand
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
Code: Select all | Expand
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "C:\\FWH\\samples\\go32.bat ${fileBasenameNoExtension}",
"options": {
"cwd": "${fileDirname}"
}
}
]
}
Code: Select all | Expand
{
"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"
}
]
}
Code: Select all | Expand
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "c:\\Users\\anto\\Documents\\go32.bat ${fileDirname}/${fileBasename} ${fileDirname}\\${fileBasenameNoExtension}.exe"
}
]
}
Code: Select all | Expand
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
Code: Select all | Expand
-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
Code: Select all | Expand
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "c:\\Users\\anto\\Documents\\go32.bat ${fileDirname}\\${fileBasenameNoExtension}",
"problemMatcher": [
"$harbour"
]
}
]
}
Code: Select all | Expand
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
Code: Select all | Expand
-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