-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delphi Examples - Adding code directory to project screws up dpr #594
Comments
Indeed, we had a talk about it some time ago on This task had to wait back then for other Delphi changes ( https://castle-engine.io/delphi_linux , https://castle-engine.io/delphi_packages ) but it's not blocked anymore, I should test and do it :) |
…nges, in particular have "program xxx" See #594
Done - DPR files have now Note: We do not automatically add all Pascal files to the Delphi project (DPROJ or DPR), as of now. I considered adding them to DPROJ, but Delphi insists on synchronizing this information from DPROJ to DPR, and this means that all listed units would be actually compiled and linked to the project. And in CastleEngineManifest.xml we do not list all project units -- only units paths. So adding all units from paths (like
We add units to Lazarus LPI, but then they are not automatically compiled, only their timestamp is used to provoke recompilation. |
I experimented with this more, but in short: I only confirmed above conclusion. We don't add units, like Details: I've done one more experiment around this, adding units to DPROJ but not to DPR. It worked, but was pointless -- Delphi doesn't display units in the project panel based on the information in DPROJ, it seems. Only information in DPR matters. So this is commented out now, with explanatory comment: 5e54686 . ( This is in contrast to Lazarus, where LPI specifies which files are part of the project, but DPR/LPR does not have to repeat them, and so not all listed units have to be linked through DPR/LPR. ) |
So I was just trying mesh_update and wanted to change the defaults to always use Shader and an 8192x8192 grid (grid takes a while with that many - notable that the framerate halved when I switched to WireFrame as well)
8192 was the only way to get FPS under 60...
Anyway the Delphi projects only include the standalone so the natural way to add in the code directrory contents is to drag then from explorer into the Project Group
Unfortunatly doing this screws up the dpr and you end up with this mess....
Naturally you just need to remove trhe extra uses and it's clauses but it would be far nicer if the project when opened included the code directory so you could modify the code without having to mess around (as per the above IDE grab)
The text was updated successfully, but these errors were encountered: