IAR开发STM8,如何加入每次编译的日期时间信息来做为版本信息
来源:互联网 发布:安徽经济网络电视台 编辑:程序博客网 时间:2024/05/19 13:43
IAR开发STM8,如何加入每次编译的日期时间信息来做为版本信息呢??
网上找打了这个:
--------
IAR USING PRE- AND POST-BUILD ACTIONS
Using pre-build actions for time stamping
If necessary, you can specify pre-build and post-build actions that you want to occur before or after the build.
The Build Actions dialog box—available from the Project menu—lets you specify the actions required.
For more information about the Build Actions dialog box, see Build actions options, page 215.
Using pre-build actions for time stamping
You can use pre-build actions to embed a time stamp for the build in the resulting binary file. Follow these steps:
1 Create a dedicated time stamp file, for example, timestamp.c and add it to your project.
2 In this source file, use the preprocessor macros __TIME__ and __DATE__to initialize a string variable.
3 Choose Project>Options>Build Actions to open the Build Actions dialog box.
4 In the Pre-build command line text field, specify for example this pre-build action:
cmd /c "del "$OBJ_DIR$\timestamp.o""
在网上找了半天,终于找到了,
http://blog.chinaunix.NET/uid-30127490-id-5062415.html
IAR的宏定义:
const char MenuStr[]={"T1xxxxxxxxxxP-xxE##"__DATE__"#####"}; //定义字符串常量
- IAR开发STM8,如何加入每次编译的日期时间信息来做为版本信息
- IAR开发STM8,如何加入每次编译的日期时间信息来做为版本信息
- IAR 显示编译信息
- Qt 如何把版本信息加入应用程序
- STM8 IAR 编译问题
- IAR编译信息-size解读
- IAR 开发STM8 学习
- 如何查看JAVA类文件的编译JDK版本信息
- 如何在*.CS文件中加入版本跟踪信息?
- IAR for stm8 中指定编译的起始地址
- Qt程序加入版本信息
- FMDB 加入数据库版本信息
- 使用rpm -qi gcc命令来获取gcc包的版本,安装日期等信息
- 开发RCP时如何去掉NetBeans Platform的版本信息
- 如何查看开发项目框架的版本信息
- U-BOOT打印信息里的编译日期和时间的自动生成
- DDK编译的程序增加版本信息
- openwrt 显示编译的版本信息
- 混合高斯模型(Mixtures of Gaussians)和EM算法
- 利用自动索引计算数组元素平方和
- 在JS文件中对同一个页面是否存在另一个js进行判断
- JS面向对象轮播图实现
- 拔盘Demo大赛,1000元现金等你拿!
- IAR开发STM8,如何加入每次编译的日期时间信息来做为版本信息
- SpringMVC学习之json数据交互
- kudu踩坑记之一
- webrtc中关于AEC,AGC,NS模块的使用总结
- Leetcode+牛客网—回文串总结(一)
- ssh文件下载与上传细节
- 【设计模式】——单例
- 为什么memset不能将数组元素初始化为1?(急)
- CentOS yum升级GCC到4.8