CMakeLists和打包文件,用于在项目中自动编译Edje文件 [英] CMakeLists and packaging files for automatic Edje file compilation in project

查看:161
本文介绍了CMakeLists和打包文件,用于在项目中自动编译Edje文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 EFL 很陌生.现在我正在努力适应它.有一个名为Edje的图书馆.该库允许主题化和其他形式的东西.但是其文件是用纯文本创建的,必须使用edje_cc进行编译.

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.

如何才能将此编译内容添加到CMakeLists.txt文件和packaging.spec文件中,以便正确地编译并安装在计算机上?

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.

推荐答案

在您的CMakeLists.txt中,执行以下操作:

In your CMakeLists.txt, do:

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

请注意,我简化了COMMAND行-添加在终端上运行edje_cc时使用的参数(例如-id用于图像目录,-fd用于字体目录).

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).

将此行添加到CMakeLists.txt中后,只需在您的Packaging.spec文件中调用cmake即可.

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

这篇关于CMakeLists和打包文件,用于在项目中自动编译Edje文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