Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/MediaConch_Build_Lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
uses: actions/cache@v4
with:
path: "${{matrix.conan_home}}"
key: ${{ runner.os }}-conan-${{ hashFiles('.github/workflows/conanfile.txt') }}
key: ${{ runner.os }}-${{ runner.arch }}-conan-${{ hashFiles('.github/workflows/conanfile.txt') }}
restore-keys: |
${{ runner.os }}-conan-
${{ runner.os }}-${{ runner.arch }}-conan-
- name: "install dependencies" # use conan package manager to install c and c++ dependencies
# conanfile.txt is copied to the root because for some reason, conan doesn't seem to create the top
# CMakeUserPresets.json if you have the conanfile.txt in another directory than the path you call conan from.
Expand Down
58 changes: 29 additions & 29 deletions .github/workflows/MediaConch_Checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
PYTHONPATH: /usr/local/lib/python2.7:/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 1
- name: Dependencies
Expand All @@ -36,10 +36,10 @@ jobs:
echo "path=$(dirname $PWD)/ZenLib" >> $GITHUB_OUTPUT
- name: ZenLib cache
id: zenlib-cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ${{ steps.zenlib-info.outputs.path }}
key: ${{ runner.os }}-ZenLib-${{ steps.zenlib-info.outputs.hash }}
key: ${{ runner.os }}-${{ runner.arch }}-ZenLib-${{ steps.zenlib-info.outputs.hash }}
- name: ZenLib
if: steps.zenlib-cache.outputs.cache-hit != 'true'
run: |
Expand All @@ -56,10 +56,10 @@ jobs:
echo "path=$(dirname $PWD)/MediaInfoLib" >> $GITHUB_OUTPUT
- name: MediaInfoLib cache
id: mediainfolib-cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ${{ steps.mediainfolib-info.outputs.path }}
key: ${{ runner.os }}-MediaInfoLib-${{ steps.mediainfolib-info.outputs.hash }}
key: ${{ runner.os }}-${{ runner.arch }}-MediaInfoLib-${{ steps.mediainfolib-info.outputs.hash }}
- name: MediaInfoLib
if: steps.mediainfolib-cache.outputs.cache-hit != 'true'
run: |
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
run: |
cd Project/Qt
export PATH=/opt/homebrew/opt/qt/bin:$PATH
./prepare -after QMAKE_MACOSX_DEPLOYMENT_TARGET=11.0
./prepare -after QMAKE_APPLE_DEVICE_ARCHS=$(uname -m)
- name: Build GUI
run: |
cd Project/Qt
Expand Down Expand Up @@ -123,13 +123,13 @@ jobs:
('path=' + (Get-Location) + '\zlib') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: zlib cache
id: zlib-cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ${{ steps.zlib-info.outputs.path }}
key: windows-${{ matrix.arch }}-zlib-${{ steps.zlib-info.outputs.hash }}
key: ${{ runner.os }}-${{ matrix.arch }}-zlib-${{ steps.zlib-info.outputs.hash }}
- name: Checkout zlib
if: steps.zlib-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: MediaArea/zlib
path: zlib
Expand All @@ -140,13 +140,13 @@ jobs:
('path=' + (Get-Location) + '\libxml2') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: libxml2 cache
id: libxml2-cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ${{ steps.libxml2-info.outputs.path }}
key: windows-${{ matrix.arch }}-libxml2-${{ steps.libxml2-info.outputs.hash }}
key: ${{ runner.os }}-${{ matrix.arch }}-libxml2-${{ steps.libxml2-info.outputs.hash }}
- name: Checkout libxml2
if: steps.libxml2-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: MediaArea/libxml2
path: libxml2
Expand All @@ -157,13 +157,13 @@ jobs:
('path=' + (Get-Location) + '\libxslt') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: libxslt cache
id: libxslt-cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ${{ steps.libxslt-info.outputs.path }}
key: windows-${{ matrix.arch }}-libxslt-${{ steps.libxslt-info.outputs.hash }}
key: ${{ runner.os }}-${{ matrix.arch }}-libxslt-${{ steps.libxslt-info.outputs.hash }}
- name: Checkout libxslt
if: steps.libxslt-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: MediaArea/libxslt
path: libxslt
Expand All @@ -174,13 +174,13 @@ jobs:
('path=' + (Get-Location) + '\libevent') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: libevent cache
id: libevent-cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ${{ steps.libevent-info.outputs.path }}
key: windows-${{ matrix.arch }}-libevent-${{ steps.libevent-info.outputs.hash }}
key: ${{ runner.os }}-${{ matrix.arch }}-libevent-${{ steps.libevent-info.outputs.hash }}
- name: Checkout libevent
if: steps.libevent-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: MediaArea/libevent
path: libevent
Expand All @@ -191,13 +191,13 @@ jobs:
('path=' + (Get-Location) + '\jansson') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: jansson cache
id: jansson-cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ${{ steps.jansson-info.outputs.path }}
key: windows-${{ matrix.arch }}-jansson-${{ steps.jansson-info.outputs.hash }}
key: ${{ runner.os }}-${{ matrix.arch }}-jansson-${{ steps.jansson-info.outputs.hash }}
- name: Checkout jansson
if: steps.jansson-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: MediaArea/jansson
path: jansson
Expand All @@ -208,13 +208,13 @@ jobs:
('path=' + (Get-Location) + '\ZenLib') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: ZenLib cache
id: zenlib-cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ${{ steps.zenlib-info.outputs.path }}
key: windows-${{ matrix.arch }}-zenlib-${{ steps.zenlib-info.outputs.hash }}
key: ${{ runner.os }}-${{ matrix.arch }}-zenlib-${{ steps.zenlib-info.outputs.hash }}
- name: Checkout ZenLib
if: steps.zenlib-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: MediaArea/ZenLib
path: ZenLib
Expand All @@ -225,22 +225,22 @@ jobs:
('path=' + (Get-Location) + '\MediaInfoLib') | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: MediaInfoLib cache
id: mediainfolib-cache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ${{ steps.mediainfolib-info.outputs.path }}
key: windows-${{ matrix.arch }}-mediainfolib-${{ steps.mediainfolib-info.outputs.hash }}
key: ${{ runner.os }}-${{ matrix.arch }}-mediainfolib-${{ steps.mediainfolib-info.outputs.hash }}
- name: Checkout MediaInfoLib
if: steps.mediainfolib-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: MediaArea/MediaInfoLib
path: MediaInfoLib
- name: Checkout MediaConch
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
path: MediaConch
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
uses: microsoft/setup-msbuild@v3
with:
msbuild-architecture: x64
- name: Build
Expand Down
29 changes: 4 additions & 25 deletions Project/GNU/GUI/AddThisToRoot_GUI_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,23 @@ Parallel_Make () {

Home=`pwd`
ZenLib_Options=""
MacOptions="--with-macosx-version-min=10.10 --enable-arch-x86_64"
MacOptions="--with-macosx-version-min=11.0 --enable-arch-x86_64 --enable-arch-arm64"

OS=$(uname -s)
# expr isn't available on mac
if [ "$OS" = "Darwin" ]; then
OS="mac"
BINARY="MediaConch.app/Contents/MacOS/MediaConch"
if test -d ~/Qt/5.3/clang_64/bin; then
export PATH=$PATH:~/Qt/5.3/clang_64/bin
fi
# if the 5 first caracters of $OS equal "Linux"
elif [ "$(expr substr $OS 1 5)" = "Linux" ]; then
OS="linux"
BINARY="mediaconch-gui"
#elif [ "$(expr substr $OS 1 5)" = "SunOS" ]; then
# OS="solaris"
#elif [ "$(expr substr $OS 1 7)" = "FreeBSD" ]; then
# OS="freebsd"
fi

if [ "$OS" = "mac" ] ; then
export CXXFLAGS="-mmacosx-version-min=10.10 -arch x86_64 $CXXFLAGS"
export CFLAGS="-mmacosx-version-min=10.10 -arch x86_64 $CFLAGS"
export LDFLAGS="-mmacosx-version-min=10.10 -arch x86_64 $LDFLAGS"
export CXXFLAGS="-mmacosx-version-min=11.0 -arch x86_64 -arch arm64 $CXXFLAGS"
export CFLAGS="-mmacosx-version-min=11.0 -arch x86_64 -arch arm64 $CFLAGS"
export LDFLAGS="-mmacosx-version-min=11.0 -arch x86_64 -arch arm64 $LDFLAGS"
fi

##################################################################
Expand Down Expand Up @@ -187,20 +180,6 @@ else
fi
cd $Home

##################################################################
# Compile zlib

cd Shared/Source/zlib
make clean
Parallel_Make
if test -e libz.a; then
echo zlib compiled
else
echo Problem while compiling zlib
exit
fi
cd $Home

##################################################################
# Compile ZenLib

Expand Down
4 changes: 2 additions & 2 deletions Project/Mac/Info-ns.plist
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
<key>DTSDKBuild</key>
<string>10K549</string>
<key>DTSDKName</key>
<string>macosx10.13</string>
<string>macosx11.0</string>
<key>DTXcode</key>
<string>0420</string>
<key>DTXcodeBuild</key>
<string>4C199</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
<string>10.13</string>
<string>11.0</string>
<key>NSHumanReadableCopyright</key>
<string>(c) MediaArea.net</string>
<key>NSMainNibFile</key>
Expand Down
4 changes: 2 additions & 2 deletions Project/Mac/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
<key>DTSDKBuild</key>
<string>10K549</string>
<key>DTSDKName</key>
<string>macosx10.13</string>
<string>macosx11.0</string>
<key>DTXcode</key>
<string>0420</string>
<key>DTXcodeBuild</key>
<string>4C199</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
<string>10.13</string>
<string>11.0</string>
<key>NSHumanReadableCopyright</key>
<string>(c) MediaArea.net</string>
<key>NSMainNibFile</key>
Expand Down
2 changes: 1 addition & 1 deletion Project/Mac/Make_MC_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ if [ "$KIND" = "GUI" ]; then
echo Signing the application...
echo

codesign --options=runtime --force --verbose --entitlements QtWebEngineProcess-ns.entitlements --sign "Developer ID Application: ${SIGNATURE}" "${FILES}/${APPNAME}.app/Contents/Frameworks/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess"
codesign --options=runtime --force --verbose --entitlements QtWebEngineProcess-ns.entitlements --sign "Developer ID Application: ${SIGNATURE}" "${FILES}/${APPNAME}.app/Contents/Frameworks/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app"
codesign --deep --options=runtime --force --verbose --preserve-metadata=identifier,entitlements --sign "Developer ID Application: ${SIGNATURE}" "${FILES}/${APPNAME}.app"

echo
Expand Down
6 changes: 6 additions & 0 deletions Project/Mac/QtWebEngineProcess-ns.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.disable-executable-page-protection</key>
<true/>
</dict>
Expand Down
10 changes: 7 additions & 3 deletions Project/Qt/MediaConch.pro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ unix:!macx:TARGET = mediaconch-gui
else:TARGET = MediaConch
TEMPLATE = app

CONFIG += qt release c++11
CONFIG += qt release c++17
CONFIG += no_keywords

unix:CONFIG += link_pkgconfig
Expand Down Expand Up @@ -351,16 +351,20 @@ contains(NO_LIBEVENT, yes|1) {
}
}

macx {
QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64
}

macx:contains(MACSTORE, yes|1) {
QMAKE_LFLAGS+=-Wl,-ld_classic
QMAKE_CFLAGS += -gdwarf-2
QMAKE_CXXFLAGS += -gdwarf-2
QMAKE_INFO_PLIST = ../Mac/Info.plist
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
QMAKE_MACOSX_DEPLOYMENT_TARGET = 11.0
} else:macx {
QMAKE_LFLAGS+=-Wl,-ld_classic
QMAKE_INFO_PLIST = ../Mac/Info-ns.plist
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
QMAKE_MACOSX_DEPLOYMENT_TARGET = 11.0
}

win32 {
Expand Down
Loading
Loading