Recent

Author Topic: [SOLVED] Convince make to compile a additional unit in rtl.  (Read 127 times)

BrunoK

  • Full Member
  • ***
  • Posts: 174
  • Retired programmer
[SOLVED] Convince make to compile a additional unit in rtl.
« on: August 24, 2019, 01:14:29 pm »
For the time being W32.

I have added these lines to FPCDIR/rtl/fpmake.pp.
Code: Pascal  [Select]
  1.     T := P.Targets.AddUnit('winheap.pp', AllWindowsOSes);  // ~bk Windows std heap mm
  2.     with T.Dependencies do begin
  3.       AddUnit('system');
  4.       AddUnit('windows');
  5.     end;
  6.  
fpmake.pp compiles correctly.

In FPCDIR\rtl\win32\Makefile.fpc  I have completed the line with heaptrc to be
 
Code: Pascal  [Select]
  1.      heaptrc urmeth fstobjcr winheap \
  2.  
then fpcmake -TAll -r -w
urmeth and fstobjcr are personal additions and they get correctly compiled and installed.

But I cannot convince the make to compile winheap.pp, SOMEONE KNOWLEDGABLE, please ANY DIRECTION ?

Note : urmeth is a memory code patcher based on jedi and fstobjcr  is patch code for TObject.create. Those 2 haven't caused any trouble since a month.
« Last Edit: August 24, 2019, 02:42:31 pm by BrunoK »
Lazarus trunk r. 59978/03.01.2019 (+/- patches regarding enabled, TScrollBar, TCursorImage). FPC 3.0.4 32 bits. (+heaptrc with leaked ClassName+Revisited TList) , Windows 10 Pro x64 (v. 1903)

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7356
Re: Convince make to compile a additional unit in rtl.
« Reply #1 on: August 24, 2019, 02:20:28 pm »
Windows is build using a build unit. Add it to the uses clause in the buildunit "buildrtl"

BrunoK

  • Full Member
  • ***
  • Posts: 174
  • Retired programmer
Re: Convince make to compile a additional unit in rtl.
« Reply #2 on: August 24, 2019, 02:42:08 pm »
Windows is build using a build unit. Add it to the uses clause in the buildunit "buildrtl"
That was it, thank you very much. That will simplify a lot my tests.
Lazarus trunk r. 59978/03.01.2019 (+/- patches regarding enabled, TScrollBar, TCursorImage). FPC 3.0.4 32 bits. (+heaptrc with leaked ClassName+Revisited TList) , Windows 10 Pro x64 (v. 1903)