Depends.pp 669 B

1234567891011121314151617181920212223242526
  1. //
  2. // Depends.pp
  3. //
  4. // This file is loaded and run after each Sources.pp is read. It
  5. // defines the inter-directory dependencies, which is useful for
  6. // determining build order.
  7. //
  8. #if $[eq $[DIR_TYPE], src]
  9. #if $[eq $[DEPENDS],]
  10. #map local_libs TARGET(*/lib_target */noinst_lib_target)
  11. // Allow the user to define additional DEPENDS targets in each
  12. // Sources.pp.
  13. #define DEPENDS
  14. #set DEPENDS $[EXTRA_DEPENDS]
  15. #forscopes lib_target bin_target noinst_bin_target
  16. #set DEPENDS $[DEPENDS] $[local_libs $[DIRNAME],$[LOCAL_LIBS]] $[LOCAL_INCS]
  17. #end lib_target bin_target noinst_bin_target
  18. #set DEPENDS $[sort $[DEPENDS]]
  19. #endif
  20. #endif // DIR_TYPE