On Feb 1, 7:16 pm, Ricardo Aguirre <
el.mas...@gmail.com> wrote:
> And I want to make you a question, I know that in your subscription example
> you include
>
> *yami.gpr *
>
> and inside yami.gpr its included:
>
> with "std_cpp.gpr";
> with "Ws2_32.gpr";
> with "yami_core.gpr";
>
> I want to delete this source code dependences and I want to include just a
> library
> I just want to make something similar like in your java subscription
> example;
> for its compilation and its execution just is included a yami4.jar
It is not possible with the GNAT Project Manager. All these
"dependencies" exist only to describe the linker options that need to
be used together to build a complete executable. For example, the
Ws2_32.gpr file is a very short file that instructs the linker to link
with the Windows Sockets library (on Windows).
It is possible to compile YAMI4 programs without these project files
by forcing additional linker options in the main project file or by
getting rid of project files altogether and using Makefiles. But no
matter what you do, this information will have to be provided to the
linker somehow, so you can only trade one inconvenience with another.
I think you should not be afraid of these files, they do not
contribute any complexity to the build system. Just keep them together
in the same directory and let the linker use them.
Regards,
--
Maciej Sobczak *
http://www.inspirel.com