Creating a Delphi Project from Visual Studio Code

I already installed the build and debugging environment for Object Pascal inside Visual Studio code through FPC and GDB, but I just did the build process for programs containing only 1.pas file through

"command": "fpc",
"args": [ "-g", "-Px86_64", "helloWorld.pas" ],

Now I need to create a fairly large group of Delphi projects (something like a solution?) And contains the main project file .groupproj.

Is there a way to build .groupproj through FPC? Or at least a workaround, like converting to .lpi and then creating via FPC?
Or at least call the Delphi compiler / constructor from VS Code and build the whole group of projects through it? (but I do not like this option because I prefer not to use Delphi)

+4
source share
1 answer

To get some facts right for other people who might stumble upon this:

  • FPC supports Delphi source files (.lpr / .dpr, .pp / .pas and .inc). Not Delphi meta information (.dproj / .dof / .bpg / .cfg / .groupproj), which in any case depends on the version of Delphi.
  • Lazarus .dfms. .dfm Uses, Delphi. , Delphi ( FPC Delphi (-Sd)) objfpc ( -S2), Lazarus. .
  • FPC Delphi .
  • FPC Lazarus, .lpi. Lazarus Lazbuild Lazarus .

, ,

  • )
  • (.pas ) ( .inc). FPC , delphi .
  • .
  • , , .

, Delphi ( IDE, ) , lazarus (.lpi).

, FPC Delphi, FPC , Delphi (-Sd)

Lazarus ( ), . , .lpis, /shellscript lazbuild .lpis .

P.s. VSCode Lazarus.

-1

Source: https://habr.com/ru/post/1674667/


All Articles