在cmake文件中使用edje_cc

Use of edje_cc in cmake file

本文关键字:edje cc cmake 文件      更新时间:2023-10-16

我尝试在cmake文件中添加一个自定义目标,以便在构建时使用edje_cc自动编译.edc文件,就像这里提到的那样。这是EFL项目的一部分。

但是我总是得到编译错误:

[    1s] [  0%] [ 50%] #### COMPILE EDC FILES ####
[    1s] make[2]: edje_cc: Command not found
[    1s] make[2]: *** [CMakeFiles/edje] Error 127
[    1s] make[1]: *** [CMakeFiles/edje.dir/all] Error 2
[    1s] make[1]: *** Waiting for unfinished jobs....

有人能告诉我怎么做,edje_cc编译器在编译中被发现?

您的机器上似乎没有安装edje_cc。修改CMakeLists.txt以添加查找edje_cc的检查。

project("Edje")
find_program(EDJE_CC edje_cc)
if (NOT EDJE_CC)
   message(FATAL_ERROR "edje_cc is missing.")
endif()