Recent

Author Topic: Use of Module inside a Project  (Read 452 times)

RTOlivier

  • Newbie
  • Posts: 4
Use of Module inside a Project
« on: April 26, 2022, 06:19:14 pm »
Hello,
I see that one can compile to a module a PAS2JS project but how can I have modules from my units inside a same project?
For example, I create Vue components (from pascal unit files) and then I import them in the same project?
Thank you so much.
« Last Edit: April 27, 2022, 01:04:17 pm by RTOlivier »

Handoko

  • Hero Member
  • *****
  • Posts: 4725
  • My goal: build my own game engine using Lazarus
Re: Use of Module inside a Project
« Reply #1 on: April 26, 2022, 06:32:16 pm »
edit:
I just saw you posted the question under Pas2JS, maybe my answer is not what you're looking for.



Maybe what you mean was Lazarus/FPC Package.

To create a new package:
Lazarus main menu > Package > New Package

To install/uninstall a (builtin or already downloaded) package:
Lazarus main menu > Package > Install/Uninstall Packages

To automatically download and install a third party package:
Lazarus main menu > Package > Online Package Manager

When you drop a visual component on a form, the package of the component will be automatically added to the project. But for non visual components or if you want to manually add a package to your project:
Project Inspector > Add > New Requirement

If you don't know how to show your Project Inspector:
Lazarus main menu > Project > Project Inspector

To learn more:
https://wiki.freepascal.org/Lazarus_Packages
https://wiki.lazarus.freepascal.org/packages
« Last Edit: April 26, 2022, 07:00:26 pm by Handoko »

RTOlivier

  • Newbie
  • Posts: 4
Re: Use of Module inside a Project
« Reply #2 on: April 27, 2022, 01:03:32 pm »
Thank you. Yes, for Pas2JS.

 

TinyPortal © 2005-2018