Reputation: 19
In d2007 ide I can indicate that one project depends on another project.
Is there a way to indicate that a particular file, depends on another file (neither of which is a delphi program) and which needs to run a specified program in order to convert it. In old make files I used to do this and it would be really helpful to be able to do it in delphi to further increase automation and minimize errors and external actions needed to complete some projects.
I suspect that the microsoft project manager that delphi uses is capable of this but I'd like to avoid manually editing the file when delphi can change it any time.
Upvotes: 1
Views: 133
Reputation: 47714
I guess this is not available in D2007, but in newer versions you can configure a Custom Build Tool and link it to a file in the project. Taking Remys example, you would add the asm file to the project and link it to the proper assembler to produce the obj whenever the asm changes.
Upvotes: 2
Reputation: 596527
AFAIK, you cannot define inter-file dependencies within Delphi (not sure about MSBuild). However, you can use project-wide Build Events to run external programs and scripts during Pre-Build, Post-Build, and Pre-Link stages. For example, you could use a Pre-Build event to invoke your converter so that its converted output files are ready for the compiler to use as needed.
Upvotes: 2