Skip to content

Commit 22395fb

Browse files
committedApr 24, 2024·
Fix build issues and set 3.1.1
1 parent b2ad06f commit 22395fb

16 files changed

+29
-33
lines changed
 

‎.github/workflows/macos_build.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
VULKAN_SDK_VERSION: '1.3.250.1'
1414
VULKAN_LIB_VERSION: '1.3.250'
1515
MACOSX_DEPLOYMENT_TARGET: '10.15'
16-
GH_CACHE_KEY: 9
16+
GH_CACHE_KEY: 10
1717

1818
jobs:
1919
build:
@@ -32,7 +32,7 @@ jobs:
3232
- name: install libs
3333
run: |
3434
brew install ninja yasm dylibbundler \
35-
libogg libvorbis libvpx boost meson cmake zlib \
35+
libvpx boost meson cmake zlib \
3636
sdl2 sdl2_image sdl2_mixer sdl2_net
3737
- uses: actions/cache@v4
3838
id: cache
@@ -56,26 +56,24 @@ jobs:
5656
hdiutil detach /Volumes/VulkanSDK
5757
- name: ffmpeg -- download
5858
if: steps.cache.outputs.cache-hit != 'true'
59-
run: git clone --depth 1 --branch n5.1 https://git.ffmpeg.org/ffmpeg.git ffmpeg
59+
run: git clone --depth 1 --branch n6.1 https://git.ffmpeg.org/ffmpeg.git ffmpeg
6060
- name: ffmpeg -- configure
6161
if: steps.cache.outputs.cache-hit != 'true'
6262
run: ./configure
6363
--prefix=/usr/local
6464
--enable-shared --disable-static
6565
--cc="clang"
66-
--arch=${{matrix.env.arch}}
67-
--extra-cflags="-arch x86_64"
68-
--extra-ldflags="-arch x86_64"
66+
--extra-cflags="-arch arm64"
67+
--extra-ldflags="-arch arm64"
6968
--target-os=darwin
7069
--sysroot=$(xcrun --sdk macosx --show-sdk-path)
7170
--disable-everything
7271
--enable-swscale
7372
--enable-swresample
7473
--enable-zlib
7574
--enable-libvpx
76-
--enable-libvorbis
7775
--enable-demuxer=rawvideo,bink,matroska
78-
--enable-decoder=rawvideo,bink,binkaudio_dct,vorbis,opus,vp8,vp9
76+
--enable-decoder=rawvideo,bink,binkaudio_dct,opus,vp8,vp9
7977
--enable-parser=vp9
8078
--enable-filter=aresample,aformat
8179
--enable-protocol=file

‎.github/workflows/windows_msys_build.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ jobs:
8686
--enable-swresample \
8787
--enable-zlib \
8888
--enable-libvpx \
89-
--enable-libvorbis \
9089
--enable-demuxer=rawvideo,bink,matroska \
91-
--enable-decoder=rawvideo,bink,binkaudio_dct,vorbis,opus,vp8,vp9 \
90+
--enable-decoder=rawvideo,bink,binkaudio_dct,opus,vp8,vp9 \
9291
--enable-parser=vp9 \
9392
--enable-filter=aresample,aformat \
9493
--enable-protocol=file \

‎CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CMAKE_MINIMUM_REQUIRED(VERSION 3.16.0)
22

33
# root
4-
PROJECT(perimeter VERSION 3.1.0)
4+
PROJECT(perimeter VERSION 3.1.1)
55
message("Version ${PROJECT_VERSION}")
66

77
SET(CMAKE_CONFIGURATION_TYPES "Release;Debug;MinSizeRel;RelWithDebInfo")

‎Source/Game/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
OPTION(OPTION_PROCESS_SCRIPTS "Re-Process game scripts with XPrm" OFF)
33

