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

Support build dependencies from source #180

Merged
merged 1 commit into from
Aug 28, 2023
Merged

Conversation

beef9999
Copy link
Collaborator

@beef9999 beef9999 commented Aug 27, 2023

重构了CMake脚本,用一套脚本支持3种场景的用户:

  1. 阿里内部使用的编译系统(Mag),会在容器内的系统目录查找.a静态库 。目前编译方式不用做任何改变。 请 @Coldwings 试一下
  2. 需要手动静态编译的高级用户,通过设置PHOTON_BUILD_DEPENDENCIES=ON,并指定不同库的url地址,下载源码编译
  3. 普通用户,会在系统目录查找到一些.so动态库,由于做了兼容,也不用修改编译参数。

其他改动:

  • 所有的配置项前加了PHOTON前缀,避免被上级project覆盖。这里参考了RapidJSON等其他一些库的做法,没有用namespace
    • BUILD_TESTING 改成了 PHOTON_BUILD_TESTING请注意
  • 支持可配置c++标准,防止c++17用户编译c++14出现std::string_view错误之类的问题
  • 更新了官网文档

@beef9999 beef9999 changed the title test Support build dependencies from source Aug 28, 2023
@beef9999 beef9999 merged commit 779751a into alibaba:main Aug 28, 2023
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants