Skip to content

Commit

Permalink
Add spiritless_po as submodules.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Mar 6, 2024
1 parent 53298c7 commit c7c3b96
Show file tree
Hide file tree
Showing 31 changed files with 23 additions and 7,125 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
paths:
- 'resinstaller/src/**'
- 'src/**'
- 'submodules/**'
- 'test/**'
- '.github/workflows/macos.yml'
- 'CMakeLists.txt'
Expand All @@ -15,6 +16,7 @@ on:
paths:
- 'resinstaller/src/**'
- 'src/**'
- 'submodules/**'
- 'test/**'
- '.github/workflows/macos.yml'
- 'CMakeLists.txt'
Expand All @@ -27,6 +29,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: install dependencies
run: brew install sdl2 sdl2_mixer sdl2_net libogg libvorbis
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/premake5-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
paths:
- 'resinstaller/**'
- 'src/**'
- 'submodules/**'
- 'test/**'
- '.github/workflows/premake5-windows.yml'
- 'premake5.lua'
Expand All @@ -14,6 +15,7 @@ on:
paths:
- 'resinstaller/**'
- 'src/**'
- 'submodules/**'
- 'test/**'
- '.github/workflows/premake5-windows.yml'
- 'premake5.lua'
Expand All @@ -25,6 +27,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: checkout premake5
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: checkout premake5
uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
paths:
- 'resinstaller/src/**'
- 'src/**'
- 'submodules/**'
- 'test/**'
- '.github/workflows/ubuntu.yml'
- 'CMakeLists.txt'
Expand All @@ -15,6 +16,7 @@ on:
paths:
- 'resinstaller/src/**'
- 'src/**'
- 'submodules/**'
- 'test/**'
- '.github/workflows/ubuntu.yml'
- 'CMakeLists.txt'
Expand All @@ -27,6 +29,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: apt-get update
run: sudo apt-get update
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "submodules/spiritless_po"]
path = submodules/spiritless_po
url = https://github.com/oo13/spiritless_po.git
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ add_executable(maxr_dedicatedserver ${maxr_dedicatedserver_SRCS} ${RESOURCE_FILE
add_executable(maxr ${maxr_SRCS} ${RESOURCE_FILE})
add_executable(maxr_tests ${maxr_tests_SRCS})

target_include_directories(maxr_lib SYSTEM PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/3rd/spiritless_po/include")
target_include_directories(maxr_lib SYSTEM PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/submodules/spiritless_po/include")

target_link_libraries(resinstaller SDL_flic)
target_link_libraries(maxr maxr_lib SDL_flic mve_player)
Expand Down
6 changes: 3 additions & 3 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ project "maxr_lib"

files { "src/lib/**.cpp", "src/lib/**.h", "src/**.in", "src/.clang-format", "CMakeList.txt" }
includedirs { "src", "src/lib" }
externalincludedirs { "src/3rd/spiritless_po/include" }
externalincludedirs { "submodules/spiritless_po/include" }

if _OPTIONS["crashRpt_root"] ~= nil then
externalincludedirs { path.join(_OPTIONS["crashRpt_root"], "include") }
Expand Down Expand Up @@ -254,8 +254,8 @@ project "nlohmann" -- header only
project "spiritless_po" -- header only
kind "None"

files { "src/3rd/spiritless_po/**.*" }
vpaths { ["spiritless_po/*"] = "src/3rd/spiritless_po" }
files { "submodules/spiritless_po/**.*" }
vpaths { ["spiritless_po/*"] = "submodules/spiritless_po" }

group ""
project "data" -- data
Expand Down
149 changes: 0 additions & 149 deletions src/3rd/spiritless_po/.clang-format

This file was deleted.

121 changes: 0 additions & 121 deletions src/3rd/spiritless_po/CC0-1.0.legalcode.txt

This file was deleted.

Loading

0 comments on commit c7c3b96

Please sign in to comment.