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

Visual Studio project? #28

Open
Pixelsuft opened this issue Jun 22, 2021 · 6 comments
Open

Visual Studio project? #28

Pixelsuft opened this issue Jun 22, 2021 · 6 comments

Comments

@Pixelsuft
Copy link

Is it possible to create Visual Studio Project for Windows builds?

@nepx
Copy link
Owner

nepx commented Jun 24, 2021

I currently don't have Visual Studio installed (I'm working from Linux), so I apologize for not having these files set up. It can build on Windows, you just need MinGW+zlib+SDL+Node.js.

The codebase currently uses a number of GCC/Clang-isms (e.g. __attribute__((something)), some intrinsics for the bit functions), and that might not fly with MSVC.

@Pixelsuft
Copy link
Author

Yes, I can compile it.

Same question: Is possible to create module for python, because halfix is written on C?

@nepx
Copy link
Owner

nepx commented Jul 10, 2021

Same question: Is possible to create module for python, because halfix is written on C?

Of course. I don't know very much Python, but creating bindings seems feasible, the emulator is reasonably portable and well-behaved. Bear in mind that because the many fields are statically allocated, there can only be one CPU instance per process; this is true for Python as well as any other language.

@ergo720
Copy link

ergo720 commented Dec 9, 2022

To anyone who is still interested: I have created this fork, which uses cmake to generate a Visual Studio project file that you can then use to build a native Windows application with Visual Studio 2022.

@vadosnaprimer
Copy link

To anyone who is still interested: I have created this fork, which uses cmake to generate a Visual Studio project file that you can then use to build a native Windows application with Visual Studio 2022.

Nice job! Mind sending a PR upstream?

@ergo720
Copy link

ergo720 commented Mar 15, 2024

If you need it, you can use the vanilla branch in my fork, which only contains the Visual Studio changes. I don't think I will upstream because I'm no longer interested/don't need Halfix now, and I haven't used it for almost a year at this point.

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

4 participants