CMakeLists and packaging files for automatic Edje file compilation in project

拥有回忆 提交于 2019-12-12 04:26:05

问题


I'm very new to EFL. And now I'm trying to get used to it. There is library named Edje. This library allows theming and other sort of things. But files for it are created in plain text and have to be compiled using edje_cc.

How can I add this compilation to CMakeLists.txt file and to packaging.spec file for it to be properly compiled and installed on the machine?

Sorry for my broken English.


回答1:


In your CMakeLists.txt, do:

ADD_CUSTOM_TARGET(your_edj_file.edj 
        COMMAND edje_cc your_edc_file.edc your_edj_file.edj
)

Notice that I simplified the COMMAND line - add the same arguments you use when you run edje_cc on a terminal (e.g. -id for images dir, -fd for fonts dir).

With this line added to CMakeLists.txt, a call to cmake in your packaging.spec file should be enough.



来源:https://stackoverflow.com/questions/17500522/cmakelists-and-packaging-files-for-automatic-edje-file-compilation-in-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!