LazDaemon doesn't store its compiled files into a subdirectory
Original Reporter info from Mantis: ChrisF
-
Reporter name:
Original Reporter info from Mantis: ChrisF
- Reporter name:
Description:
Unlike other standard application templates (like 'Application', 'Console Application', ...), Lazdaemon applications don't store their compiled files into a subdirectory of the project (like .\lib\i386-win32 for instance).
This is due to a few missing data into the by-default generated .lpi file.
Nota : I guess it's concerning all the possible platforms, not only the windows platform.
Steps to reproduce:
To reproduce:
-install the LazDaemon package (found in \components\daemon)
-create a new LazDaemon project : Project->New Project->Choose 'Daemon (service) application'
-save all project source files into a directory (File->Save All...)
-compile this new project: Execute->Create
All the compiled file (.lfm,.o,.ppu,.compiled,*.or) are present into the main source directory; not into a 'lib' subdirectory of it.
Additional information:
Patch: Add the missing data to the by-default generated .lpi file
File to patch: 'reglazdaemon.pp' (in \components\daemon)
Concerned function: 'function TDaemonProjectDescriptor.InitProject'
Proposed patch:
AProject.LazCompilerOptions.Win32GraphicApp:=False;
// Patch start: Add the 2 following lines
AProject.LazCompilerOptions.UnitOutputDirectory:='lib'+PathDelim+'$(TargetCPU)-$(TargetOS)';
AProject.LazCompilerOptions.TargetFilename:='project1';
// Patch end
AProject.ProjectInfoFile:='project1.lpi';
Mantis conversion info:
- Mantis ID: 25039
- OS: windows
- Version: 1.0.12
- Fixed in revision: r46406 (#2aae923f)