Comments (7)
你好,这个确实是一个问题,之后有时间我抽空优化下。。
其中 xmake/packages
目前只是临时方案,之后等把自动包依赖管理和下载搞定后,这个目录就可以移除了。。
core/tool
主要用于windows下的编译安装,之前也是为了考虑大小问题,用7z进行了压缩,之后windows下可以改成vsproject,来进行编译,不依赖core/tool
中的msys工具链,就会小很多。。
谢谢。
from xmake.
@waruqi 貌似移除 xmake/packages
后, git 仓库的版本历史依然会保留这些文件,仓库体积不会缩减。。。
from xmake.
关于 windows 下的编译安装,可以在脚本里做一下判断,如果当前系统为 windows 时自动下载 core/tool
这些东西,这样对于 linux 用户而言就不用花时间下载这些用不到的文件了。
from xmake.
到时候我改成 vsproject后,core/tool
我会整个删了的。。不需要在下载的时候判断。。
等删掉这些目录后,可以通过git gc
压缩下历史信息,来减少大小,而且下载安装,并不需要下载整个xmake的git库,只需要:
$ git clone repo --detph 1
只下载当前的最近commit版本,不下载历史版本就行了。。
from xmake.
@waruqi OK。
from xmake.
dev分支 我已经对xmake的源码和git库大小进行了裁剪优化。
- 在windows上,使用xmake进行自举构建,移除整个
core/tool
目录 - 移除
xmake/packages
目录,这个只有模板有用,现在暂时不内置进去,新建模板的时候,先手动放置,以后再做成自动包依赖下载和编译。
现在从github上直接下载整个xmake-dev.zip的压缩包,只需要3.2M,而git clone repo --depth 1
需要下载15M。。
建议在脚本中通过直接下载zip的源码包进行安装,3.2M 下载应该很快的。。
如果想要进一步提升下载速度,可以从coding/osc
的镜像git库中进行下载,这两个跟github都是同步更新的,下载很快。。
我这里测试从coding下载整个zip源码包,不到10s左右。。
目前还没有merge到master,等之后测试稳定后,我会merge过去,你可以先用dev的测试下。。
谢谢!
from xmake.
@waruqi 好的。
from xmake.
Related Issues (20)
- windows安装远程包SuiteSparse失败 HOT 8
- windows环境wasm目标,package.tools.cmake模块有bug HOT 2
- Add on_source to set urls/versions in packages dynamically HOT 3
- xmake project -k cmake生成的cmakelists.txt中漏掉了/utf-8参数 HOT 5
- Xrepo command not work in conda environment
- 交叉编译Rust项目时,cargo的编译期依赖没有被正确安装 HOT 43
- xmake pack打包失败 c++modules HOT 23
- The option:set_default interface is inconsistent with the documentation description in xmake.io HOT 1
- 编译了过时的代码,但xmake clean && xmake清除后再构建则符合预期 HOT 12
- Linux kernel cannot be built in NixOS HOT 1
- Support TI-CGT compiler like cmake and meson HOT 3
- rk3588s安装出错 HOT 3
- 总会出现关于runtimes的警告信息 HOT 4
- remote build blocked & distcc does not work HOT 7
- 更好的第三方插件集成 HOT 6
- Add links and package with set_sourcedir HOT 6
- GCC cannot find lua headers on Ubuntu HOT 2
- v2.9.2 单测运行失败问题 HOT 8
- add_files("*.c*") wildcard does not work anymore HOT 11
- add net.http.download timeout HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake.