-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
feat: add libvpx #2447
base: dev
Are you sure you want to change the base?
feat: add libvpx #2447
Conversation
@waruqi 怎么检测CPU是否支持sse2、avx、avx2、neon等指令集?有没有内置的函数或者推荐的解决方案? |
@waruqi How to detect whether the CPU supports sse2, avx, avx2, neon and other instruction sets? Is there a built-in function or a recommended solution? |
BTW,xmake支持ppc、longarch架构嘛?没有的话我就不写对应的rtcd支持了 |
BTW, does xmake support ppc and longarch architecture? If not, I will not write the corresponding rtcd support |
内置 api 支持: 如果需要细粒度检测: |
Built-in api support: If fine-grained detection is required: |
xmake 自身支持在 ppc longarch 上跑,具体编译arch 支持,得看包对编译器的支持 |
xmake itself supports running on ppc longarch, and the specific support for compiling arch depends on the package's support for the compiler |
add_vectorexts |
add_vectorexts |
能拿到结果嘛?libvpx要根据支持情况生成头文件 |
Can I get the result? libvpx needs to generate header files based on support |
走 target:has_cflags, target:cxxflags 自己在 on_config 里判断 |
或者走 option + configfiles + check flags https://github.com/xmake-io/xmake/blob/beafb2d5cfca0a3d52479312b6b92ca651f4959d/tests/apis/check_xxx/xmake.lua#L44 |
Or go option + configfiles + check flags https://github.com/xmake-io/xmake/blob/beafb2d5cfca0a3d52479312b6b92ca651f4959d/tests/apis/check_xxx/xmake.lua#L44 |
@waruqi 有办法在on_load之类的地方动态地添加option嘛? |
@waruqi Is there a way to dynamically add options in places like on_load? |
option 定义只能描述域定义,绑定到 target 。可以走 |
option definitions can only describe domain definitions, bound to target . You can go |
@waruqi libvpx的dll def文件没有扩展名,能不能在不改名的情况下让xmake把它当作def处理?我试了 |
@waruqi The dll def file of libvpx has no extension. Can xmake treat it as def without changing the name? I tried |
tools.xmake.install 之前你 os.cp 先 rename 下,再去 add_files 不就好了 |
Before tools.xmake.install, you should rename os.cp first, and then go to add_files. |
额,我就是想知道能不能在不重命名的情况下实现…… |
Well, I just want to know if it can be achieved without renaming... |
目前只能根据扩展名匹配 |
WIP