Closed Francesco149 closed 5 years ago
this is almost working. already tested on linux, windows build needs to be fixed so i gotta boot into windows, fix the libbuild.bat and test it
so the windows shared library build works fine but appveryor can't build it????
it just seems to try and call lib with invalid arguments, must be something appveryor's msvc is missing https://ci.appveyor.com/project/Francesco149/oppai-ng/builds/20211615#L159
ok so im stupid, there's a random lib call after libbuild.bat in release.ps1, i have no idea how that ended up there
since projects such as the live pp counter are compiling oppai to a shared library I'd like to have an upstream build so they don't have to fork it.
this was attempted before by https://github.com/Francesco149/oppai-ng/pull/8
but it needs to work on both windows and *nix and no makefile
should be as easy as defining some OPPAIAPI macro to __declspec(dllexport) on windows and nothing on *nix and giving it to all interface functions and adding a flag to the build scripts for shared lib mode
maybe even make it so you can compile as a static lib