Newer
Older
dub_jkp / changelog / auto-exclude-main-from-other-configs.dd
  1. Dub will now automatically exclude `mainSourceFile` from other configurations
  2.  
  3. By default, Dub uses all files it can find under its `sourcePaths`.
  4. However, a common pattern when dealing with multiple targets is to use
  5. configurations to represent said targets. In the case those targets are executables,
  6. users would be forced to add main files from other configurations to the
  7. `excludedSourceFiles` list, or store the main in a different directory outside of
  8. the sourcePaths.
  9.  
  10. To simplify this workflow, Dub will now exclude files listed in mainSourceFile
  11. for other configuration. In case this is not desirable, the files need to be manually
  12. added to the `sourceFiles` list.