Am 05.05.2014 20:52, schrieb Andrej Mitrovic:

I have a set of sample projects located in a 'src' directory. The problem is I can't use them like this because dub will try to compile all the *.d files it finds in this folder even if I just want to compile a single one. E.g.:

 "configurations": [
     {
         "name": "tut_01",
         "targetName": "tut_01",
         "targetType": "executable",
         "targetPath": "bin",
         "sourceFiles": ["src/tut_01_window.d",],
     },
 ]

Even though I'm explicitly specifying the source files it will still attempt to compile everything in the src folder, which will lead to things like multiple main definition errors, etc.

How do I make dub avoid including everything under src in a compile run? It works fine with any other folder name.

Specifying "sourcePaths": [] explicitly should make that work.