Skip to content

Commit

Permalink
Merge pull request #146 from OpenShot/new-linux-appimage
Browse files Browse the repository at this point in the history
Support for New Linux Build Server + glibc Wrapping
  • Loading branch information
jonoomph authored Nov 30, 2022
2 parents 46255e4 + d6be1a9 commit 3ea4526
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ linux-builder:
- build/install-x64/*
script:
- mkdir -p build; cd build;
- cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -D"CMAKE_INSTALL_PREFIX:PATH=install-x64" -D"CMAKE_BUILD_TYPE:STRING=Release" ../
- cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -D"CMAKE_INSTALL_PREFIX:PATH=install-x64" -D"CMAKE_BUILD_TYPE:STRING=Release" -DAPPIMAGE_BUILD=1 ../
- make -j 2
- make install
- PROJECT_VERSION=$(grep -E '^set\(PROJECT_VERSION_FULL "(.*)' ../CMakeLists.txt | awk '{print $2}' | tr -d '")')
Expand All @@ -24,7 +24,7 @@ linux-builder:
except:
- tags
tags:
- linux-bionic
- linux-focal

mac-builder:
stage: build-libopenshot-audio
Expand Down
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ include(FeatureSummary)
### Build configuration (options)
option(ENABLE_AUDIO_DOCS "Attempt to build API docs for audio library" ON)
option(AUTO_INSTALL_DOCS "Include documentation in the default install" ON)
option(APPIMAGE_BUILD "Build to install in an AppImage (Linux only)" OFF)

if (APPIMAGE_BUILD)
# Force older version of glibc and -pthread flag when building AppImage
# for better backwards compatibility (i.e older distros)
message("Wrapping libc for compatibility with version glibc_2.23")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -include /usr/local/include/force_link_glibc_2.23.h -pthread -static-libgcc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include /usr/local/include/force_link_glibc_2.23.h -pthread -static-libgcc")
endif()

# Alternative location for JUCE modules (debian has their own)
set(JUCE_MODULES_PATH "${CMAKE_CURRENT_SOURCE_DIR}/JuceLibraryCode/modules" CACHE PATH
Expand Down

0 comments on commit 3ea4526

Please sign in to comment.