|
@@ -137,6 +137,19 @@ function(serenity_bin target_name)
|
|
|
serenity_generated_sources(${target_name})
|
|
|
endfunction()
|
|
|
|
|
|
+function(compile_json_gui source output string_name)
|
|
|
+ set(source ${CMAKE_CURRENT_SOURCE_DIR}/${source})
|
|
|
+ add_custom_command(
|
|
|
+ OUTPUT ${output}
|
|
|
+ COMMAND ${write_if_different} ${output} ${CMAKE_SOURCE_DIR}/Meta/text-to-cpp-string.sh ${string_name} ${source}
|
|
|
+ VERBATIM
|
|
|
+ DEPENDS ${CMAKE_SOURCE_DIR}/Meta/text-to-cpp-string.sh
|
|
|
+ MAIN_DEPENDENCY ${source}
|
|
|
+ )
|
|
|
+ get_filename_component(output_name ${output} NAME)
|
|
|
+ add_custom_target(generate_${output_name} DEPENDS ${output})
|
|
|
+endfunction()
|
|
|
+
|
|
|
function(compile_ipc source output)
|
|
|
set(source ${CMAKE_CURRENT_SOURCE_DIR}/${source})
|
|
|
add_custom_command(
|