XDT-CSOURCE(1)
β¨ xdt-csource β C code generation utility for arbitrary data β¨
okay bestie, welcome to the xdt-csource(1) page, straight out of the Xfce Users Manual. sit down, grab a strawberry π, and let's get into it.
π NAME π
xdt-csource β a C code generation utility for arbitrary data. yes, literally that. she takes your random little files and turns them into C code. iconic behavior.
πΈ SYNOPSIS πΈ
xdt-csource [options] [file]
xdt-csource [options] --build-list [[name] [file]...]
π¦ DESCRIPTION π¦
so xdt-csource is this small utility that generates C code containing arbitrary data β which is highkey useful when you wanna compile texts or other data directly into your programs. no separate files at runtime, no fuss, just vibes compiled in. π«Ά
and important lore: she supersedes exo-csource. out with the old, in with the new, periodt. π
π INVOCATION π
here's the tea on how you actually call her. two whole modes:
- she takes one file name as input, and generates code for that file
- or, if you use the
--build-listoption, she takes a list of (name, file) pairs, so you can generate code for a whole list of images into named variables
pick your fighter. both slay.
β Options β
-h,--helpβ prints brief help and then exits. she's helpful and then she's gone. π¨-V,--versionβ prints version info and exits. quick little flex.--externβ generatesexternsymbols.--staticβ generatesstaticsymbols. this is the default, so if you do nothing, this is what you get. no cap.--name=identifierβ specifies the identifier name (the prefix) for the generated variables. heads up tho: this is only used if--build-listwas not specified as well. iykyk.--build-listβ enables the(name, file)pair parsing mode. this is the girlboss mode.--strip-commentsβ removes comments from XML files. bye bye comments π«‘--strip-contentβ removes node contents from XML files. also bye π--output=identifierβ prints the output to identifier instead ofstdout. same little caveat as before: only used if--build-listwas not specified as well.
fr fr, remember that--name=identifierand--output=identifierboth get ignored when--build-listis in the mix. don't say i didn't warn you π
π SEE ALSO π
- the
gdk-pixbuf-csourceutility, which ships with the Gtk+ distribution, available from www.gtk.org[1]. go check her out too, she's the cousin π
π AUTHOR π
the original program exo-csource was written by Benedikt Meurer <benny@xfce.org>. and then xdt-csource supersedes it. glow-up of the century honestly.
this manual page was provided by the Xfce Development Team <xfce4-dev@xfce.org>. mwah, thank you for your service π«Ά
π NOTES π
- www.gtk.org β https://www.gtk.org
aaaand that's the whole page, bestie. this one came to you from Xfce, dated 04/25/2023 β and it's the XDT-CSOURCE(1) manual, so now you're fully caught up. go generate some C code, you main character π¦β¨π
π¦ where this page comes from
- alpine 3.24: xfce4-dev-tools-doc 4.20.0-r0 Β· GPL-2.0-or-later
- debian trixie: xfce4-dev-tools 4.20.0-2 Β· GPL-2.0-or-later
- fedora 43: xfce4-dev-tools 4.20.0-3.fc43 Β· GPL-2.0-or-later
- fedora 44: xfce4-dev-tools 4.20.0-4.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfce4-dev-tools 4.20.0-bp160.1.3 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfce4-dev-tools 4.20.0-bp160.1.3 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfce4-dev-tools 4.20.0-bp160.1.3 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfce4-dev-tools 4.20.0-bp160.1.3 Β· GPL-2.0-or-later
- ubuntu questing: xfce4-dev-tools 4.20.0-2
- ubuntu resolute: xfce4-dev-tools 4.20.0-2build1 Β· GPL-2.0-or-later
- ubuntu stonking: xfce4-dev-tools 4.20.0-2build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms