mirror of
https://github.com/JesseTG/melonds-ds.git
synced 2025-02-17 04:39:14 +00:00
Remove embed_file from utils.cmake
- It was never implemented or used
This commit is contained in:
parent
43ad7edf73
commit
5b81a0e1d9
@ -11,28 +11,4 @@ function(dump_cmake_variables)
|
||||
endif ()
|
||||
message(DEBUG "${_variableName}=${${_variableName}}")
|
||||
endforeach ()
|
||||
endfunction()
|
||||
|
||||
function(embed_file type source_file destination_directory)
|
||||
if (type STREQUAL TEXT)
|
||||
if (NOT EXISTS source_file)
|
||||
message(SEND_ERROR "Source file ${source_file} doesn't exist.")
|
||||
return()
|
||||
elseif (IS_DIRECTORY source_file)
|
||||
message(SEND_ERROR "Source path ${source_file} exists but is a directory.")
|
||||
return()
|
||||
endif()
|
||||
|
||||
file(MAKE_DIRECTORY destination_directory)
|
||||
file(READ source_contents)
|
||||
|
||||
set(generated_header "
|
||||
|
||||
")
|
||||
elseif (type STREQUAL BINARY)
|
||||
message(SEND_ERROR "BINARY is not yet implemented.")
|
||||
else ()
|
||||
message(SEND_ERROR "Expected a type of TEXT or BINARY, got ${type}")
|
||||
endif ()
|
||||
endfunction()
|
||||
|
||||
endfunction()
|
Loading…
x
Reference in New Issue
Block a user