svenbarth
|
4bea75f3bf
pmodules.pas, finish_unit:
|
9 年之前 |
svenbarth
|
60739fa0df
Report a warning if a unit is used from an indirectly used package. We are doing this only for the units used in contained units though as in the "contains" section there can't be such units anyway (and just checking all loaded units would lead to false positives).
|
9 年之前 |
svenbarth
|
5705ff44a2
pmodules.pas, proc_package:
|
9 年之前 |
svenbarth
|
ac6ba043e1
Keep track whether a package was added directly through a requires section (or the command line) or indirectly.
|
9 年之前 |
svenbarth
|
dd4cdca7ab
Generate an error if a unit listed as in "contains" is part of a directly or indirectly required package.
|
9 年之前 |
svenbarth
|
8d99dd6391
Ensure that all implicitely imported units are indeed part of the package.
|
9 年之前 |
svenbarth
|
d4279fac24
Correctly handle export/import generation depending on whether we're compiling for a system that needs indirect imports or not.
|
9 年之前 |
svenbarth
|
5aa7e5740b
Store the modified PPU files directly inside the PCP and thus get finally rid of the .ppl.ppu files.
|
9 年之前 |
svenbarth
|
84cb8d7b2f
Check whether a unit has been implicitely imported in a package. A unit is considered as implicitely imported if it is not part of a required package nor part of the units listed in the contains section. This note is useful (Delphi even provides a dialog in that case) as a package with implicitely imported units /might/ become incompatible with other packages (e.g. if another package includes that unit uses that package and includes that unit explicitely; of course that is the same as if both package included it explicitely, but with the hint one knows where to look).
|
9 年之前 |
svenbarth
|
1d4b105f01
Do not check whether all units are used as by definition all units of a package are considered as used.
|
9 年之前 |
svenbarth
|
08329518c9
Respect DenyPackageUnit flag.
|
9 年之前 |
svenbarth
|
79eb9d6743
Keep track of how many units are used from each required/requested package and only link those from which any units are used.
|
9 年之前 |
svenbarth
|
0add53bfd3
pkgutil.pas:
|
9 年之前 |
svenbarth
|
9c7ee0794e
pmodules.pas, proc_package:
|
9 年之前 |
svenbarth
|
cbcda8bd59
Generate unit exports only for system that need them.
|
9 年之前 |
svenbarth
|
3710c86a1f
Ensure that the reference to the System unit is correctly set up for packages. Among other things this is needed to compile a package with the -gl option (though debug information doesn't work yet).
|
10 年之前 |
svenbarth
|
3eacfce4b4
Correctly create import libraries for packages as well.
|
10 年之前 |
svenbarth
|
be6a1c719c
Add support for parsing required packages.
|
10 年之前 |
svenbarth
|
9887293bec
When compiling a package, handle only those units that are not yet part of a package.
|
10 年之前 |
svenbarth
|
60d36f89ae
Ensure that the correct name is used for the PCP file.
|
10 年之前 |
svenbarth
|
8df3f8dcd2
Ensure that unneeded initialization/finalization procedures don't leave assembler symbols.
|
10 年之前 |
svenbarth
|
18abc831eb
Until package PPU are stored inside the PCP we use .ppl.ppu as extension (instead of .ppu) to find the PPU files that were adjusted for usage in a package.
|
10 年之前 |
svenbarth
|
3d8a43e5f2
Don't link objects files of a unit that is provided by a package.
|
10 年之前 |
svenbarth
|
2808b38882
Generate the import library for each used package.
|
10 年之前 |
svenbarth
|
c0d577fd69
Add the possibility to load all packages supplied as parameters.
|
10 年之前 |
svenbarth
|
854cd84921
Generate the PCP file once the package file and the used units were compiled correctly.
|
10 年之前 |
svenbarth
|
6f15aef215
To correctly generate the import library for a package we need to resolve the dangling external symbols of all units. For this each unit now stores which symbols it exported from another unit and it also stores all global and external assembler symbols it has (maybe this can be streamlined later on, but for now this works).
|
10 年之前 |
svenbarth
|
f4e17dd8c1
Some small fixes for package parsing.
|
10 年之前 |
svenbarth
|
1ca193885f
Extract the code to export the symbols of a unit to its own function in pkgutil so that less functions need to be exported.
|
10 年之前 |
svenbarth
|
1f4440a866
Move package related functions from pmodules to pkgutil.
|
10 年之前 |