shithub: tinygl

Download patch

ref: a994eee8ecfcdf06a7b70a704074ad6c193f7415
parent: 7e9ab35126459eb5c1e3eceaa62892caef6d7c5d
author: gek169 <gek169>
date: Mon May 24 16:31:28 EDT 2021

Automatic commit.

--- a/CMakeCache.txt
+++ /dev/null
@@ -1,53 +1,0 @@
-# This is the CMakeCache file.
-# For build in directory: /home/gek/Programming/tinygl
-# It was generated by CMake: /usr/bin/cmake
-# You can edit this file to change values found and used by cmake.
-# If you do not want to change any of the values, simply exit the editor.
-# If you do want to change a value, simply edit, save, and exit the editor.
-# The syntax for the file is as follows:
-# KEY:TYPE=VALUE
-# KEY is the name of a variable in the cache.
-# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
-# VALUE is the current value for the KEY.
-
-########################
-# EXTERNAL cache entries
-########################
-
-
-########################
-# INTERNAL cache entries
-########################
-
-//This is the directory where this CMakeCache.txt was created
-CMAKE_CACHEFILE_DIR:INTERNAL=/home/gek/Programming/tinygl
-//Major version of cmake used to create the current loaded cache
-CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
-//Minor version of cmake used to create the current loaded cache
-CMAKE_CACHE_MINOR_VERSION:INTERNAL=13
-//Patch version of cmake used to create the current loaded cache
-CMAKE_CACHE_PATCH_VERSION:INTERNAL=4
-//Path to CMake executable.
-CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
-//Path to cpack program executable.
-CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
-//Path to ctest program executable.
-CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
-//Name of external makefile project generator.
-CMAKE_EXTRA_GENERATOR:INTERNAL=
-//Name of generator.
-CMAKE_GENERATOR:INTERNAL=Unix Makefiles
-//Generator instance identifier.
-CMAKE_GENERATOR_INSTANCE:INTERNAL=
-//Name of generator platform.
-CMAKE_GENERATOR_PLATFORM:INTERNAL=
-//Name of generator toolset.
-CMAKE_GENERATOR_TOOLSET:INTERNAL=
-//Source directory with the top level CMakeLists.txt file for this
-// project
-CMAKE_HOME_DIRECTORY:INTERNAL=/home/gek/Programming/tinygl
-//number of local generators
-CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
-//Path to CMake installation.
-CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.13
-
--- a/CMakeFiles/cmake.check_cache
+++ /dev/null
@@ -1,1 +1,0 @@
-# This file is generated by cmake for dependency checking of the CMakeCache.txt file
--- a/CMakeLists.txt
+++ /dev/null
@@ -1,65 +1,0 @@
-cmake_minimum_required(VERSION 3.14)
-project(tinygl
-    DESCRIPTION "tinygl: The ultimate portable graphics library"
-    HOMEPAGE_URL "https://github.com/C-Chads/tinygl"
-    LANGUAGES C
-)
-
-# Options
-option(TINYGL_BUILD_EXAMPLES "Build Examples" OFF)
-option(TINYGL_BUILD_STATIC "Build Static Library" ON)
-option(TINYGL_BUILD_SHARED "Build Shared Library" ON)
-
-# Variables
-set(TINYGL_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
-set(TINYGL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
-file(GLOB TINYGL_SOURCES ${TINYGL_SOURCE_DIR}/*.c)
-
-# Libraries
-if(TINYGL_BUILD_STATIC)
-    add_library(tinygl-static STATIC ${TINYGL_SOURCES})
-    target_include_directories(tinygl-static PUBLIC ${TINYGL_INCLUDE_DIR})
-endif()
-if(TINYGL_BUILD_SHARED)
-    add_library(tinygl SHARED ${TINYGL_SOURCES})
-    target_include_directories(tinygl PUBLIC ${TINYGL_INCLUDE_DIR})
-endif()
-
-# Examples
-if(TINYGL_BUILD_EXAMPLES AND TINYGL_BUILD_STATIC)
-    set(TINYGL_DEMOS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Raw_Demos)
-    file(GLOB TINYGL_DEMOS ${TINYGL_DEMOS_DIR}/*.c)
-    foreach(DEMO ${TINYGL_DEMOS})
-        get_filename_component(DEMO_NAME ${DEMO} NAME_WE)
-        add_executable(${DEMO_NAME} ${DEMO})
-        target_link_libraries(${DEMO_NAME} tinygl-static m)
-    endforeach()
-    configure_file(${TINYGL_DEMOS_DIR}/asciifractal.sh asciifractal.sh)
-    configure_file(${TINYGL_DEMOS_DIR}/char.txt char.txt)
-
-    find_package(SDL QUIET)
-    if(SDL_FOUND)
-        set(TINYGL_SDL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/SDL_Examples)
-        file(GLOB TINYGL_SDL_DEMOS ${TINYGL_SDL_DIR}/*.c)
-        foreach(DEMO ${TINYGL_SDL_DEMOS})
-            get_filename_component(DEMO_NAME ${DEMO} NAME_WE)
-            set(DEMO_NAME "sdl_${DEMO_NAME}")
-            add_executable(${DEMO_NAME} ${DEMO})
-            target_link_libraries(${DEMO_NAME} tinygl-static m ${SDL_LIBRARY})
-            target_include_directories(${DEMO_NAME} PUBLIC ${SDL_INCLUDE_DIR})
-        endforeach()
-
-        file(GLOB TINYGL_RESOURCES
-            ${TINYGL_SDL_DIR}/*.png
-            ${TINYGL_SDL_DIR}/*.obj
-            ${TINYGL_SDL_DIR}/*.mp3
-            ${TINYGL_SDL_DIR}/*.jpg
-        )
-        foreach(FILE ${TINYGL_RESOURCES})
-            get_filename_component(FILE_NAME ${FILE} NAME)
-            configure_file(${FILE} ${FILE_NAME} COPYONLY)
-        endforeach()
-    else()
-        message(STATUS "tinygl: SDL not found")
-    endif()
-endif()