Skip to content

Commit 4a78aea

Browse files
committed
[WIP] Add ADS to macOS builds
1 parent 206821d commit 4a78aea

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

CI/macos/01_install_dependencies.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,35 @@ install_cef() {
119119
fi
120120
}
121121

122+
install_ads() {
123+
status "Set up dependency ADS"
124+
ensure_dir "${DEPS_BUILD_DIR}"
125+
126+
step "Clone repo..."
127+
git clone https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git ADS
128+
cd ADS
129+
130+
step "Run CMake..."
131+
cmake -S . -B build -G Ninja \
132+
-DCMAKE_BUILD_TYPE=Release \
133+
-DCMAKE_PREFIX_PATH="${DEPS_BUILD_DIR}/obs-deps" \
134+
-DCMAKE_INSTALL_PREFIX="${DEPS_BUILD_DIR}/obs-deps" \
135+
-DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET:-${CI_MACOSX_DEPLOYMENT_TARGET}} \
136+
-DCMAKE_OSX_ARCHITECTURES=${CMAKE_ARCHS} \
137+
-DBUILD_EXAMPLES=OFF \
138+
-DBUILD_STATIC=ON \
139+
${QUIET:+-Wno-deprecated -Wno-dev --log-level=ERROR}
140+
141+
step "Build ADS..."
142+
cmake --build build
143+
144+
step "Install ADS..."
145+
cmake --install build
146+
147+
ensure_dir "${DEPS_BUILD_DIR}"
148+
/usr/bin/xattr -r -d com.apple.quarantine ./obs-deps
149+
}
150+
122151
install_dependencies() {
123152
status "Install Homebrew dependencies"
124153
trap "caught_error 'install_dependencies'" ERR
@@ -139,6 +168,8 @@ install_dependencies() {
139168
FUNC_NAME="install_${1}"
140169
${FUNC_NAME} ${2} ${3} ${4}
141170
done
171+
172+
install_ads
142173
}
143174

144175
install-dependencies-standalone() {

0 commit comments

Comments
 (0)