1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- function(generate_cfb_font
- input_file
- output_file
- width
- height
- )
- add_custom_command(
- OUTPUT ${output_file}
- COMMAND
- ${PYTHON_EXECUTABLE}
- ${ZEPHYR_BASE}/scripts/gen_cfb_font_header.py
- --zephyr-base ${ZEPHYR_BASE}
- --input ${input_file}
- --output ${output_file}
- --bindir ${CMAKE_BINARY_DIR}
- --width ${width}
- --height ${height}
- ${ARGN}
- DEPENDS ${source_file}
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- )
- endfunction()
- function(generate_cfb_font_for_gen_target
- target
- input_file
- output_file
- width
- height
- gen_target
-
-
- )
- generate_cfb_font(${input_file} ${output_file} ${width} ${height} ${ARGN})
-
-
- add_dependencies(${target} ${gen_target})
- endfunction()
- function(generate_cfb_font_for_target
- target
- input_file
- output_file
- width
- height
-
-
- )
-
-
-
-
- generate_unique_target_name_from_filename(${output_file} generated_target_name)
- add_custom_target(${generated_target_name} DEPENDS ${output_file})
- generate_cfb_font_for_gen_target(${target} ${input_file} ${output_file}
- ${width} ${height} ${generated_target_name} ${ARGN})
- endfunction()
|