44
target_sources(perimeter PRIVATE
5+
"${PROJECT_SOURCE_DIR}/Source/version.cpp"
56
CameraManager.cpp
67
MonkManager.cpp
78
MusicManager.cpp

‎Source/Network/P2P_interface.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ class PNetCenter {
525525

526526
NETID m_hostNETID;
527527
NETID m_localNETID;
528-
bool flag_connected;
528+
bool flag_connected = false;
529529

530530
void Reset();
531531

‎Source/Network/P2P_interface1Th.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ const char* PNetCenter::getStrState() const
7878
PNetCenter::PNetCenter() :
7979
in_ClientBuf(PNETCENTER_BUFFER_SIZE, true), out_ClientBuf(PNETCENTER_BUFFER_SIZE, true),
8080
in_HostBuf(PNETCENTER_BUFFER_SIZE, true), out_HostBuf(PNETCENTER_BUFFER_SIZE, true),
81-
connectionHandler(this),
82-
flag_connected(false)
81+
connectionHandler(this)
8382
{
8483
hostConnection=NetAddress();
8584

‎Source/perimeter.rc

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ BEGIN
119119
BEGIN
120120
VALUE "CompanyName", "K-D LAB"
121121
VALUE "FileDescription", "Perimeter"
122-
VALUE "FileVersion", "3.1.0"
122+
VALUE "FileVersion", "3.1.1"
123123
VALUE "InternalName", "Perimeter"
124124
VALUE "LegalCopyright", "Copyright (C) K-D LAB"
125125
VALUE "ProductName", "Perimeter"
126-
VALUE "ProductVersion", "3.1.0"
126+
VALUE "ProductVersion", "3.1.1"
127127
END
128128
END
129129
BLOCK "VarFileInfo"

‎Source/version.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#define VERSION "3.1.1"
2+
3+
//Sanity check to make sure the cmake version matches the code version
4+
#include <string_view>
5+
static_assert(
6+
std::string_view(PERIMETER_VERSION) == VERSION,
7+
"'" PERIMETER_VERSION "' mismatches the expected version '" VERSION "'"
8+
);

‎docker/dockcross/dockcross-cmake.sh

-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ cp ${SDL_DIR}/bin/SDL2.dll output
6767
cp ${SDL_DIR}/bin/SDL2_image.dll output
6868
cp ${SDL_DIR}/bin/SDL2_mixer.dll output
6969
cp ${SDL_DIR}/bin/SDL2_net.dll output
70-
#cp -fv /usr/lib/mxe/usr/${CROSS_TRIPLE}/bin/libogg*.dll output
71-
#cp -fv /usr/lib/mxe/usr/${CROSS_TRIPLE}/bin/libvorbis*.dll output
72-
#cp -fv /usr/lib/mxe/usr/${CROSS_TRIPLE}/bin/libvorbisfile*.dll output
7370
#cp -fv /usr/lib/mxe/usr/${CROSS_TRIPLE}/bin/zlib*.dll output
7471
#cp -fv /usr/lib/mxe/usr/${CROSS_TRIPLE}/bin/libstdc*.dll output
7572
#cp -fv /usr/lib/mxe/usr/${CROSS_TRIPLE}/bin/libgcc*.dll output

‎docker/dockcross/dockcross-x64.Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
FROM dockcross/windows-shared-x64:latest
2-
3-
RUN echo "v2"
1+
FROM dockcross/windows-shared-x64:20231208-4e4d3ad
42

53
ENV DEFAULT_DOCKCROSS_IMAGE dockcross-x64-perimeter
64

‎docker/linux/prepare_ffmpeg

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
# Compile smaller version of FFMPEG with only what project needs
5-
git clone --depth 1 --branch n5.1 https://git.ffmpeg.org/ffmpeg.git /opt/src/ffmpeg
5+
git clone --depth 1 --branch n6.1 https://git.ffmpeg.org/ffmpeg.git /opt/src/ffmpeg
66

77
cd /opt/src/ffmpeg
88

@@ -14,9 +14,8 @@ cd /opt/src/ffmpeg
1414
--enable-swresample \
1515
--enable-zlib \
1616
--enable-libvpx \
17-
--enable-libvorbis \
1817
--enable-demuxer=rawvideo,bink,matroska \
19-
--enable-decoder=rawvideo,bink,binkaudio_dct,vorbis,opus,vp8,vp9 \
18+
--enable-decoder=rawvideo,bink,binkaudio_dct,opus,vp8,vp9 \
2019
--enable-parser=vp9 \
2120
--enable-filter=aresample,aformat \
2221
--enable-protocol=file \

‎docker/linux/prepare_pkgs

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ apt-get install -t buster-backports -y \
1919
libsdl2-net-dev \
2020
libsdl2-mixer-dev \
2121
zlib1g-dev \
22-
libvorbis-dev \
2322
libvulkan-dev glslang-tools \
2423
build-essential \
2524
cmake meson ninja-build

‎flake.nix

+2-3
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@
154154
ffmpegVariant = "headless";
155155

156156
withHeadlessDeps = false;
157-
withOgg = true;
158-
withVorbis = true;
157+
withOpus = true;
159158
withZlib = true;
160159
withVpx = !super.stdenv.hostPlatform.isMinGW
161160
&& !super.stdenv.hostPlatform.isDarwin;
@@ -176,7 +175,7 @@
176175
configureFlags = attrs.configureFlags ++ [
177176
"--disable-everything"
178177
"--enable-demuxer=rawvideo,bink,matroska"
179-
"--enable-decoder=rawvideo,bink,binkaudio_dct,vorbis,opus,vp9"
178+
"--enable-decoder=rawvideo,bink,binkaudio_dct,opus,vp9"
180179
"--enable-parser=vp9"
181180
"--enable-filter=aresample,aformat"
182181
"--enable-protocol=file"

‎macos/Perimeter.app.template/Contents/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleIconFile</key>
1414
<string>iconfile</string>
1515
<key>CFBundleShortVersionString</key>
16-
<string>3.1.0</string>
16+
<string>3.1.1</string>
1717
<key>CFBundleInfoDictionaryVersion</key>
1818
<string>6.0</string>
1919
<key>CFBundlePackageType</key>

‎perimeter.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
};
5252
in pkgs.stdenv.mkDerivation {
5353
pname = "perimeter";
54-
version = "3.1.0";
54+
version = "3.1.1";
5555
meta = with lib; {
5656
homepage = "https://github.com/KD-lab-Open-Source/Perimeter/";
5757
description = "Perimeter - A open-source RTS game from 2004 by K-D LAB";

‎vcpkg.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"name": "perimeter",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"dependencies": [
55
"zlib",
66
"boost-stacktrace",
7-
"libvorbis",
87
"libvpx",
98
"sdl2",
109
"sdl2-image",

0 commit comments

Comments
 (0)
Please sign in to comment.