summaryrefslogtreecommitdiffstats
path: root/mmc_updater/cmake/modules
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-06-07 21:10:18 +0200
committerPetr Mrázek <peterix@gmail.com>2015-06-07 21:10:18 +0200
commit6d7bff2476459049f4f554291a680e0f6003ea66 (patch)
tree4202e9f1cd843197648fec93b48a5bc88407dc2e /mmc_updater/cmake/modules
parent977e11ef8d6780b173ad5ca6d13e29e721d0c6a0 (diff)
downloadMultiMC-6d7bff2476459049f4f554291a680e0f6003ea66.tar
MultiMC-6d7bff2476459049f4f554291a680e0f6003ea66.tar.gz
MultiMC-6d7bff2476459049f4f554291a680e0f6003ea66.tar.lz
MultiMC-6d7bff2476459049f4f554291a680e0f6003ea66.tar.xz
MultiMC-6d7bff2476459049f4f554291a680e0f6003ea66.zip
GH-1060 remove updater code
Diffstat (limited to 'mmc_updater/cmake/modules')
-rw-r--r--mmc_updater/cmake/modules/GenerateCppResourceFile.cmake23
1 files changed, 0 insertions, 23 deletions
diff --git a/mmc_updater/cmake/modules/GenerateCppResourceFile.cmake b/mmc_updater/cmake/modules/GenerateCppResourceFile.cmake
deleted file mode 100644
index 59adfd58..00000000
--- a/mmc_updater/cmake/modules/GenerateCppResourceFile.cmake
+++ /dev/null
@@ -1,23 +0,0 @@
-
-# Convert a binary data file into a C++
-# source file for embedding into an application binary
-#
-# Currently only implemented for Unix. Requires the 'xxd'
-# tool to be installed.
-#
-# TARGET_NAME : The name of the target to generate
-#
-# INPUT_DIR : The directory containing the input binary data file
-#
-# INPUT_FILE : The name of the binary data file in ${INPUT_DIR} to be converted into a C++
-# source file. The name of the input file will be used as the basis for the
-# symbols in the generated C++ file referring to the data buffer and its length.
-#
-# CPP_FILE : The path of the C++ source file to be generated.
-# See the documentation for xxd for information on
-# the structure of the generated source file.
-#
-function (generate_cpp_resource_file TARGET_NAME INPUT_FILE CPP_FILE)
- add_custom_command(OUTPUT ${CPP_FILE} COMMAND cd `dirname ${INPUT_FILE}` && xxd -i `basename ${INPUT_FILE}` ${CPP_FILE} DEPENDS ${INPUT_FILE})
- add_custom_target(${TARGET_NAME} ALL DEPENDS ${CPP_FILE})
-endfunction()