Skip to content

Commit 15ff8d6

Browse files
committed
Merge branch 'master' of https://github.com/Shivansps/fs2open.github.com into android-build
2 parents 5eb465a + fe18b47 commit 15ff8d6

824 files changed

Lines changed: 48960 additions & 24833 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/cache-master.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
runs-on: ubuntu-latest
2828
container: ghcr.io/scp-fs2open/linux_build:sha-71099c9
2929
steps:
30+
- name: Install Qt dependencies
31+
run: apt-get -yq update && apt-get -yq install libfontconfig1
3032
- uses: actions/checkout@v1
3133
name: Checkout
3234
with:

.github/workflows/test-pull_request.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
runs-on: ubuntu-latest
3131
container: ghcr.io/scp-fs2open/linux_build:sha-71099c9
3232
steps:
33+
- name: Install Qt dependencies
34+
run: apt-get -yq update && apt-get -yq install libfontconfig1
3335
- uses: actions/checkout@v1
3436
name: Checkout
3537
with:

CMakeLists.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ IF(RESET_INSTALL_PREFIX)
8383
ENDIF(NOT $ENV{FS2PATH} STREQUAL "")
8484
ENDIF(RESET_INSTALL_PREFIX)
8585

86-
IF(WIN32 OR APPLE OR ANDROID)
86+
IF(WIN32 OR APPLE OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
8787
OPTION(FSO_USE_SPEECH "Use text-to-speach libraries" ON)
88-
ENDIF(WIN32 OR APPLE OR ANDROID)
88+
ELSE()
89+
OPTION(FSO_USE_SPEECH "Use text-to-speach libraries" OFF)
90+
ENDIF()
8991

9092
IF (WIN32)
9193
OPTION(FSO_USE_VOICEREC "Enable voice recognition support" ON)
@@ -134,7 +136,7 @@ OPTION(FSO_BUILD_WITH_DISCORD "Build with Discord support" ON)
134136

135137
OPTION(FSO_BUILD_WITH_OPENGL "Enable compilation of the OpenGL renderer" ON)
136138
OPTION(FSO_BUILD_WITH_OPENGL_DEBUG "Enables debug option for OpenGL" OFF)
137-
OPTION(FSO_BUILD_WITH_OPENGL_ES "When building OpenGL, use OpenGL ES path instead of core (for testing only!)" OFF)
139+
OPTION(FSO_BUILD_WITH_OPENGL_ES "When building OpenGL, use OpenGL ES compatibility layer (External shaders only!)" OFF)
138140

139141
OPTION(FSO_BUILD_WITH_VULKAN "Enable compilation of the Vulkan renderer" OFF)
140142

@@ -145,6 +147,10 @@ endif()
145147

146148
if(FSO_BUILD_WITH_OPENGL_ES)
147149
add_definitions(-DUSE_OPENGL_ES)
150+
IF(FSO_BUILD_WITH_OPENXR)
151+
MESSAGE(WARNING "FSO_BUILD_WITH_OPENXR is ON. But not supported on OpenGL ES for now - setting to OFF.")
152+
SET(FSO_BUILD_WITH_OPENXR OFF CACHE BOOL "" FORCE)
153+
endif()
148154
endif()
149155

150156
IF(NOT APPLE AND NOT FSO_BUILD_WITH_OPENGL_ES)
@@ -190,7 +196,8 @@ SET(GENERATED_SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/generated_source)
190196
include(generateHeaders)
191197

192198
if(FSO_BUILD_APPIMAGE)
193-
include(appimage)
199+
SET(BINARY_DESTINATION "bin")
200+
SET(LIBRAY_DESTINATION "lib")
194201
endif()
195202

196203
include(clang-tidy)
@@ -246,9 +253,7 @@ include(package)
246253
include(doxygen)
247254

248255
# Print used options to log
249-
IF(WIN32 OR APPLE OR ANDROID)
250-
message(STATUS "Using text to speech: ${FSO_USE_SPEECH}")
251-
ENDIF()
256+
message(STATUS "Using text to speech: ${FSO_USE_SPEECH}")
252257
IF (WIN32)
253258
message(STATUS "Using voice recogition: ${FSO_USE_VOICEREC}")
254259
message(STATUS "Building FRED2: ${FSO_BUILD_FRED2}")

ci/linux/generate_appimage.sh

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,48 @@
22

33
INSTALL_FOLDER=$1
44

5+
# safety check
6+
if [ ! -d bin -o ! -f cmake_install.cmake ]; then
7+
echo "ERROR! This script must be run from within the build root!"
8+
exit 1
9+
fi
10+
11+
if [ ! -x "$(which wget)" ]; then
12+
echo "ERROR! Required utility is not available: wget"
13+
exit 1
14+
fi
15+
16+
# install newest appimagetool if it's not already available
17+
if [ ! -x ./bin/appimagetool ]; then
18+
APPIMAGE_TOOL_URL="https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-$(uname -m).AppImage"
19+
20+
wget -O ./bin/appimagetool "$APPIMAGE_TOOL_URL" || { echo "ERROR! Failed to get appimagetool!" && exit 1; }
21+
chmod +x ./bin/appimagetool
22+
fi
23+
24+
# This shouldn't be needed with newer runtimes, but they still generate an
25+
# error if fusermount is missing even though it works. So to skip error msg
26+
# and have max compatibility with runtimes and containers we'll use it.
27+
export APPIMAGE_EXTRACT_AND_RUN=1
28+
529
# Install Freespace2 targets
6-
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_FOLDER -DCOMPONENT=Unspecified -P cmake_install.cmake
7-
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_FOLDER -DCOMPONENT=Freespace2 -P cmake_install.cmake
30+
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_FOLDER/Freespace2 -DCOMPONENT=Unspecified -P cmake_install.cmake
31+
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_FOLDER/Freespace2 -DCOMPONENT=Freespace2 -P cmake_install.cmake
832

933
# We need to be a bit creative for determining the AppImage name since we don't want to hard-code the name
10-
FILENAME="$(find $INSTALL_FOLDER/bin -name 'fs2_open_*' -type f -printf "%f\n").AppImage"
11-
appimagetool -n $INSTALL_FOLDER "$INSTALL_FOLDER/$FILENAME"
34+
FILENAME="$(find $INSTALL_FOLDER/Freespace2/bin -name 'fs2_open_*' -type f -printf "%f\n").AppImage"
35+
./bin/appimagetool -n "$INSTALL_FOLDER/Freespace2" "$INSTALL_FOLDER/$FILENAME"
1236
chmod +x "$INSTALL_FOLDER/$FILENAME"
1337

38+
# Maybe install qtFRED targets
39+
if [ -f qtfred/cmake_install.cmake ]; then
40+
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_FOLDER/qtFRED -DCOMPONENT=Unspecified -P cmake_install.cmake
41+
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_FOLDER/qtFRED -DCOMPONENT=qtFRED -P cmake_install.cmake
42+
43+
# We need to be a bit creative for determining the AppImage name since we don't want to hard-code the name
44+
FILENAME="$(find $INSTALL_FOLDER/qtFRED/bin -iname 'qtfred_*' -type f -printf "%f\n").AppImage"
45+
./bin/appimagetool -n "$INSTALL_FOLDER/qtFRED" "$INSTALL_FOLDER/$FILENAME"
46+
chmod +x "$INSTALL_FOLDER/$FILENAME"
47+
fi
48+
1449
ls -al $INSTALL_FOLDER

ci/post/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Mako==1.2.2
1+
Mako==1.3.11
22
requests==2.32.4
33
semantic-version==2.8.5

cmake/appimage.cmake

Lines changed: 0 additions & 21 deletions
This file was deleted.

cmake/finder/FindSpeech.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ if (WIN32)
99
if (NOT HAVE_SAPI_H)
1010
message(SEND_ERROR "sapi.h could not be found on your platform. Please disable speech support.")
1111
endif()
12-
elseif(APPLE OR ANDROID)
13-
# it should just work (TM)
12+
elseif(APPLE)
13+
# it should just work
14+
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
15+
# uses speech-dispatcher with dlopen
1416
else()
1517
message(SEND_ERROR "Text to Speech is not supported on this platform!")
1618
endif()

cmake/toolchain-msvc.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,13 @@ if (MSVC_RELEASE_DEBUGGING)
7171
endif()
7272
endif()
7373

74-
IF(MSVC_USE_RUNTIME_DLL)
74+
# This should be kept in sync with the corresponding IF() in fred2/CMakeLists.txt
75+
IF(MSVC_USE_RUNTIME_DLL OR FSO_BUILD_QTFRED)
7576
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<NOT:$<CONFIG:Release>>:Debug>DLL")
7677
add_compile_definitions(_AFXDLL)
77-
ELSE(MSVC_USE_RUNTIME_DLL)
78+
ELSE()
7879
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<NOT:$<CONFIG:Release>>:Debug>")
79-
ENDIF(MSVC_USE_RUNTIME_DLL)
80+
ENDIF()
8081

8182
# Debug
8283
set(CMAKE_C_FLAGS_DEBUG "/W4 /Gy /Zi /Od /RTC1 /Gd /Oy-")
@@ -113,7 +114,6 @@ if(IS_X86)
113114

114115
endif()
115116

116-
add_compile_definitions("$<$<CONFIG:FastDebug>:_ITERATOR_DEBUG_LEVEL=0>")
117117
target_compile_definitions(compiler INTERFACE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _SECURE_SCL=0 NOMINMAX _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING)
118118

119119
if (FSO_FATAL_WARNINGS)

cmake/version.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ if (EXISTS "${PROJECT_SOURCE_DIR}/version_override.cmake")
66
include("${PROJECT_SOURCE_DIR}/version_override.cmake")
77
endif()
88

9-
set_if_not_defined(FSO_VERSION_MAJOR 24)
10-
set_if_not_defined(FSO_VERSION_MINOR 3)
9+
set_if_not_defined(FSO_VERSION_MAJOR 25)
10+
set_if_not_defined(FSO_VERSION_MINOR 1)
1111
set_if_not_defined(FSO_VERSION_BUILD 0)
1212

1313
# A numeric revision e.g. the CI build number

code/actions/BuiltinActionDefinition.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class BuiltinActionDefinition : public ActionDefinition {
3030
// This should have been caught earlier
3131
Assertion(paramIter != parameterExpressions.cend(), "Could not find built-in parameter!");
3232

33-
return std::unique_ptr<Action>(new TAction(paramIter->second.template asTyped<ActionValueType>()));
33+
return std::make_unique<TAction>(paramIter->second.template asTyped<ActionValueType>());
3434
}
3535
};
3636

0 commit comments

Comments
 (0)