您好!
当一个项目包含一个主项目和一个子项目时、该子项目构建完成后、主项目中的预编译步骤将运行。 在构建 子项目之前、是否可以从 CCS 运行批处理文件?
谢谢!
据
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好!
当一个项目包含一个主项目和一个子项目时、该子项目构建完成后、主项目中的预编译步骤将运行。 在构建 子项目之前、是否可以从 CCS 运行批处理文件?
谢谢!
据
Ed、
您应该能够在预编译步骤中运行批处理文件。 我刚刚在 macOS 上进行了尝试、并在预编译步骤中添加了如下所示的 shell 脚本

似乎工作正常。
/Users/sjha/ti/ccs1220/ccs/utils/bin/gmake -k -j 7 all -O /Users/sjha/tmp/myscript.sh Hello ccsObjs.opt device led_ex1_blinky.map led_ex1_blinky_linkInfo.xml makefile objects.mk sources.mk subdir_rules.mk subdir_vars.mk Building file: "../device/f2838x_codestartbranch.asm" Invoking: C2000 Compiler "/Users/sjha/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 --vcu_support=vcrc -Ooff --include_path="/Users/a0132919/workspace_v12/led_ex1_blinky" --include_path="/Users/
您是否尝试过并遇到任何问题?
此致、Santosh
我 遇到的问题是主项目的预编译步骤在子项目之后运行。 是否有办法让它先运行?
我认为这是不可能的。 在开始为主工程构建之前、CCS 将查找工程依赖项并首先运行这些依赖项构建。 因此、在编译所有依赖工程之前、主工程的编译绝不会开始(除了依赖项检查之外)。 您正在寻找一种在 CCS 进行依赖项检查之前为主工程运行批处理文件的方法、这是不可能的