New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the AST.h to non-compiled files. #850

Closed
ktopouzi opened this Issue Jun 2, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@ktopouzi
Contributor

ktopouzi commented Jun 2, 2017

When trying to add a new test in AST.h, I realized it is not the header that Test.AST.cs uses. but an external dependency that CppSharp.Parse.CLI has, while the correct one is under Tests/Native. So include the file to non-complied in AST test project may avoid confusion.

@tritao tritao closed this Jun 28, 2017

@tritao tritao reopened this Jun 28, 2017

@tritao

This comment has been minimized.

Collaborator

tritao commented Jun 28, 2017

To do this you need to add some new Premake build code to https://github.com/mono/CppSharp/blob/master/src/Generator.Tests/premake5.lua#L9:

Something like this should work:

files { testsdir .. "Native/AST.h" }
filter "files:**.h"
   buildaction "None"
filter {}

Can you give it a try and send a PR?

@tritao tritao added the enhancement label Jun 28, 2017

ktopouzi added a commit to ktopouzi/CppSharp that referenced this issue Jul 2, 2017

ktopouzi added a commit to ktopouzi/CppSharp that referenced this issue Jul 2, 2017

ktopouzi added a commit to ktopouzi/CppSharp that referenced this issue Jul 2, 2017

ktopouzi added a commit to ktopouzi/CppSharp that referenced this issue Jul 2, 2017

@ddobrev ddobrev closed this in #881 Jul 2, 2017

ddobrev added a commit that referenced this issue Jul 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment