我想用buck构建一个跨平台的cxx_library
。我有针对不同平台的不同 cpp
文件。根据the docs ,我可以使用 platform_srcs
来处理这个问题,即:
...a list of pairs where the first element is an un-anchored regex (in java.util.regex.Pattern syntax) against which the platform name is matched".
- 这些平台名称是什么样的?
- 我可以在 OSX、Windows 和 Linux 上使用哪些示例正则表达式?
最佳答案
Android:android
iPhone:iphoneos
iPhone模拟器:iphonesimulator
Linux:不确定
OSX:不确定
Windows:^windows.*
关于c++ - Buck中常见的平台名称有哪些?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42557313/