Cleaned slate.
This commit is contained in:
1 parent
25613d54a7
commit
a54c1412c7
521 files changed
+1
-132590
No files matched your search
@@ -1,29 +0,0 @@
|
|||||||
name: test
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master, main ]
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout 🛎️
|
|
||||||
uses: actions/[email protected]
|
|
||||||
|
|
||||||
- name: Setup cmake
|
|
||||||
uses: jwlawson/[email protected]
|
|
||||||
with:
|
|
||||||
cmake-version: '3.13.x'
|
|
||||||
|
|
||||||
- name: Get Libraries
|
|
||||||
run: |
|
|
||||||
git submodule update --init --recursive
|
|
||||||
sudo apt install xorg-dev libglu1-mesa-dev
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
cmake -B build -DTARGET_TYPE=game -DTARGET_GAME=poker
|
|
||||||
cmake --build ./build
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
./build/test/tests
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
name: test
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches: [ master, main ]
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout 🛎️
|
|
||||||
uses: actions/[email protected]
|
|
||||||
|
|
||||||
- name: Setup cmake
|
|
||||||
uses: jwlawson/[email protected]
|
|
||||||
with:
|
|
||||||
cmake-version: '3.13.x'
|
|
||||||
|
|
||||||
- name: Get Libraries
|
|
||||||
run: |
|
|
||||||
git submodule update --init --recursive
|
|
||||||
sudo apt install xorg-dev libglu1-mesa-dev
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
cmake -B build -DTARGET_TYPE=test
|
|
||||||
cmake --build ./build
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
./build/test/tests
|
|
||||||
-12
@@ -1,12 +0,0 @@
|
|||||||
[submodule "lib/Unity"]
|
|
||||||
path = lib/Unity
|
|
||||||
url = https://github.com/ThrowTheSwitch/Unity.git
|
|
||||||
[submodule "lib/stb"]
|
|
||||||
path = lib/stb
|
|
||||||
url = https://github.com/nothings/stb
|
|
||||||
[submodule "lib/cglm"]
|
|
||||||
path = lib/cglm
|
|
||||||
url = https://github.com/recp/cglm
|
|
||||||
[submodule "lib/glfw"]
|
|
||||||
path = lib/glfw
|
|
||||||
url = https://github.com/glfw/glfw
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
# Copyright (c) 2021 Dominic Msters
|
|
||||||
#
|
|
||||||
# This software is released under the MIT License.
|
|
||||||
# https://opensource.org/licenses/MIT
|
|
||||||
|
|
||||||
# Set up the base CMake stuff.
|
|
||||||
cmake_minimum_required(VERSION 3.13)
|
|
||||||
set(CMAKE_C_STANDARD 99)
|
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|
||||||
|
|
||||||
# Set some global flags
|
|
||||||
add_compile_definitions(
|
|
||||||
_CRT_SECURE_NO_WARNINGS=1
|
|
||||||
ASSET_PREFIX="../assets/"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Do initial set up depending on the build target type.
|
|
||||||
if(TARGET_TYPE STREQUAL test)
|
|
||||||
set(TARGET_NAME test)
|
|
||||||
elseif(TARGET_TYPE STREQUAL game)
|
|
||||||
set(TARGET_NAME ${TARGET_GAME})
|
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "Missing or invalid definition of TARGET_TYPE")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Check game has been defined
|
|
||||||
if(NOT DEFINED TARGET_GAME)
|
|
||||||
message(FATAL_ERROR "Missing or invalid definition of TARGET_GAME")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Set up the project
|
|
||||||
project(${TARGET_NAME} C)
|
|
||||||
add_executable(${PROJECT_NAME})
|
|
||||||
|
|
||||||
# Variables
|
|
||||||
set(ROOT_DIR "${CMAKE_SOURCE_DIR}")
|
|
||||||
set(BUILD_DIR "${CMAKE_BINARY_DIR}")
|
|
||||||
set(TOOLS_DIR "${ROOT_DIR}/tools")
|
|
||||||
set(ASSETS_SOURCE_DIR "${ROOT_DIR}/assets")
|
|
||||||
set(ASSETS_BUILD_DIR "${BUILD_DIR}/assets")
|
|
||||||
set(TEMP_DIR "${BUILD_DIR}/temp")
|
|
||||||
|
|
||||||
# Add global sources.
|
|
||||||
add_subdirectory(lib)
|
|
||||||
|
|
||||||
# Setup Platform specific libraries
|
|
||||||
set(LIBS_PLATFORM "")
|
|
||||||
if(NOT WIN32)
|
|
||||||
list(APPEND LIBS_PLATFORM m)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Include tools
|
|
||||||
add_subdirectory(tools)
|
|
||||||
|
|
||||||
# Include the client or the test tools
|
|
||||||
if(TARGET_TYPE STREQUAL test)
|
|
||||||
add_subdirectory(test)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Set up shared assets
|
|
||||||
tool_copy(shader_textured
|
|
||||||
${ASSETS_SOURCE_DIR}/shared/shaders/textured.vert shaders/textured.vert
|
|
||||||
${ASSETS_SOURCE_DIR}/shared/shaders/textured.frag shaders/textured.frag
|
|
||||||
)
|
|
||||||
tool_copy(shader_singlerenderlist
|
|
||||||
${ASSETS_SOURCE_DIR}/shared/shaders/singlerenderlist.vert shaders/singlerenderlist.vert
|
|
||||||
${ASSETS_SOURCE_DIR}/shared/shaders/singlerenderlist.frag shaders/singlerenderlist.frag
|
|
||||||
)
|
|
||||||
|
|
||||||
tool_copy(font_opensans
|
|
||||||
${ASSETS_SOURCE_DIR}/shared/fonts/opensans/OpenSans-Regular.ttf fonts/opensans/OpenSans-Regular.ttf
|
|
||||||
${ASSETS_SOURCE_DIR}/shared/fonts/opensans/OpenSans-Bold.ttf fonts/opensans/OpenSans-Bold.ttf
|
|
||||||
)
|
|
||||||
|
|
||||||
tool_texture(texture_test
|
|
||||||
${ASSETS_SOURCE_DIR}/shared/textures/test_texture.png textures/test_texture
|
|
||||||
)
|
|
||||||
|
|
||||||
tool_copy(locale_en
|
|
||||||
${ASSETS_SOURCE_DIR}/locale/language/en-US.csv locale/language/en-US.csv
|
|
||||||
)
|
|
||||||
|
|
||||||
# Add actual game sources
|
|
||||||
add_subdirectory(src)
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
- Create a better buffer means for the CSV variables.
|
|
||||||
- Determine what's using all the memory.
|
|
||||||
- Start writing the language, storyboard if I need to.
|
|
||||||
- UI time
|
|
||||||
- AI Poker
|
|
||||||
- Begin considering audio.
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2021 Dominic Msters
|
Copyright (c) 2022 Dominic Msters
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
|
500 Internal Server Error
An error occurred: An error occurred Gitea Version: 28.2.0 |