Skip to content

Commit

Permalink
Yaft: Move to yaft2, remove legacy yaft
Browse files Browse the repository at this point in the history
  • Loading branch information
timower committed Nov 27, 2023
1 parent 93c8b98 commit 2c826ae
Show file tree
Hide file tree
Showing 26 changed files with 430 additions and 2,120 deletions.
3 changes: 1 addition & 2 deletions apps/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
add_subdirectory(tilem)
add_subdirectory(rocket)
add_subdirectory(yaft)
add_subdirectory(yaft2)

add_custom_target(apps)
add_dependencies(apps tilem yaft rocket yaft2)
add_dependencies(apps tilem yaft rocket)
25 changes: 16 additions & 9 deletions apps/yaft/CMakeLists.txt
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
project(yaft)

add_executable(${PROJECT_NAME}
main.cpp
fb/common.cpp
keyboard.cpp)
add_library(yaft_app_lib OBJECT
YaftWidget.cpp keyboard.cpp screen.cpp layout.cpp keymap.cpp config.cpp)
add_library(Yaft::app_lib ALIAS yaft_app_lib)

target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
target_include_directories(yaft_app_lib PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")

target_link_libraries(${PROJECT_NAME}
PRIVATE
target_link_libraries(yaft_app_lib PUBLIC
rMlib
libYaft)
libYaft
util
tomlplusplus::tomlplusplus)

if (APPLE)
target_link_libraries(${PROJECT_NAME} PRIVATE linux::mxcfb)
target_link_libraries(yaft_app_lib PUBLIC linux::mxcfb)
endif()

add_executable(${PROJECT_NAME} main.cpp)

target_link_libraries(${PROJECT_NAME}
PRIVATE
yaft_app_lib
rMlib)

install(TARGETS ${PROJECT_NAME}
COMPONENT ${PROJECT_NAME}
DESTINATION opt/bin)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
245 changes: 0 additions & 245 deletions apps/yaft/fb/common.cpp

This file was deleted.

8 changes: 0 additions & 8 deletions apps/yaft/fb/common.h

This file was deleted.

Loading

0 comments on commit 2c826ae

Please sign in to comment.