From dfcdb1e742d327840d87c5cb7bcba0a79e82a03e Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Sat, 19 Oct 2024 14:08:49 +0300 Subject: [PATCH] * unit ptckvm renamed PTC.KVM if dotted units are used --- packages/ptckvm/fpmake.pp | 2 ++ packages/ptckvm/namespaced/PTC.KVM.pas | 3 +++ packages/ptckvm/namespaces.lst | 3 +++ packages/ptckvm/src/ptckvm.pas | 2 ++ 4 files changed, 10 insertions(+) create mode 100644 packages/ptckvm/namespaced/PTC.KVM.pas create mode 100644 packages/ptckvm/namespaces.lst diff --git a/packages/ptckvm/fpmake.pp b/packages/ptckvm/fpmake.pp index f0301bc311..d332f4cc9c 100644 --- a/packages/ptckvm/fpmake.pp +++ b/packages/ptckvm/fpmake.pp @@ -31,6 +31,8 @@ begin T:=P.Targets.AddUnit('ptckvm.pas'); + P.NamespaceMap:='namespaces.lst'; + {$ifndef ALLPACKAGES} Run; end; diff --git a/packages/ptckvm/namespaced/PTC.KVM.pas b/packages/ptckvm/namespaced/PTC.KVM.pas new file mode 100644 index 0000000000..d42363916a --- /dev/null +++ b/packages/ptckvm/namespaced/PTC.KVM.pas @@ -0,0 +1,3 @@ +unit PTC.KVM; +{$DEFINE FPC_DOTTEDUNITS} +{$i ptckvm.pas} diff --git a/packages/ptckvm/namespaces.lst b/packages/ptckvm/namespaces.lst new file mode 100644 index 0000000000..64079d34af --- /dev/null +++ b/packages/ptckvm/namespaces.lst @@ -0,0 +1,3 @@ +src/ptckvm.pas=namespaced/PTC.KVM.pas +{s*:src/}=namespaced/ +{i+:src/} diff --git a/packages/ptckvm/src/ptckvm.pas b/packages/ptckvm/src/ptckvm.pas index 60f6632d5f..1417101725 100644 --- a/packages/ptckvm/src/ptckvm.pas +++ b/packages/ptckvm/src/ptckvm.pas @@ -30,7 +30,9 @@ Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1335, USA. } +{$IFNDEF FPC_DOTTEDUNITS} unit ptckvm; +{$ENDIF FPC_DOTTEDUNITS} {$mode objfpc}