no, this is impossible.
HydraAutoUpdate_Intf.pas should be compiled without any problem in Lazarus because it doesn’t use any internal hydra types.
I can suggest to split your .RODL to two versions:
*) one includes all stuff except hydra
*) second - uses 1st rodl and includes hydra stuff.
so you can use 2nd rodl in delphi and 1st one - in lazarus.
RemObjects SDK for Delphi\Source\CodeGen\uRODLToPascalIntf.pas
HydraAutoUpdate.RODL is an usual RODL.
how codegen can distinguish that this one should be excluded for FPC and included for Delphi?
Evgeny, after a full test, yes, it compile on Lazarus/FPC for Linux but DONT compile for Linux/ARM because HYAutoUpdateService_Impl uses uHYAutoUpdateClient an later unit is a lot linked to windows…
How can i then fix that problem? Im just need a server running on linux. And i need to share my code wth windows RO implementation. I don’t want to have Hydra on Linux, this is clear. I just need to remove all the hydra stuff when it is compiled for linux.
Hydra was designed only for Windows and it never was ported to other platforms.
I can suggest to create your own autoupdate stuff if you needed this for Linux/ARM.
of course, you can use HYAutoUpdateService_Impl as an example
@EvgenyK i don’t need to have working hydra on linux. What i mean is, i believe must be some internal mechanism to avoid calling window stuff on there and allowing to disable hydra references on linux. Remember: i suggest you why don’t make the generator to producing all int, ink and impl files without hydra reference if linux is active (with a simple {$ifndef linux} line) and you say me it haven’t sense because, even with that reference it will compiles ok. The problem is, that hydra references, don’t compile on linux.
Autoregenerated codegen files (_intf, _invk and _async) aren’t require Hydra.
You are trying to compile specific implementation of Hydra service (_impl) on linux.
as a workaround, you can implement your own uHYAutoUpdateClient that won’t contain references to hydra and windows or generate empty HYAutoUpdateService_Impl.pas in ServiceBuilder from HydraAutoUpdate.RODL and implement your own logic.
Im really stuck with this… Im have a autoupdatetestervice_impl file, same of the example for hydra. It cannot load because it expects PROPERTIES only on HYDRA!
Please Evgeny, give me a better solution to share code between delphi and fps projects. If not hydra on fpc, how can i have this autoupdateservice there? I have no solution and don’t have any clue where too continue with this.