Skip to content

Commit

Permalink
gh-1: add openal deps on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorOrachyov committed May 1, 2023
1 parent 9a35fba commit b7f2813
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 16 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:
jobs:

windows:
runs-on: windows-2019
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -52,7 +52,7 @@ jobs:
run: cmake --build ${{ env.build_dir }}

ubuntu:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -61,6 +61,11 @@ jobs:

- uses: seanmiddleditch/gha-setup-ninja@master

- name: update apt
shell: bash
run: |
sudo apt update
- name: install glfw dependencies
shell: bash
run: |
Expand All @@ -73,6 +78,11 @@ jobs:
sudo apt-get install -y libxmu-dev libxi-dev libgl-dev libglx-dev
sudo apt-get install -y libx11-dev
- name: install openal dependencies
shell: bash
run: |
sudo apt-get install -y libpulse-dev portaudio19-dev libasound2-dev libjack-dev libpipewire-0.3-dev qtbase5-dev libdbus-1-dev
- name: install Vulkan SDK
uses: humbletim/[email protected]
with:
Expand All @@ -90,7 +100,7 @@ jobs:
run: cmake --build ${{ env.build_dir }}

macos:
runs-on: macos-11
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions deps/zlib/gzguts.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#endif
#include <fcntl.h>

#ifdef __APPLE__
#include <unistd.h>
#endif

#ifdef _WIN32
# include <stddef.h>
#endif
Expand Down
1 change: 1 addition & 0 deletions engine/core/log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#include <cstddef>
#include <fstream>
#include <memory>
#include <mutex>
#include <sstream>
#include <string>
Expand Down
7 changes: 1 addition & 6 deletions games/flappyowl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
set(FLAPPYOWL_APP_ICON_RESOURCE)

if (TARGET_WINDOWS)
set(FLAPPYOWL_APP_ICON_RESOURCE "${CMAKE_CURRENT_SOURCE_DIR}/owl.rc")
endif ()

set(FLAPPYOWL_APP_ICON_RESOURCE "${CMAKE_CURRENT_SOURCE_DIR}/owl.rc")
wmoge_game(flappyowl main.cpp ${FLAPPYOWL_APP_ICON_RESOURCE})
8 changes: 1 addition & 7 deletions template/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
set(GAME_NAME template)

set(GAME_APP_ICON_RESOURCE)

if (TARGET_WINDOWS)
set(GAME_APP_ICON_RESOURCE "${CMAKE_CURRENT_SOURCE_DIR}/wmoge.rc")
endif ()

set(GAME_APP_ICON_RESOURCE "${CMAKE_CURRENT_SOURCE_DIR}/wmoge.rc")
wmoge_game(${GAME_NAME} main.cpp ${GAME_APP_ICON_RESOURCE})

0 comments on commit b7f2813

Please sign in to comment.