- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My (large) application has three project configurations for three different languages, each with different preprocessor constant (_ENGLISH, _RUSSIAN and none) defined. All language-dependent strings are centralized in the following manner:
All source files include only "Strings.fd".
However, when I make a change in, say, "Russian.fd" dependency analyser "sees" that "Strings.fd" is dependent from it, though the configuration is "English". Thus, whenever I change any of low-level .fds
there's a need to recompile almost all files in all three configurations though nothing was essentially changed. Since it lasts ~30 minutes, it's quite a waste of time.
Any ideas how to outwit dependency analyser? I know I could edit the makefile, but that would mean that I'd have to compile from command line.
!-8<---File strings.fd---------------------- !DEC$IF DEFINED(_ENGLISH) INCLUDE "English.fd" !DEC$ELSE IF DEFINED(_RUSSIAN) INCLUDE "Russian.fd" !DEC$ELSE INCLUDE "Serbian.fd" !DEC$ENDIF !---------------------------------------------
All source files include only "Strings.fd".
However, when I make a change in, say, "Russian.fd" dependency analyser "sees" that "Strings.fd" is dependent from it, though the configuration is "English". Thus, whenever I change any of low-level .fds
there's a need to recompile almost all files in all three configurations though nothing was essentially changed. Since it lasts ~30 minutes, it's quite a waste of time.
Any ideas how to outwit dependency analyser? I know I could edit the makefile, but that would mean that I'd have to compile from command line.
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page