Software Archive
Read-only legacy content
17061 Discussions

How to outwit dependency analyser?

Jugoslav_Dujic
Valued Contributor II
390 Views
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:

 
!-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.
0 Kudos
0 Replies
Reply