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

支持MSVC和GCC? #5

Open
tch0 opened this issue Apr 7, 2023 · 2 comments
Open

支持MSVC和GCC? #5

tch0 opened this issue Apr 7, 2023 · 2 comments

Comments

@tch0
Copy link

tch0 commented Apr 7, 2023

第三方库都是跨平台的,原则上是可以支持MSVC和GCC/MinGW-w64的,我改了一下都编译成功了。
还有glfw应该是源码级跨平台的,应该没有必要分成glfw-unix和glfw-win。

还有构建完成之后必要文件的拷贝可以用CMake提供的跨平台操作完成。

还有其实第三方库可以使用git的submodule来管理,至少我更倾向于使用submodule。使用submodule管理可以单独对每一个第三方库进行版本管理,还不会使整个代码库变得臃肿。

@tch0
Copy link
Author

tch0 commented Apr 7, 2023

我提交了#6,支持了MSVC和GCC,在Windows和Linux上测试过了,MacOS没有环境没有测试。
用子模块管理第三方库没有做,现在这样也行,因为为第三方库写了CMakeLists.txt,改用子模块太麻烦了,看起来没有太大必要。

@tch0
Copy link
Author

tch0 commented Apr 7, 2023

README如果要改就留给作者自己改了。

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

1 participant