From c8341dc0a8667d977a89fa08570c473041ae6ff1 Mon Sep 17 00:00:00 2001 From: Phillip Cook Date: Sun, 5 Jan 2025 22:22:44 -0500 Subject: [PATCH] fix typo, remove generated Makefile, correct CMakeLists --- CMakeLists.txt | 4 +- .../Makefile | 230 ------------------ .../Readme.md | 2 +- 3 files changed, 3 insertions(+), 233 deletions(-) delete mode 100644 examples/ncurses-sidebar-scrolling-container/Makefile diff --git a/CMakeLists.txt b/CMakeLists.txt index 59fdb7c..c37303f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,8 +8,8 @@ add_subdirectory("examples/cpp-project-example") # Don't try to compile C99 projects using MSVC if(NOT MSVC) add_subdirectory("examples/raylib-sidebar-scrolling-container") - add_subdirectory("examples/textui-sidebar-scrolling-container") -# add_subdirectory("examples/cairo-pdf-rendering") + add_subdirectory("examples/ncurses-sidebar-scrolling-container") + add_subdirectory("examples/cairo-pdf-rendering") add_subdirectory("examples/clay-official-website") add_subdirectory("examples/introducing-clay-video-demo") add_subdirectory("examples/SDL2-video-demo") diff --git a/examples/ncurses-sidebar-scrolling-container/Makefile b/examples/ncurses-sidebar-scrolling-container/Makefile deleted file mode 100644 index 058ca2b..0000000 --- a/examples/ncurses-sidebar-scrolling-container/Makefile +++ /dev/null @@ -1,230 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.30 - -# Default target executed when no arguments are given to make. -default_target: all -.PHONY : default_target - -# Allow only one "make -f Makefile2" at a time, but pass parallelism. -.NOTPARALLEL: - -#============================================================================= -# Special targets provided by cmake. - -# Disable implicit rules so canonical targets will work. -.SUFFIXES: - -# Disable VCS-based implicit rules. -% : %,v - -# Disable VCS-based implicit rules. -% : RCS/% - -# Disable VCS-based implicit rules. -% : RCS/%,v - -# Disable VCS-based implicit rules. -% : SCCS/s.% - -# Disable VCS-based implicit rules. -% : s.% - -.SUFFIXES: .hpux_make_needs_suffix_list - -# Command-line flag to silence nested $(MAKE). -$(VERBOSE)MAKESILENT = -s - -#Suppress display of executed commands. -$(VERBOSE).SILENT: - -# A target that is always out of date. -cmake_force: -.PHONY : cmake_force - -#============================================================================= -# Set environment variables for the build. - -# The shell in which to execute make rules. -SHELL = /bin/sh - -# The CMake executable. -CMAKE_COMMAND = /usr/bin/cmake - -# The command to remove a file. -RM = /usr/bin/cmake -E rm -f - -# Escaping for special characters. -EQUALS = = - -# The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /home/phillip/Projects/clay/examples/textui-sidebar-scrolling-container - -# The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /home/phillip/Projects/clay/examples/textui-sidebar-scrolling-container - -#============================================================================= -# Targets provided globally by CMake. - -# Special rule for the target package -package: preinstall - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Run CPack packaging tool..." - /usr/bin/cpack --config ./CPackConfig.cmake -.PHONY : package - -# Special rule for the target package -package/fast: package -.PHONY : package/fast - -# Special rule for the target package_source -package_source: - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Run CPack packaging tool for source..." - /usr/bin/cpack --config ./CPackSourceConfig.cmake /home/phillip/Projects/clay/examples/textui-sidebar-scrolling-container/CPackSourceConfig.cmake -.PHONY : package_source - -# Special rule for the target package_source -package_source/fast: package_source -.PHONY : package_source/fast - -# Special rule for the target edit_cache -edit_cache: - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." - /usr/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) -.PHONY : edit_cache - -# Special rule for the target edit_cache -edit_cache/fast: edit_cache -.PHONY : edit_cache/fast - -# Special rule for the target rebuild_cache -rebuild_cache: - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." - /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) -.PHONY : rebuild_cache - -# Special rule for the target rebuild_cache -rebuild_cache/fast: rebuild_cache -.PHONY : rebuild_cache/fast - -# The main all target -all: cmake_check_build_system - $(CMAKE_COMMAND) -E cmake_progress_start /home/phillip/Projects/clay/examples/textui-sidebar-scrolling-container/CMakeFiles /home/phillip/Projects/clay/examples/textui-sidebar-scrolling-container//CMakeFiles/progress.marks - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all - $(CMAKE_COMMAND) -E cmake_progress_start /home/phillip/Projects/clay/examples/textui-sidebar-scrolling-container/CMakeFiles 0 -.PHONY : all - -# The main clean target -clean: - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean -.PHONY : clean - -# The main clean target -clean/fast: clean -.PHONY : clean/fast - -# Prepare targets for installation. -preinstall: all - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall -.PHONY : preinstall - -# Prepare targets for installation. -preinstall/fast: - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall -.PHONY : preinstall/fast - -# clear depends -depend: - $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 -.PHONY : depend - -#============================================================================= -# Target rules for targets named clay_examples_textui_sidebar_scrolling_container - -# Build rule for target. -clay_examples_textui_sidebar_scrolling_container: cmake_check_build_system - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clay_examples_textui_sidebar_scrolling_container -.PHONY : clay_examples_textui_sidebar_scrolling_container - -# fast build rule for target. -clay_examples_textui_sidebar_scrolling_container/fast: - $(MAKE) $(MAKESILENT) -f CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/build.make CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/build -.PHONY : clay_examples_textui_sidebar_scrolling_container/fast - -main.o: main.c.o -.PHONY : main.o - -# target to build an object file -main.c.o: - $(MAKE) $(MAKESILENT) -f CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/build.make CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/main.c.o -.PHONY : main.c.o - -main.i: main.c.i -.PHONY : main.i - -# target to preprocess a source file -main.c.i: - $(MAKE) $(MAKESILENT) -f CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/build.make CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/main.c.i -.PHONY : main.c.i - -main.s: main.c.s -.PHONY : main.s - -# target to generate assembly for a file -main.c.s: - $(MAKE) $(MAKESILENT) -f CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/build.make CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/main.c.s -.PHONY : main.c.s - -multi-compilation-unit.o: multi-compilation-unit.c.o -.PHONY : multi-compilation-unit.o - -# target to build an object file -multi-compilation-unit.c.o: - $(MAKE) $(MAKESILENT) -f CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/build.make CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/multi-compilation-unit.c.o -.PHONY : multi-compilation-unit.c.o - -multi-compilation-unit.i: multi-compilation-unit.c.i -.PHONY : multi-compilation-unit.i - -# target to preprocess a source file -multi-compilation-unit.c.i: - $(MAKE) $(MAKESILENT) -f CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/build.make CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/multi-compilation-unit.c.i -.PHONY : multi-compilation-unit.c.i - -multi-compilation-unit.s: multi-compilation-unit.c.s -.PHONY : multi-compilation-unit.s - -# target to generate assembly for a file -multi-compilation-unit.c.s: - $(MAKE) $(MAKESILENT) -f CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/build.make CMakeFiles/clay_examples_textui_sidebar_scrolling_container.dir/multi-compilation-unit.c.s -.PHONY : multi-compilation-unit.c.s - -# Help Target -help: - @echo "The following are some of the valid targets for this Makefile:" - @echo "... all (the default if no target is provided)" - @echo "... clean" - @echo "... depend" - @echo "... edit_cache" - @echo "... package" - @echo "... package_source" - @echo "... rebuild_cache" - @echo "... clay_examples_textui_sidebar_scrolling_container" - @echo "... main.o" - @echo "... main.i" - @echo "... main.s" - @echo "... multi-compilation-unit.o" - @echo "... multi-compilation-unit.i" - @echo "... multi-compilation-unit.s" -.PHONY : help - - - -#============================================================================= -# Special targets to cleanup operation of make. - -# Special rule to run CMake to check the build system integrity. -# No rule that depends on this can have commands that come from listfiles -# because they might be regenerated. -cmake_check_build_system: - $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 -.PHONY : cmake_check_build_system - diff --git a/examples/ncurses-sidebar-scrolling-container/Readme.md b/examples/ncurses-sidebar-scrolling-container/Readme.md index 4952ebc..5271e5d 100644 --- a/examples/ncurses-sidebar-scrolling-container/Readme.md +++ b/examples/ncurses-sidebar-scrolling-container/Readme.md @@ -1,6 +1,6 @@ # textui/console renderer example -## Inroduction +## Introduction This renderer example utilizes ncurses and a mostly implemented library which converts the clay draw commands into ncurses commands. A console rendering is very limited, and all coordinates are simply rounded via integer division to the coordinate system of a terminal.