Replies: 3 comments
-
target("test")
add_files("src/*.cpp")
set_configdir("$(buildir)/$(plat)/$(arch)/$(mode)")
add_configfiles("assets/*.png", {onlycopy = true}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
-
thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
I have an
asset/
folder which contains animg.png
file.The executable needs to read the file therefore
img.png
must be copied to the executable dir, now problems arise:img.png
to prevent copying every time a new build startsDescribe the solution you'd like
source: xmake introduction
Proposal
add_assets()
should:Describe alternatives you've considered
utils.bin2c (i.e. convert
img.png
toimg.png.h
)#embed
constexpr
not with preprocessor black magic:Additional context
/build/windows/x64/debug/
utils.glsl2spv
: the executable needs to read shadersBeta Was this translation helpful? Give feedback.
All reactions