Skip to content

Is there a way to specify project files explicitly? #309

Answered by jspelletier
d-s-h asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Sharpmake already knows about many of the extensions your need:
public Strings SourceFilesExtensions = new Strings(".cpp", ".c", ".cc", ".h", ".inl", ".hpp", ".hh", ".asm");// All files under SourceRootPath are evaluated, if match found, it will be added to SourceFiles

For the first project in the thread, could do:

[Sharpmake.Generate]
public class MyProjectFirstCase : Project
{
    public MyProject()
    {
        SourceRootPath = "[project.SharpmakeCsPath]\src";
        SourceFilesExtensions.AddRange(".sc", ".sh");
        SourceFiles.Add("myproj.sharpmake.cs");
        SourceFiles.Add("mylib.sharpmake.cs");
    }
   
}

// For second project in the thread
// Would suggest you move …

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@d-s-h
Comment options

@jspelletier
Comment options

@d-s-h
Comment options

@jspelletier
Comment options

Answer selected by d-s-h
@d-s-h
Comment options

@jspelletier
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants