小编use*_*069的帖子

如何在Theos makefile中包含资源文件?

我用theos做了一个功能齐全的调整,我需要在其中使用一个图像文件,获取图像的代码是正确的(在Xcode上测试).但图像不包含在最终的DEB文件中.

我有这个makefile:

SDKVERSION=6.0
include theos/makefiles/common.mk
include theos/makefiles/tweak.mk

TWEAK_NAME = MyTweak
MyTweak_FRAMEWORKS = Foundation  CoreGraphics UIKit
MyTweak_FILES = Tweak.xm image.png

include $(THEOS_MAKE_PATH)/tweak.mk
Run Code Online (Sandbox Code Playgroud)

但是当我尝试编译时,我得到:

 No rule to make target `obj/image.png.o', needed by `obj/MyTweak.dylib'.  Stop. 
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能包括它?

(抱歉语法错误,从iphone询问).

makefile include theos

7
推荐指数
1
解决办法
3968
查看次数

标签 统计

include ×1

makefile ×1

theos ×1