Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将我的文件转换为 .h,然后运行构建。我该怎么做(特别是在 Xilinx SDK 12.4 中,它说它是 eclipse 版本:3.5.1.R35x 和 cdt 版本:6.0.0.201005121341)?
在项目属性中,我发现Settings -> Build Steps了可以找到pre-build steps命令的位置。例如,我添加了xxd -i ../src/homepage.html ../src/homepage.h和
Settings -> Build Steps
pre-build steps
xxd -i ../src/homepage.html ../src/homepage.h
pre-build: -xxd -i ../src/homepage.html ../src/homepage.h
已出现在 make 文件中
每次构建任何内容时都会调用转换,即使 html 没有更改。到目前为止,这对我来说没什么大不了的。但是,它可以让您改进答案。