Commit a0d2900f authored by Kurt Hindenburg's avatar Kurt Hindenburg

Move fontembedder to a new tools sub-folder

fontembedder is a small tool used to regenerate LineFont.h from
LineFont.src
parent 41fc3c35
......@@ -71,4 +71,9 @@ add_subdirectory( data )
add_subdirectory( desktop )
add_subdirectory( doc/manual )
### -DKONSOLE_BUILD_FONTEMBEDDER=TRUE or -DKONSOLE_GENERATE_LINEFONT=TRUE
if(KONSOLE_BUILD_FONTEMBEDDER OR KONSOLE_GENERATE_LINEFONT)
add_subdirectory( tools )
endif()
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -35,25 +35,6 @@ option(REMOVE_SENDTEXT_RUNNCOMMAND_METHODS "Konsole: remove sendText and runComm
option(KONSOLE_BUILD_FONTEMBEDDER "Konsole: build fontembedder executable" OFF)
option(KONSOLE_GENERATE_LINEFONT "Konsole: regenerate LineFont file" OFF)
### Use cmake -DKONSOLE_BUILD_FONTEMBEDDER or/and -DKONSOLE_GENERATE_LINEFONT=1
if(KONSOLE_BUILD_FONTEMBEDDER OR KONSOLE_GENERATE_LINEFONT)
### Font Embedder
set(fontembedder_SRCS fontembedder.cpp)
add_executable(fontembedder ${fontembedder_SRCS})
target_link_libraries(fontembedder KF5::KIOWidgets) ### FIXME
### Line graphics font
### The below cmake doesn't work; it might be possible to automate it
### if LineFont.src has changed. If automated, different OSes will
### need to be handled.
### If LineFont.h is needed to be recreated use:
### fontembedder LineFont.src > LineFont.h
#add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/LineFont.h
# COMMAND ${CMAKE_CURRENT_BINARY_DIR}/fontembedder
# ARGS ${CMAKE_SOURCE_DIR}/LineFont.src
# DEPENDS ${CMAKE_SOURCE_DIR}/LineFont.src )
endif()
### Konsole source files shared between embedded terminal and main application
# qdbuscpp2xml -m Session.h -o org.kde.konsole.Session.xml
# qdbuscpp2xml -M -s ViewManager.h -o org.kde.konsole.Konsole.xml
......
### Line graphics font
### Attempting to auto-create LineFont.h for multiple systems is a headache.
### If LineFont.h is needed to be recreated use:
### fontembedder LineFont.src > LineFont.h
### Then commit the new LineFont.h
find_package(Qt5Core ${QT_MIN_VERSION} CONFIG REQUIRED)
### Font Embedder
set(fontembedder_SRCS fontembedder.cpp)
add_executable(fontembedder ${fontembedder_SRCS})
qt5_use_modules(fontembedder Core)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment