An example of Auto build shell on windows

本文介绍了一个用于自动化编译过程的DOS批处理脚本。该脚本能够自动完成代码库的更新、日志记录及不同配置下的编译工作。通过设置参数,可以指定编译的分支、日期等信息。

每天早上都要同步代码,重新编译。编了个dos 脚本放在任务列表中,自动化编译了。

Echo “file build_branch.bat”

SET branch=%1

SET when=%2

SET c_date=%DATE%

SET c_mon=%c_date:~4,2%

SET c_day=%c_date:~7,2%

SET c_year=%c_date:~10,4%

SET m_date=%c_year%%c_mon%%c_day%

SET fileExt=%c_mon%_%c_day%_%when%.txt

SET folderPre=D:/Workspace/log/%branch%

SET c_day_1=%c_day% - 1

set compiler="C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe"

cd "D:/Workspace/source/%branch%"

svn update --non-interactive > %folderPre%_update_%fileExt%

svn log --limit 250 >> %folderPre%_update_%fileExt%

svn status -q >> %folderPre%_update_%fileExt%

svn diff -r {%c_year%-%c_mon%-%c_day_1%} >> %folderPre%_update.patch

cd "retrospect/engine"

IF [%3]==[]

GOTO Continue

REM %compiler% engine_win.sln /Clean "Debug" /out %folderPre%_c_%fileExt%

REM %compiler% engine_win.sln /Clean "Release" /out %folderPre%_c_%fileExt%

:Continue

%compiler% engine_win.sln /Build "Debug" /out %folderPre%_d_%fileExt%

%compiler% engine_win.sln /Build "Release" /out %folderPre%_r_%fileExt%

cd ../../..

cd .. notepad %folderPre%_update_%fileExt%

RZ/G Family =========== Supported boards in the RZ/G Family: - **RZ/G2L-EVKIT** - **RZ/G2UL-EVKIT** Run the Project *************** - The RZ/G boards are MPUs with support for running Linux. Projects are built for them using a cross-compiler CLI toolchain SDK in a Linux PC environment (WSL, Docker, etc. can be used on Windows). - The G2L has a Wayland desktop and the project appears as a Wayland window. The G2UL does not have a desktop so the project is fullscreen and uses the ``fbdev`` driver. - The SDK currently uses LVGL v8.3 so this project uses this version to mirror the SDK version, even though LVGL is statically linked. You may try using newer versions of LVGL. See the `v8-to-v9 Migration Guide <https://docs.lvgl.io/9.0/CHANGELOG.html#migration-guide>`__ for things you will need to address. - Clone the ready-to-use repository for your selected board: .. code-block:: shell git clone https://github.com/lvgl/lv_port_renesas_rz-g2l-evkit --recurse-submodules Downloading the `.zip` from GitHub doesn't work as it doesn't download the submodules. - Follow the instructions in the project README.md to obtain the SD Card image and toolchain installer, build, and upload the project to the board. - Stop any automatically started demos (on G2UL run ``systemctl stop demo-launcher`` in the terminal). - Run the project .. code-block:: shell ./lvgl_demo_benchmark Modify the project ****************** Open a demo ----------- The entry point is contained in ``src/main.c``. You can disable the LVGL demos (``lv_demo_benchmark()``) (or just comment them out) and call some ``lv_example_...()`` functions, or add your own custom code. Configuration ------------- Edit ``lv_conf.h`` and ``lv_drv_conf.h`` to configure LVGL. The board image contains LVGL and lv_drivers as dynamically linkable libraries. This project builds LVGL statically for customizability and to port the LVGL v9 benchmark from LVGL v8.3. Support ******* In case of any problems or questions open an issue in the corresponding repository. 翻译一下
07-30
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值