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

Is it possible to specify the build.ninja or Makefile location? #167

Open
blazkowolf opened this issue Jan 20, 2024 · 3 comments
Open

Is it possible to specify the build.ninja or Makefile location? #167

blazkowolf opened this issue Jan 20, 2024 · 3 comments

Comments

@blazkowolf
Copy link

My apologies if this isn't the right forum for asking a question like this!

I managed to use CMake for generating the build system for the project I'm working on. CMake generates the build system inside of the specified build directory, so that there aren't in-source builds co-mingling the build artifacts with the source files. This means my build.ninja file is not located at the root of my project, and I'm wondering if there's an option for specifying where it's located to the permuter, or if there's a workaround for getting this to work.

Thanks for your great work on this project!

@simonlindholm
Copy link
Owner

Asking here is fine; I'm also around in discord in a few decomp servers.

There is no support for this at the moment, but I'm happy to take PRs! Maybe some setting in tools/permuter_settings.toml is reasonable, or maybe we can hard-code the path build/? Or do you think the build dir path needs to customizable for each user? A cmdline argument seems more sensible then, if a bit cumbersome to use.

@blazkowolf
Copy link
Author

blazkowolf commented Jan 23, 2024

Sorry for leaving this hanging - I will post a proper reply this evening after I finish work.

@blazkowolf
Copy link
Author

blazkowolf commented Jan 25, 2024

maybe we can hard-code the path build/? Or do you think the build dir path needs to customizable for each user? A cmdline argument seems more sensible then, if a bit cumbersome to use.

It wouldn't be ideal to hardcode a path because CMake allows the user to specify the name of the build directory. For example, this is the command I use to generate the build system cmake -S . -B build -G Ninja. Like you suggested, a commandline argument would be useful, or also setting the Makefile/build.ninja location in the permuter_settings.toml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants