mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Add paho.mqtt.cpp dependency
This commit is contained in:
parent
0fb11ac274
commit
4ed7f13b72
31
.github/scripts/Build-Deps-Windows.ps1
vendored
31
.github/scripts/Build-Deps-Windows.ps1
vendored
|
|
@ -219,6 +219,37 @@ function Build {
|
||||||
} else {
|
} else {
|
||||||
Log-Information "Failed to locate msbuild.exe - skipping libusb build"
|
Log-Information "Failed to locate msbuild.exe - skipping libusb build"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Push-Location -Stack BuildMqttTemp
|
||||||
|
Ensure-Location $ProjectRoot
|
||||||
|
|
||||||
|
$MqttPath = "${ProjectRoot}/deps/paho.mqtt.cpp"
|
||||||
|
$MqttBuildPath = "${MqttPath}/build"
|
||||||
|
|
||||||
|
# Explicitly disable PkgConfig and tiff as it will lead build errors
|
||||||
|
$MqttCmakeArgs = @(
|
||||||
|
"-DCMAKE_BUILD_TYPE=${Configuration}"
|
||||||
|
"-DCMAKE_PREFIX_PATH:PATH=${OBSDepPath}"
|
||||||
|
"-DCMAKE_INSTALL_PREFIX:PATH=${ADVSSDepPath}"
|
||||||
|
"-DPAHO_WITH_MQTT_C=ON"
|
||||||
|
)
|
||||||
|
|
||||||
|
Log-Information "Configuring paho.mqtt.cpp..."
|
||||||
|
Invoke-External cmake -S ${MqttPath} -B ${MqttBuildPath} @MqttCmakeArgs
|
||||||
|
|
||||||
|
$MqttCmakeArgs = @(
|
||||||
|
'--config', "${Configuration}"
|
||||||
|
)
|
||||||
|
|
||||||
|
if ( $VerbosePreference -eq 'Continue' ) {
|
||||||
|
$MqttCmakeArgs += ('--verbose')
|
||||||
|
}
|
||||||
|
|
||||||
|
Log-Information "Building paho.mqtt.cpp..."
|
||||||
|
Invoke-External cmake --build "${MqttBuildPath}" @MqttCmakeArgs
|
||||||
|
|
||||||
|
Log-Information "Install paho.mqtt.cpp..."
|
||||||
|
Invoke-External cmake --install "${MqttBuildPath}" --prefix "${ADVSSDepPath}" @MqttCmakeArgs
|
||||||
}
|
}
|
||||||
|
|
||||||
Build
|
Build
|
||||||
|
|
|
||||||
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -34,3 +34,6 @@
|
||||||
[submodule "deps/jsoncons"]
|
[submodule "deps/jsoncons"]
|
||||||
path = deps/jsoncons
|
path = deps/jsoncons
|
||||||
url = https://github.com/danielaparker/jsoncons.git
|
url = https://github.com/danielaparker/jsoncons.git
|
||||||
|
[submodule "deps/paho.mqtt.cpp"]
|
||||||
|
path = deps/paho.mqtt.cpp
|
||||||
|
url = https://github.com/eclipse-paho/paho.mqtt.cpp.git
|
||||||
|
|
|
||||||
1
deps/paho.mqtt.cpp
vendored
Submodule
1
deps/paho.mqtt.cpp
vendored
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 165476b1dc248b3f4480f05646086326e1d7d82e
|
||||||
Loading…
Reference in New Issue
Block a user