Inari0

Results 79 comments of Inari0

> > 放弃静态链接了,只有这样才是正常运行 > > ```lua > > add_requires("opencv", { > > config= { > > shared = true, > > gtk = true > > } > > })...

> > The 32bit version targets any generic x86 processor (so works on anything). The 64bit is based on a SSE3 or newer requirement as all 64bit processors must support...

https://github.com/xmake-io/xmake/blob/5d7a01ef08b5d20f43d32a91446933bf641b8cf0/xmake/modules/private/action/require/impl/actions/download.lua#L91-L92 能不能提供一个选项,clone之后不要checkout?

``` add_requires("bgfx") rule("test") set_extensions(".ext") on_buildcmd_files(function (target, batchcmds, sourcefile, opt) import("lib.detect.find_program") print(os.getenv("PATH")) assert(find_program("shadercRelease", {paths = "$(env PATH)"})) end) rule_end() add_rules("test") target("phony") set_kind("phony") target("lib") add_packages("bgfx", {public = true}) add_files("lib.cpp") target("main") add_deps("lib") add_files("asset.ext")...

> shadercRelease 在哪?我没看到 bgfx 里面有这个么,这个包都没设置 bin path https://github.com/xmake-io/xmake-repo/blob/master/packages/b/bgfx/xmake.lua#L110

这个地方只处理一层够吗?要是有链式依赖的话还得递归处理吧

![image](https://user-images.githubusercontent.com/42310255/137878254-84dbce38-ca2e-4fb7-a7c9-9eaf13bb0274.png) 这块为什么是only for library呢?这项功能binary也会用到啊

而且多层#include也没有处理,只替换了一层;没有判断include关系里面有没有环等

这一块我觉得可以单独做一个模块, - target之间通过dep依赖的关系(要求无环) - link之间通过linkdep依赖的关系 - amalgamation中文件之间的include关系(要求无环) 实际上都可以抽象成有向图,然后需要在图上判断环、有向图拓扑排序、求强连通分量等操作,这块应该都是通用的

+1 for this, it won't be a big problem I think. Just add some paths such as (`xmake-repo\rules\abc-init.lua`) and add `xmake-repo\rules` to the default script search path. usage: ``` add_repositories("my-repo")...