I have a chunk of text (specifically of GtkBuilder XML for a Chrome Remote Desktop Linux-only helper UI) that I'd like to include as a const char[] in my binary. For ease of editing, though, I'd prefer to have the XML live in it's own file that gets pulled in at build time. My thought was that I'd have a header file declare the constant, and a build step to generate a .cc file with the definition from the text file. However, I'm not sure what the best way is to accomplish this with GN. Is there already functionality in Chromium to do something like this, or would I have to make a completely custom build step to generate a properly-escaped string literal (maybe using xxd)?Thanks!
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAN%3DK5G-qB%3D97rTFncviC2dfrO%3DbW55EDHxWw1qD_BG7ffKC_Aw%40mail.gmail.com.
I have a chunk of text (specifically of GtkBuilder XML for a Chrome Remote Desktop Linux-only helper UI) that I'd like to include as a const char[] in my binary. For ease of editing, though, I'd prefer to have the XML live in it's own file that gets pulled in at build time. My thought was that I'd have a header file declare the constant, and a build step to generate a .cc file with the definition from the text file. However, I'm not sure what the best way is to accomplish this with GN. Is there already functionality in Chromium to do something like this, or would I have to make a completely custom build step to generate a properly-escaped string literal (maybe using xxd)?Thanks!
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAMGbLiHWEVcJ01uX5XhXsZvKwk0ZdHmGgJ6%2BN2dEtByyKUDJ4g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CACs%3DtyJEYrucNrzxxH9tjdu6c9ps5LxYxkj27YeyrKtmYGyY%2Bg%40mail.gmail.com.