diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-23 22:40:31 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-23 22:40:31 +0300 |
commit | d797bdbc82e3770a3a0c0bbbf50a0174436fa798 (patch) | |
tree | b26793474322274ca891ad1410cad874ccc0c3cc /Embed.cmake | |
parent | 91167bd9d49ac52587da382351a009e2465c3bdd (diff) |
Build option to disable kerning; other optimizations
Diffstat (limited to 'Embed.cmake')
-rw-r--r-- | Embed.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Embed.cmake b/Embed.cmake index 242002f0..f714de02 100644 --- a/Embed.cmake +++ b/Embed.cmake | |||
@@ -2,7 +2,7 @@ | |||
2 | # Copyright: 2020 Jaakko Keränen <jaakko.keranen@iki.fi> | 2 | # Copyright: 2020 Jaakko Keränen <jaakko.keranen@iki.fi> |
3 | # License: BSD 2-Clause | 3 | # License: BSD 2-Clause |
4 | 4 | ||
5 | option (EMBED_IN_EXECUTABLE "Embed resources inside the executable" OFF) | 5 | option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) |
6 | # Note: If disabled, the Unix "cat" tool is required for concatenating | 6 | # Note: If disabled, the Unix "cat" tool is required for concatenating |
7 | # the resources into a single "resources.binary" file. | 7 | # the resources into a single "resources.binary" file. |
8 | 8 | ||
@@ -50,7 +50,7 @@ endfunction (embed_write) | |||
50 | function (embed_make) | 50 | function (embed_make) |
51 | set (EMB_H ${CMAKE_CURRENT_BINARY_DIR}/embedded.h) | 51 | set (EMB_H ${CMAKE_CURRENT_BINARY_DIR}/embedded.h) |
52 | set (EMB_C ${CMAKE_CURRENT_BINARY_DIR}/embedded.c) | 52 | set (EMB_C ${CMAKE_CURRENT_BINARY_DIR}/embedded.c) |
53 | if (EMBED_IN_EXECUTABLE) | 53 | if (ENABLE_RESOURCE_EMBED) |
54 | set (needGen NO) | 54 | set (needGen NO) |
55 | if (NOT EXISTS ${EMB_H} OR NOT EXISTS ${EMB_C}) | 55 | if (NOT EXISTS ${EMB_H} OR NOT EXISTS ${EMB_C}) |
56 | set (needGen YES) | 56 | set (needGen YES) |
@@ -68,7 +68,7 @@ function (embed_make) | |||
68 | set (needGen YES) | 68 | set (needGen YES) |
69 | endif () | 69 | endif () |
70 | if (needGen) | 70 | if (needGen) |
71 | if (EMBED_IN_EXECUTABLE) | 71 | if (ENABLE_RESOURCE_EMBED) |
72 | # Compose a source file with the resource data in an array. | 72 | # Compose a source file with the resource data in an array. |
73 | file (WRITE ${EMB_H} "#include <the_Foundation/block.h>\n") | 73 | file (WRITE ${EMB_H} "#include <the_Foundation/block.h>\n") |
74 | file (WRITE ${EMB_C} "#include \"embedded.h\"\n") | 74 | file (WRITE ${EMB_C} "#include \"embedded.h\"\n") |