Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit a6ea675

Browse files
authored
Updated to v1.3
2 parents 4242bd1 + 7c1a2e5 commit a6ea675

381 files changed

Lines changed: 421 additions & 76 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: Build
2+
on: [push, pull_request]
3+
env:
4+
CODE_PATH: .
5+
BUILD_PATH: build
6+
SDL2_VERSION: 2.32.2
7+
defaults:
8+
run:
9+
shell: bash
10+
jobs:
11+
build:
12+
name: Build ${{matrix.build-targets.name}}
13+
runs-on: ${{matrix.build-targets.os}}
14+
strategy:
15+
matrix:
16+
build-targets:
17+
- {
18+
name: "Linux (x64 Static)",
19+
os: "ubuntu-latest",
20+
libPath: "lib",
21+
cFlags: "",
22+
shared: false,
23+
compiler: "gcc",
24+
output: "AuriText-SDL2-linux-x64-static"
25+
}
26+
- {
27+
name: "Linux (x64 Shared)",
28+
os: "ubuntu-latest",
29+
libPath: "lib",
30+
cFlags: "",
31+
shared: true,
32+
compiler: "gcc",
33+
output: "AuriText-SDL2-linux-x64-shared"
34+
}
35+
- {
36+
name: "Windows (x64)",
37+
os: "windows-latest",
38+
libPath: "lib",
39+
cFlags: "",
40+
shared: true,
41+
compiler: "gcc",
42+
output: "AuriText-SDL2-mingw-x64"
43+
}
44+
steps:
45+
- uses: actions/checkout@v4
46+
47+
- name: SDL2 - Install (Linux)
48+
if: runner.os == 'Linux'
49+
run: >
50+
sudo apt install libsdl2-dev
51+
52+
- name: SDL2 - Install (Windows)
53+
if: runner.os == 'Windows'
54+
run: |
55+
curl -L https://github.com/libsdl-org/SDL/releases/download/release-${{env.SDL2_VERSION}}/SDL2-devel-${{env.SDL2_VERSION}}-mingw.tar.gz -o SDL2-devel-${{env.SDL2_VERSION}}-mingw.tar.gz
56+
tar xzvf SDL2-devel-${{env.SDL2_VERSION}}-mingw.tar.gz
57+
58+
cp -r SDL2-${{env.SDL2_VERSION}}/x86_64-w64-mingw32/* C:/mingw64
59+
cp -r SDL2-${{env.SDL2_VERSION}}/x86_64-w64-mingw32/* C:/mingw64/x86_64-w64-mingw32
60+
61+
- name: Make Directories
62+
run: >
63+
mkdir -p "${{matrix.build-targets.output}}/include/AuriText-SDL2"
64+
"${{matrix.build-targets.output}}/${{matrix.build-targets.libPath}}"
65+
"${{matrix.build-targets.output}}/share/licenses/AuriText-SDL2"
66+
67+
- name: Make Directories (Windows)
68+
if: runner.os == 'Windows'
69+
run: >
70+
mkdir -p "${{matrix.build-targets.output}}/bin"
71+
72+
- name: Configure CMake
73+
run: >
74+
cmake -S ${{env.CODE_PATH}}
75+
-B ${{env.BUILD_PATH}}
76+
-DCMAKE_C_COMPILER=${{matrix.build-targets.compiler}}
77+
-DCMAKE_BUILD_TYPE=Release
78+
-DBUILD_SHARED_LIBS=${{matrix.build-targets.shared}}
79+
-DCMAKE_C_FLAGS=${{matrix.build-targets.cFlags}}
80+
-G "Unix Makefiles"
81+
82+
- name: Build
83+
run: cmake --build ${{env.BUILD_PATH}}
84+
85+
- name: Copy Files (Shared)
86+
run: |
87+
cp *.h "${{matrix.build-targets.output}}/include/AuriText-SDL2"
88+
cp COPYING* "${{matrix.build-targets.output}}/share/licenses/AuriText-SDL2"
89+
90+
- name: Copy Files (Linux)
91+
if: runner.os == 'Linux'
92+
run: cp ${{env.BUILD_PATH}}/libAuriText-SDL2.* "${{matrix.build-targets.output}}/${{matrix.build-targets.libPath}}"
93+
94+
- name: Copy Files (Windows)
95+
if: runner.os == 'Windows'
96+
run: |
97+
cp ${{env.BUILD_PATH}}/libAuriText-SDL2.dll.a "${{matrix.build-targets.output}}/${{matrix.build-targets.libPath}}"
98+
cp ${{env.BUILD_PATH}}/libAuriText-SDL2.dll "${{matrix.build-targets.output}}/bin"
99+
100+
- name: Make Archive
101+
run: tar -czvf "${{matrix.build-targets.output}}.tar.gz" "${{matrix.build-targets.output}}"
102+
103+
- uses: actions/upload-artifact@v4
104+
with:
105+
name: ${{matrix.build-targets.output}}
106+
path: ${{matrix.build-targets.output}}.tar.gz

CMakeLists.txt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
cmake_minimum_required(VERSION 3.25)
2-
set(LIBRARY_NAME "AuriText")
32

4-
project(AuriText LANGUAGES C)
3+
option(BUILD_SHARED_LIBS "Build shared version of ${PROJECT_NAME}" on)
4+
5+
project(AuriText-SDL2 LANGUAGES C)
56

67
set(CMAKE_C_FLAGS_DEBUG "-g -Wall")
78
set(CMAKE_C_FLAGS_RELEASE "-s -O2")
89

910
file(GLOB SOURCE_FILES "*.c")
1011

1112
find_package(SDL2 REQUIRED)
12-
find_package(SDL2_image REQUIRED)
1313
include_directories(${SDL2_INCLUDE_DIRS})
1414

1515
if(BUILD_SHARED_LIBS)
1616
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
1717
else()
1818
add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES})
1919
endif()
20-
target_include_directories(${PROJECT_NAME} PRIVATE src/)
21-
if (CMAKE_C_COMPILER_ID MATCHES "Clang")
22-
target_link_libraries(${PROJECT_NAME}
23-
${SDL2_LIBRARIES}
24-
SDL2_image
25-
)
26-
endif()
20+
target_link_libraries(${PROJECT_NAME} ${SDL2_LIBRARIES})

Fonts/ComIO/Letters/Lower/a.png

87 Bytes

Fonts/ComIO/Letters/Lower/b.png

83 Bytes

Fonts/ComIO/Letters/Lower/c.png

84 Bytes

Fonts/ComIO/Letters/Lower/d.png

84 Bytes

Fonts/ComIO/Letters/Lower/e.png

88 Bytes

Fonts/ComIO/Letters/Lower/f.png

85 Bytes

Fonts/ComIO/Letters/Lower/g.png

84 Bytes

Fonts/ComIO/Letters/Lower/h.png

81 Bytes

0 commit comments

Comments
 (0)