Skip to content
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
Closed

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

ktopouzi opened this issue Jun 2, 2017 · 1 comment
Assignees

Comments

@ktopouzi
Copy link
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 as completed Jun 28, 2017
@tritao tritao reopened this Jun 28, 2017
@tritao
Copy link
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?

ktopouzi pushed a commit to ktopouzi/CppSharp that referenced this issue Jul 2, 2017
ktopouzi pushed a commit to ktopouzi/CppSharp that referenced this issue Jul 2, 2017
ktopouzi pushed a commit to ktopouzi/CppSharp that referenced this issue Jul 2, 2017
ktopouzi pushed a commit to ktopouzi/CppSharp 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
Projects
None yet
Development

No branches or pull requests

2 participants