Compare commits
5 Commits
alpha-0.4.
...
license
| Author | SHA1 | Date | |
|---|---|---|---|
| 0efbd480ac | |||
| 7c4ed3910f | |||
| 90c834cc49 | |||
| d23761dc10 | |||
| 3d8fd2e519 |
32
.gitea/workflows/linux.yaml
Normal file
32
.gitea/workflows/linux.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Linux arm64
|
||||
run-name: Build And Test
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install deps
|
||||
run : |
|
||||
apt update
|
||||
apt install -y libsdl2-dev libglew-dev
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare Xmake
|
||||
uses: xmake-io/github-action-setup-xmake@v1
|
||||
with:
|
||||
xmake-version: latest
|
||||
actions-cache-folder: '.xmake-cache'
|
||||
actions-cache-key: 'ubuntu'
|
||||
|
||||
- name: XMake config
|
||||
run: xmake f -p linux -y --root
|
||||
|
||||
- name: Build
|
||||
run: xmake --root
|
||||
|
||||
- name: Test
|
||||
run: xmake test --root
|
||||
21
LICENSE.txt
Normal file
21
LICENSE.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 Simon Pribylski
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
16
xmake.lua
16
xmake.lua
@@ -3,6 +3,7 @@ add_rules("mode.debug", "mode.release")
|
||||
add_defines("TD_IMPL_OPENGL_LOADER_GLEW")
|
||||
add_requires("libsdl >= 2", "zlib", "glew")
|
||||
|
||||
set_languages("c++17")
|
||||
|
||||
target("TowerDefenseData")
|
||||
set_kind("static")
|
||||
@@ -10,8 +11,6 @@ target("TowerDefenseData")
|
||||
add_includedirs("include")
|
||||
add_files("src/td/**.cpp")
|
||||
|
||||
set_languages("c++17")
|
||||
|
||||
add_packages("zlib")
|
||||
|
||||
add_links("pthread")
|
||||
@@ -21,18 +20,7 @@ target("TowerDefenseData")
|
||||
add_links("ws2_32") -- link network stuff
|
||||
end
|
||||
|
||||
if is_mode("release") then
|
||||
-- mark symbols visibility as hidden
|
||||
set_symbols("hidden")
|
||||
|
||||
-- strip all symbols
|
||||
add_ldflags("-s")
|
||||
|
||||
set_warnings("all", "error")
|
||||
|
||||
set_optimize("fastest")
|
||||
|
||||
else -- debug stuff
|
||||
if is_mode("debug") then
|
||||
if is_os("linux") then
|
||||
add_links("dw")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user