Merge branch 'master' into dev/webapp-master-update

# Conflicts:
#	libraries/networking/src/NodeList.h
#	libraries/shared/src/shared/WebRTC.h
This commit is contained in:
David Rowe 2021-10-03 12:51:47 +13:00
commit c03312319d
145 changed files with 268 additions and 137 deletions

View file

@ -46,6 +46,10 @@ jobs:
- os: ubuntu-18.04 - os: ubuntu-18.04
build_type: android build_type: android
apt-dependencies: mesa-common-dev libegl1 libglvnd-dev libdouble-conversion1 libpulse0 apt-dependencies: mesa-common-dev libegl1 libglvnd-dev libdouble-conversion1 libpulse0
# Do not change the names of self-hosted runners without knowing what you are doing, as they correspond to labels that have to be set on the runner.
- os: self-hosted_debian-11_aarch64
build_type: full
apt-dependencies: qtbase5-dev qtbase5-private-dev qtwebengine5-dev qtwebengine5-dev-tools qtmultimedia5-dev libqt5opengl5-dev qtscript5-dev libqt5scripttools5 libqt5webchannel5-dev libqt5websockets5-dev qtxmlpatterns5-dev-tools qttools5-dev libqt5xmlpatterns5-dev libqt5svg5-dev qml-module-qtwebchannel build-essential cmake curl freeglut3-dev git libasound2 libasound2-dev libdouble-conversion-dev libdrm-dev libfontconfig1 libgl1-mesa-dev libglvnd-dev libharfbuzz-dev libjack-dev libjack0 libnspr4 libnss3 libpcre2-16-0 libpulse0 libsdl2-dev libssl-dev libudev-dev libxcb-xinerama0-dev libxcb-xinput0 libxcomposite1 libxcursor1 libxi-dev libxmu-dev libxrandr-dev libxslt1.1 libxtst6 make mesa-common-dev mesa-utils nodejs npm patchelf python2 python3 python3-distro xdg-user-dirs zlib1g-dev ninja-build zip
fail-fast: false fail-fast: false
runs-on: ${{matrix.os}} runs-on: ${{matrix.os}}
if: github.event.action != 'labeled' || github.event.label.name == 'rebuild' if: github.event.action != 'labeled' || github.event.label.name == 'rebuild'
@ -59,10 +63,17 @@ jobs:
echo "APP_TARGET_NAME=$APP_NAME" >> $GITHUB_ENV echo "APP_TARGET_NAME=$APP_NAME" >> $GITHUB_ENV
# Linux build variables # Linux build variables
if [[ "${{ matrix.os }}" = "ubuntu-"* ]]; then if [[ "${{ matrix.os }}" = "ubuntu-"* || "${{ matrix.os }}" = *"debian"* ]]; then
echo "PYTHON_EXEC=python3" >> $GITHUB_ENV echo "PYTHON_EXEC=python3" >> $GITHUB_ENV
echo "INSTALLER_EXT=*" >> $GITHUB_ENV echo "INSTALLER_EXT=*" >> $GITHUB_ENV
echo "CMAKE_BUILD_EXTRA=-- -j3" >> $GITHUB_ENV echo "CMAKE_BUILD_EXTRA=-- -j$(nproc)" >> $GITHUB_ENV
if [ "${{ matrix.os }}" = "self-hosted_debian-11_aarch64" ]; then
echo "VIRCADIA_USE_SYSTEM_QT=true" >> $GITHUB_ENV
echo "CI_WORKSPACE=${{runner.workspace}}" >> $GITHUB_ENV
fi
if [[ "${{ matrix.os }}" = *"aarch64" ]]; then
echo "VCPKG_FORCE_SYSTEM_BINARIES=true" >> $GITHUB_ENV
fi
if [ "${{ matrix.build_type }}" = "full" ]; then if [ "${{ matrix.build_type }}" = "full" ]; then
echo "CMAKE_EXTRA=-DBUILD_TOOLS:BOOLEAN=FALSE -DHIFI_PYTHON_EXEC:FILEPATH=$(which python3)" >> $GITHUB_ENV echo "CMAKE_EXTRA=-DBUILD_TOOLS:BOOLEAN=FALSE -DHIFI_PYTHON_EXEC:FILEPATH=$(which python3)" >> $GITHUB_ENV
else else
@ -97,6 +108,7 @@ jobs:
mkdir $HIFI_ANDROID_PRECOMPILED mkdir $HIFI_ANDROID_PRECOMPILED
echo "INSTALLER_EXT=apk" >> $GITHUB_ENV echo "INSTALLER_EXT=apk" >> $GITHUB_ENV
fi fi
# Configuration is broken into two steps because you can't set an env var and also reference it in the same step # Configuration is broken into two steps because you can't set an env var and also reference it in the same step
- name: Configure Build Environment 2 - name: Configure Build Environment 2
shell: bash shell: bash
@ -114,8 +126,9 @@ jobs:
else else
echo "ARTIFACT_PATTERN=*.$INSTALLER_EXT" >> $GITHUB_ENV echo "ARTIFACT_PATTERN=*.$INSTALLER_EXT" >> $GITHUB_ENV
fi fi
- name: Clear Working Directory - name: Clear Working Directory
if: startsWith(matrix.os, 'windows') if: startsWith(matrix.os, 'windows') || contains(matrix.os, 'self-hosted')
shell: bash shell: bash
working-directory: ${{runner.workspace}} working-directory: ${{runner.workspace}}
run: rm -rf ./* run: rm -rf ./*
@ -123,9 +136,10 @@ jobs:
with: with:
submodules: false submodules: false
fetch-depth: 1 fetch-depth: 1
- name: Install dependencies - name: Install dependencies
shell: bash shell: bash
if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu') || contains(matrix.os, 'debian')
run: | run: |
echo "Installing Python Modules:" echo "Installing Python Modules:"
pip3 install distro || exit 1 pip3 install distro || exit 1
@ -135,13 +149,16 @@ jobs:
echo "Installing apt packages" echo "Installing apt packages"
sudo apt install -y ${{ matrix.apt-dependencies }} || exit 1 sudo apt install -y ${{ matrix.apt-dependencies }} || exit 1
- name: Create Build Environment - name: Create Build Environment
shell: bash shell: bash
run: cmake -E make_directory "${{runner.workspace}}/build" run: cmake -E make_directory "${{runner.workspace}}/build"
- name: Configure CMake - name: Configure CMake
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
shell: bash shell: bash
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVCPKG_BUILD_TYPE=release $CMAKE_EXTRA run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVCPKG_BUILD_TYPE=release $CMAKE_EXTRA
- name: Compress cmake logs - name: Compress cmake logs
if: always() if: always()
shell: bash shell: bash
@ -152,7 +169,12 @@ jobs:
TAR=tar TAR=tar
fi fi
find "$HOME/vircadia-files/vcpkg" -name '*log' -type f -print0 | $TAR --null --force-local -T - -c --xz -v -f "${{ runner.workspace }}/cmake-logs-${{ matrix.os }}-${{ github.event.number }}.tar.xz" if [ ${{ env.CI_WORKSPACE }} ]; then
find "$CI_WORKSPACE/vircadia-files/vcpkg" -name '*log' -type f -print0 | $TAR --null --force-local -T - -c --xz -v -f "${{ runner.workspace }}/cmake-logs-${{ matrix.os }}-${{ github.event.number }}.tar.xz"
else
find "$HOME/vircadia-files/vcpkg" -name '*log' -type f -print0 | $TAR --null --force-local -T - -c --xz -v -f "${{ runner.workspace }}/cmake-logs-${{ matrix.os }}-${{ github.event.number }}.tar.xz"
fi
- name: Archive cmake logs - name: Archive cmake logs
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
@ -160,26 +182,31 @@ jobs:
name: cmake-logs-${{ matrix.os }}-${{ github.event.number }}.tar.xz name: cmake-logs-${{ matrix.os }}-${{ github.event.number }}.tar.xz
path: ${{ runner.workspace }}/cmake-logs-${{ matrix.os }}-${{ github.event.number }}.tar.xz path: ${{ runner.workspace }}/cmake-logs-${{ matrix.os }}-${{ github.event.number }}.tar.xz
if-no-files-found: error if-no-files-found: error
- name: Build Application - name: Build Application
if: matrix.build_type == 'full' || matrix.build_type == 'client' if: matrix.build_type == 'full' || matrix.build_type == 'client'
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
shell: bash shell: bash
run: cmake --build . --config $BUILD_TYPE --target $APP_TARGET_NAME $CMAKE_BUILD_EXTRA run: cmake --build . --config $BUILD_TYPE --target $APP_TARGET_NAME $CMAKE_BUILD_EXTRA
- name: Build Domain Server - name: Build Domain Server
if: matrix.build_type == 'full' if: matrix.build_type == 'full'
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
shell: bash shell: bash
run: cmake --build . --config $BUILD_TYPE --target domain-server $CMAKE_BUILD_EXTRA run: cmake --build . --config $BUILD_TYPE --target domain-server $CMAKE_BUILD_EXTRA
- name: Build Assignment Client - name: Build Assignment Client
if: matrix.build_type == 'full' if: matrix.build_type == 'full'
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
shell: bash shell: bash
run: cmake --build . --config $BUILD_TYPE --target assignment-client $CMAKE_BUILD_EXTRA run: cmake --build . --config $BUILD_TYPE --target assignment-client $CMAKE_BUILD_EXTRA
- name: Build Console - name: Build Console
if: matrix.build_type == 'full' || matrix.os == 'windows-latest' if: matrix.build_type == 'full' || matrix.os == 'windows-latest'
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
shell: bash shell: bash
run: cmake --build . --config $BUILD_TYPE --target packaged-server-console $CMAKE_BUILD_EXTRA run: cmake --build . --config $BUILD_TYPE --target packaged-server-console $CMAKE_BUILD_EXTRA
- name: Build Installer - name: Build Installer
if: matrix.build_type != 'android' if: matrix.build_type != 'android'
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
@ -218,6 +245,7 @@ jobs:
working-directory: ${{runner.workspace}}/vircadia working-directory: ${{runner.workspace}}/vircadia
run: | run: |
/usr/local/lib/android/sdk/tools/bin/sdkmanager --uninstall 'cmake;3.18.1' /usr/local/lib/android/sdk/tools/bin/sdkmanager --uninstall 'cmake;3.18.1'
- name: Build for Android + Quest - name: Build for Android + Quest
if: matrix.build_type == 'android' if: matrix.build_type == 'android'
shell: bash shell: bash
@ -230,6 +258,7 @@ jobs:
./gradlew -m tasks -PHIFI_ANDROID_PRECOMPILED=$HIFI_ANDROID_PRECOMPILED ./gradlew -m tasks -PHIFI_ANDROID_PRECOMPILED=$HIFI_ANDROID_PRECOMPILED
# Build! # Build!
./build_android.sh ./build_android.sh
- name: Output system stats - name: Output system stats
if: ${{ always() }} if: ${{ always() }}
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
@ -237,11 +266,13 @@ jobs:
run: | run: |
echo "Disk usage:" echo "Disk usage:"
df -h df -h
- name: Output Installer Logs - name: Output Installer Logs
if: failure() && matrix.os == 'windows-latest' if: failure() && matrix.os == 'windows-latest'
shell: bash shell: bash
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
run: cat ./_CPack_Packages/win64/NSIS/NSISOutput.log run: cat ./_CPack_Packages/win64/NSIS/NSISOutput.log
- name: Upload Artifact - name: Upload Artifact
shell: bash shell: bash
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build

View file

@ -19,6 +19,8 @@ module.exports = {
"ignoreLabels": [ "ignoreLabels": [
"enhancement", "enhancement",
"bugfix", "bugfix",
"CMake",
"unmerged-dev",
"CR Approved", "CR Approved",
"QA Approved", "QA Approved",
"allow-build-upload", "allow-build-upload",
@ -33,11 +35,12 @@ module.exports = {
"rebuild", "rebuild",
"merge right before snip" "merge right before snip"
], ],
"onlyMilestones": true, "onlyMilestones": false,
"groupBy": { "groupBy": {
"Enhancements": ["enhancement"], "Enhancements": ["enhancement"],
"Bug Fixes": ["bugfix"], "Bug Fixes": ["bugfix"],
"Docs": ["docs"] "Docs": ["docs"],
"In Development": ["unmerged-dev"]
}, },
"changelogFilename": "CHANGELOG.md" "changelogFilename": "CHANGELOG.md"
} }

View file

@ -17,6 +17,7 @@
#include <QtScript/QScriptEngine> #include <QtScript/QScriptEngine>
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QUrl> #include <QtCore/QUrl>
#include <QtCore/QTimer> #include <QtCore/QTimer>
#include <QUuid> #include <QUuid>

View file

@ -15,6 +15,7 @@
#include <QtCore/QCoreApplication> #include <QtCore/QCoreApplication>
#include <QtCore/QPointer> #include <QtCore/QPointer>
#include <QtCore/QSharedPointer>
#include <shared/WebRTC.h> #include <shared/WebRTC.h>

View file

@ -17,6 +17,7 @@
#include <QtCore/qpointer.h> #include <QtCore/qpointer.h>
#include <QtCore/QProcess> #include <QtCore/QProcess>
#include <QtCore/QDateTime> #include <QtCore/QDateTime>
#include <QtCore/QSharedPointer>
#include <QDir> #include <QDir>
#include <Assignment.h> #include <Assignment.h>

View file

@ -13,6 +13,7 @@
#define hifi_AssetServer_h #define hifi_AssetServer_h
#include <QtCore/QDir> #include <QtCore/QDir>
#include <QtCore/QSharedPointer>
#include <QtCore/QThreadPool> #include <QtCore/QThreadPool>
#include <QRunnable> #include <QRunnable>

View file

@ -12,6 +12,8 @@
#ifndef hifi_AudioMixer_h #ifndef hifi_AudioMixer_h
#define hifi_AudioMixer_h #define hifi_AudioMixer_h
#include <QtCore/QSharedPointer>
#include <AABox.h> #include <AABox.h>
#include <AudioHRTF.h> #include <AudioHRTF.h>
#include <AudioRingBuffer.h> #include <AudioRingBuffer.h>

View file

@ -20,6 +20,7 @@
#endif #endif
#include <QtCore/QJsonObject> #include <QtCore/QJsonObject>
#include <QtCore/QSharedPointer>
#include <AABox.h> #include <AABox.h>
#include <AudioHRTF.h> #include <AudioHRTF.h>

View file

@ -23,9 +23,7 @@ public:
AvatarAudioStream(bool isStereo, int numStaticJitterFrames = -1); AvatarAudioStream(bool isStereo, int numStaticJitterFrames = -1);
private: private:
// disallow copying of AvatarAudioStream objects Q_DISABLE_COPY(AvatarAudioStream)
AvatarAudioStream(const AvatarAudioStream&);
AvatarAudioStream& operator= (const AvatarAudioStream&);
int parseStreamProperties(PacketType type, const QByteArray& packetAfterSeqNum, int& numAudioSamples) override; int parseStreamProperties(PacketType type, const QByteArray& packetAfterSeqNum, int& numAudioSamples) override;
}; };

View file

@ -16,6 +16,8 @@
#ifndef hifi_AvatarMixer_h #ifndef hifi_AvatarMixer_h
#define hifi_AvatarMixer_h #define hifi_AvatarMixer_h
#include <QtCore/QSharedPointer>
#include <set> #include <set>
#include <shared/RateCounter.h> #include <shared/RateCounter.h>
#include <PortableHighResolutionClock.h> #include <PortableHighResolutionClock.h>

View file

@ -19,6 +19,7 @@
#include <queue> #include <queue>
#include <QtCore/QJsonObject> #include <QtCore/QJsonObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QUrl> #include <QtCore/QUrl>
#include "MixerAvatar.h" #include "MixerAvatar.h"

View file

@ -14,6 +14,8 @@
#include "../octree/OctreeServer.h" #include "../octree/OctreeServer.h"
#include <QtCore/QSharedPointer>
#include <memory> #include <memory>
#include <EntityItem.h> #include <EntityItem.h>

View file

@ -15,6 +15,8 @@
#ifndef hifi_MessagesMixer_h #ifndef hifi_MessagesMixer_h
#define hifi_MessagesMixer_h #define hifi_MessagesMixer_h
#include <QtCore/QSharedPointer>
#include <ThreadedAssignment.h> #include <ThreadedAssignment.h>
/// Handles assignments of type MessagesMixer - distribution of avatar data to various clients /// Handles assignments of type MessagesMixer - distribution of avatar data to various clients

View file

@ -12,6 +12,8 @@
#ifndef hifi_OctreeHeadlessViewer_h #ifndef hifi_OctreeHeadlessViewer_h
#define hifi_OctreeHeadlessViewer_h #define hifi_OctreeHeadlessViewer_h
#include <QtCore/QSharedPointer>
#include <OctreeProcessor.h> #include <OctreeProcessor.h>
#include <OctreeQuery.h> #include <OctreeQuery.h>

View file

@ -14,6 +14,8 @@
#ifndef hifi_OctreeInboundPacketProcessor_h #ifndef hifi_OctreeInboundPacketProcessor_h
#define hifi_OctreeInboundPacketProcessor_h #define hifi_OctreeInboundPacketProcessor_h
#include <QtCore/QSharedPointer>
#include <ReceivedPacketProcessor.h> #include <ReceivedPacketProcessor.h>
#include "SequenceNumberStats.h" #include "SequenceNumberStats.h"

View file

@ -17,6 +17,7 @@
#include <QStringList> #include <QStringList>
#include <QDateTime> #include <QDateTime>
#include <QtCore/QCoreApplication> #include <QtCore/QCoreApplication>
#include <QtCore/QSharedPointer>
#include <HTTPManager.h> #include <HTTPManager.h>

View file

@ -16,6 +16,7 @@
#include <vector> #include <vector>
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QUuid> #include <QtCore/QUuid>
#include <EntityEditPacketSender.h> #include <EntityEditPacketSender.h>

View file

@ -13,6 +13,9 @@ macro(TARGET_WEBRTC)
# set(WEBRTC_LIBRARY_DEBUG ${INSTALL_DIR}/debug/lib/libwebrtc.a) # set(WEBRTC_LIBRARY_DEBUG ${INSTALL_DIR}/debug/lib/libwebrtc.a)
# set(WEBRTC_LIBRARY_RELEASE ${INSTALL_DIR}/lib/libwebrtc.a) # set(WEBRTC_LIBRARY_RELEASE ${INSTALL_DIR}/lib/libwebrtc.a)
# select_library_configurations(WEBRTC) # select_library_configurations(WEBRTC)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
# WebRTC is basically impossible to build on aarch64 Linux.
# I am looking at https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing for an alternative.
else() else()
set(WEBRTC_INCLUDE_DIRS "${VCPKG_INSTALL_ROOT}/include/webrtc") set(WEBRTC_INCLUDE_DIRS "${VCPKG_INSTALL_ROOT}/include/webrtc")
target_include_directories(${TARGET_NAME} SYSTEM PUBLIC ${WEBRTC_INCLUDE_DIRS}) target_include_directories(${TARGET_NAME} SYSTEM PUBLIC ${WEBRTC_INCLUDE_DIRS})

View file

@ -1,4 +1,4 @@
Source: hifi-deps Source: hifi-deps
Version: 0.1.5-github-actions Version: 0.1.5-github-actions
Description: Collected dependencies for High Fidelity applications Description: Collected dependencies for High Fidelity applications
Build-Depends: bullet3, draco, etc2comp, glad, glm, nvtt, openexr (!android), openssl (windows), opus, polyvox, tbb (!android), vhacd, webrtc (!android), zlib Build-Depends: bullet3, draco, etc2comp, glad, glm, nvtt, openexr (!android), openssl (windows), opus, polyvox, tbb (!android), vhacd, webrtc (!android|!(linux&arm)), zlib

View file

@ -1,3 +1,3 @@
Source: openvr Source: openvr
Version: 1.0.16 Version: 1.16.8
Description: an API and runtime that allows access to VR hardware from multiple vendors without requiring that applications have specific knowledge of the hardware they are targeting. Description: an API and runtime that allows access to VR hardware from multiple vendors without requiring that applications have specific knowledge of the hardware they are targeting.

View file

@ -3,8 +3,8 @@ include(vcpkg_common_functions)
vcpkg_from_github( vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO ValveSoftware/openvr REPO ValveSoftware/openvr
REF v1.11.11 REF v1.16.8
SHA512 25bddb0e82eea091fe5101d0d3de1de7bb81b4504adc0c8d8e687d2502c0167bc5a11e68bc343d7563fb4db7c917e9d0e2ea99bc1d8016d479874b0c6bd7f121 SHA512 bc65fd2fc2aab870c7fee98f5211b7d88cd30511ce5b23fa2ac05454969b6ee56b42e422e44a16a833b317bb1328e0ed986c926e3d78abddf5fd5788ff74de91
HEAD_REF master HEAD_REF master
) )

View file

@ -20,6 +20,7 @@
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtNetwork/QNetworkReply> #include <QtNetwork/QNetworkReply>
#include <QtCore/QSharedPointer>
#include <DomainHandler.h> #include <DomainHandler.h>

View file

@ -17,6 +17,7 @@
#include <QtCore/QJsonObject> #include <QtCore/QJsonObject>
#include <QtCore/QJsonDocument> #include <QtCore/QJsonDocument>
#include <QtNetwork/QNetworkReply> #include <QtNetwork/QNetworkReply>
#include <QtCore/QSharedPointer>
#include <HifiConfigVariantMap.h> #include <HifiConfigVariantMap.h>
#include <HTTPManager.h> #include <HTTPManager.h>

View file

@ -169,11 +169,9 @@ endif()
elif distro.id() == 'debian': elif distro.id() == 'debian':
u_major = int( distro.major_version() ) u_major = int( distro.major_version() )
u_minor = int( distro.minor_version() )
if u_major == 10: if u_major == 10:
#self.qtUrl = self.assets_url + '/dependencies/vcpkg/qt5-install-5.12.3-ubuntu-16.04-with-symbols.tar.gz' self.qtUrl = 'https://data.moto9000.moe/vircadia_packages/qt5-install-5.15.2-debian-10-aarch64.tar.xz'
self.__no_qt_package_error()
elif u_major > 10: elif u_major > 10:
self.__no_qt_package_error() self.__no_qt_package_error()
else: else:

View file

@ -61,7 +61,10 @@ endif()
self.noClean = True self.noClean = True
else: else:
defaultBasePath = os.path.expanduser('~/vircadia-files/vcpkg') defaultBasePath = os.path.expanduser('~/vircadia-files/vcpkg')
self.basePath = os.getenv('HIFI_VCPKG_BASE', defaultBasePath) if 'CI_WORKSPACE' in os.environ:
self.basePath = os.path.join(os.getenv('CI_WORKSPACE'), 'vircadia-files/vcpkg')
else:
self.basePath = os.getenv('HIFI_VCPKG_BASE', defaultBasePath)
if self.args.android: if self.args.android:
self.basePath = os.path.join(self.basePath, 'android') self.basePath = os.path.join(self.basePath, 'android')
if (not os.path.isdir(self.basePath)): if (not os.path.isdir(self.basePath)):
@ -109,8 +112,8 @@ endif()
elif 'Linux' == system and 'aarch64' == machine: elif 'Linux' == system and 'aarch64' == machine:
self.exe = os.path.join(self.path, 'vcpkg') self.exe = os.path.join(self.path, 'vcpkg')
self.bootstrapCmds = [ os.path.join(self.path, 'bootstrap-vcpkg.sh'), '-disableMetrics' ] self.bootstrapCmds = [ os.path.join(self.path, 'bootstrap-vcpkg.sh'), '-disableMetrics' ]
self.vcpkgUrl = 'http://motofckr9k.ddns.net/vircadia_packages/vcpkg-2020.11-1_arm64.tar.xz' self.vcpkgUrl = self.assets_url + '/dependencies/vcpkg/vcpkg-linux_aarch64_2021.05.12.tar.xz'
self.vcpkgHash = 'f39fa1c34d2ba820954b8ce4acc05e3d0ce5fa5efe5440516ba910ff222c85c658ba4bbfc92b3fa6cbb594f99be115cda69ebe44ed38d4d3988058fb1faefbb3' self.vcpkgHash = '7abb7aa96200e3cb5a6d0ec1c6ee63aa7886df2d1fecf8f9ee41ebe4d2cea0d4143274222c4941cb7aca61e4048229fdfe9eb2cd36dd559dd26db871a3b3ed61'
self.hostTriplet = 'arm64-linux' self.hostTriplet = 'arm64-linux'
else: else:
self.exe = os.path.join(self.path, 'vcpkg') self.exe = os.path.join(self.path, 'vcpkg')

View file

@ -20,6 +20,7 @@
#include <QtCore/QTimer> #include <QtCore/QTimer>
#include <QtNetwork/QNetworkReply> #include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkRequest> #include <QtNetwork/QNetworkRequest>
#include <QtCore/QSharedPointer>
#include <LimitedNodeList.h> #include <LimitedNodeList.h>
#include <NetworkAccessManager.h> #include <NetworkAccessManager.h>

View file

@ -14,7 +14,6 @@
#define hifi_IceServer_h #define hifi_IceServer_h
#include <QtCore/QCoreApplication> #include <QtCore/QCoreApplication>
#include <QtCore/QSharedPointer>
#include <QUdpSocket> #include <QUdpSocket>
#include <openssl/rsa.h> #include <openssl/rsa.h>

View file

@ -236,7 +236,7 @@ target_openssl()
target_bullet() target_bullet()
set(OpenGL_GL_PREFERENCE "LEGACY") set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl() target_opengl()
add_crashpad() add_crashpad()
target_breakpad() target_breakpad()

View file

@ -18,6 +18,7 @@
#include <QtCore/QHash> #include <QtCore/QHash>
#include <QtCore/QPointer> #include <QtCore/QPointer>
#include <QtCore/QSet> #include <QtCore/QSet>
#include <QtCore/QSharedPointer>
#include <QtCore/QStringList> #include <QtCore/QStringList>
#include <QtQuick/QQuickItem> #include <QtQuick/QQuickItem>
@ -647,7 +648,7 @@ private:
EntityTreePointer _entityClipboard; EntityTreePointer _entityClipboard;
mutable QMutex _viewMutex { QMutex::Recursive }; mutable QRecursiveMutex _viewMutex;
ViewFrustum _viewFrustum; // current state of view frustum, perspective, orientation, etc. ViewFrustum _viewFrustum; // current state of view frustum, perspective, orientation, etc.
ViewFrustum _displayViewFrustum; ViewFrustum _displayViewFrustum;
@ -773,7 +774,7 @@ private:
bool _isMissingSequenceNumbers { false }; bool _isMissingSequenceNumbers { false };
void checkChangeCursor(); void checkChangeCursor();
mutable QMutex _changeCursorLock { QMutex::Recursive }; mutable QRecursiveMutex _changeCursorLock;
Qt::CursorShape _desiredCursor{ Qt::BlankCursor }; Qt::CursorShape _desiredCursor{ Qt::BlankCursor };
bool _cursorNeedsChanging { false }; bool _cursorNeedsChanging { false };

View file

@ -11,6 +11,8 @@
#include "InterfaceParentFinder.h" #include "InterfaceParentFinder.h"
#include <QtCore/QSharedPointer>
#include <Application.h> #include <Application.h>
#include <AvatarData.h> #include <AvatarData.h>
#include <avatar/AvatarManager.h> #include <avatar/AvatarManager.h>

View file

@ -11,7 +11,6 @@
#ifndef hifi_LoginStateManager_h #ifndef hifi_LoginStateManager_h
#define hifi_LoginStateManager_h #define hifi_LoginStateManager_h
#include <QtCore/QList> #include <QtCore/QList>
#include <QtCore/QSharedPointer>
#include <QtCore/QVariant> #include <QtCore/QVariant>
#include <PointerEvent.h> #include <PointerEvent.h>

View file

@ -16,7 +16,6 @@
#include <QtCore/QHash> #include <QtCore/QHash>
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <AvatarHashMap.h> #include <AvatarHashMap.h>
#include <PhysicsEngine.h> #include <PhysicsEngine.h>

View file

@ -11,6 +11,7 @@
#include "GrabManager.h" #include "GrabManager.h"
#include <QtCore/QSharedPointer>
void GrabManager::simulateGrabs() { void GrabManager::simulateGrabs() {
QSharedPointer<AvatarManager> avatarManager = DependencyManager::get<AvatarManager>(); QSharedPointer<AvatarManager> avatarManager = DependencyManager::get<AvatarManager>();

View file

@ -22,9 +22,7 @@ public:
void simulate(float deltaTime) override; void simulate(float deltaTime) override;
private: private:
// disallow copies of the Head, copy of owning Avatar is disallowed too Q_DISABLE_COPY(MyHead)
MyHead(const Head&);
MyHead& operator= (const MyHead&);
}; };
#endif // hifi_MyHead_h #endif // hifi_MyHead_h

View file

@ -14,6 +14,8 @@
#ifndef hifi_Wallet_h #ifndef hifi_Wallet_h
#define hifi_Wallet_h #define hifi_Wallet_h
#include <QtCore/QSharedPointer>
#include <DependencyManager.h> #include <DependencyManager.h>
#include <Node.h> #include <Node.h>
#include <ReceivedMessage.h> #include <ReceivedMessage.h>

View file

@ -69,7 +69,7 @@ private:
protected: protected:
mutable QMutex _renderArgsMutex{ QMutex::Recursive }; mutable QRecursiveMutex _renderArgsMutex;
AppRenderArgs _appRenderArgs; AppRenderArgs _appRenderArgs;
RateCounter<500> _renderLoopCounter; RateCounter<500> _renderLoopCounter;

View file

@ -12,6 +12,8 @@
#ifndef hifi_OctreePacketProcessor_h #ifndef hifi_OctreePacketProcessor_h
#define hifi_OctreePacketProcessor_h #define hifi_OctreePacketProcessor_h
#include <QtCore/QSharedPointer>
#include <ReceivedPacketProcessor.h> #include <ReceivedPacketProcessor.h>
#include <ReceivedMessage.h> #include <ReceivedMessage.h>

View file

@ -8,6 +8,8 @@
#ifndef hifi_CollisionPick_h #ifndef hifi_CollisionPick_h
#define hifi_CollisionPick_h #define hifi_CollisionPick_h
#include <QtCore/QSharedPointer>
#include <PhysicsEngine.h> #include <PhysicsEngine.h>
#include <model-networking/ModelCache.h> #include <model-networking/ModelCache.h>
#include <RegisteredMetaTypes.h> #include <RegisteredMetaTypes.h>

View file

@ -16,6 +16,7 @@
#include <QProcess> #include <QProcess>
#include <QtCore/QCoreApplication> #include <QtCore/QCoreApplication>
#include <QNetworkReply> #include <QNetworkReply>
#include <QtCore/QSharedPointer>
#include <PathUtils.h> #include <PathUtils.h>
#include <ReceivedMessage.h> #include <ReceivedMessage.h>

View file

@ -14,6 +14,7 @@
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QMap> #include <QtCore/QMap>
#include <QtCore/QSharedPointer>
#include <DependencyManager.h> #include <DependencyManager.h>
#include <AbstractViewStateInterface.h> #include <AbstractViewStateInterface.h>

View file

@ -10,6 +10,7 @@
// //
#include "WalletScriptingInterface.h" #include "WalletScriptingInterface.h"
#include <QtCore/QSharedPointer>
#include <SettingHandle.h> #include <SettingHandle.h>
CheckoutProxy::CheckoutProxy(QObject* qmlObject, QObject* parent) : QmlWrapper(qmlObject, parent) { CheckoutProxy::CheckoutProxy(QObject* qmlObject, QObject* parent) : QmlWrapper(qmlObject, parent) {

View file

@ -14,7 +14,6 @@
#include <QFutureWatcher> #include <QFutureWatcher>
#include <QObject> #include <QObject>
#include <QSharedPointer>
#include <QCompleter> #include <QCompleter>
#include <QtCore/QJsonArray> #include <QtCore/QJsonArray>

View file

@ -12,6 +12,7 @@
#ifndef hifi_SnapshotAnimated_h #ifndef hifi_SnapshotAnimated_h
#define hifi_SnapshotAnimated_h #define hifi_SnapshotAnimated_h
#include <QtCore/QSharedPointer>
#include <QtCore/QVector> #include <QtCore/QVector>
#include <Application.h> #include <Application.h>
#include <DependencyManager.h> #include <DependencyManager.h>

View file

@ -15,6 +15,7 @@
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QUuid> #include <QUuid>
#include <QtCore/QSharedPointer>
#include <DependencyManager.h> #include <DependencyManager.h>
#include <PointerEvent.h> #include <PointerEvent.h>

View file

@ -746,7 +746,7 @@ signals:
private: private:
void cleanupOverlaysToDelete(); void cleanupOverlaysToDelete();
mutable QMutex _mutex { QMutex::Recursive }; mutable QRecursiveMutex _mutex;
QMap<QUuid, Overlay::Pointer> _overlays; QMap<QUuid, Overlay::Pointer> _overlays;
QList<Overlay::Pointer> _overlaysToDelete; QList<Overlay::Pointer> _overlaysToDelete;

View file

@ -14,6 +14,7 @@
#include <memory> #include <memory>
#include <QNetworkReply> #include <QNetworkReply>
#include <QtCore/QSharedPointer>
#include <QString> #include <QString>
#include <QUrl> #include <QUrl>
@ -44,10 +45,7 @@ protected:
QSharedPointer<Resource> _resource; QSharedPointer<Resource> _resource;
private: private:
Q_DISABLE_COPY(AnimNodeLoader)
// no copies
AnimNodeLoader(const AnimNodeLoader&) = delete;
AnimNodeLoader& operator=(const AnimNodeLoader&) = delete;
}; };
#endif // hifi_AnimNodeLoader #endif // hifi_AnimNodeLoader

View file

@ -120,9 +120,7 @@ protected:
std::vector<Transition> _transitions; std::vector<Transition> _transitions;
private: private:
// no copies Q_DISABLE_COPY(RandomSwitchState)
RandomSwitchState(const RandomSwitchState&) = delete;
RandomSwitchState& operator=(const RandomSwitchState&) = delete;
}; };
public: public:
@ -181,9 +179,7 @@ protected:
QString _lastPlayedState; QString _lastPlayedState;
private: private:
// no copies Q_DISABLE_COPY(AnimRandomSwitch)
AnimRandomSwitch(const AnimRandomSwitch&) = delete;
AnimRandomSwitch& operator=(const AnimRandomSwitch&) = delete;
}; };
#endif // hifi_AnimRandomSwitch_h #endif // hifi_AnimRandomSwitch_h

View file

@ -107,9 +107,7 @@ protected:
std::vector<Transition> _transitions; std::vector<Transition> _transitions;
private: private:
// no copies Q_DISABLE_COPY(State)
State(const State&) = delete;
State& operator=(const State&) = delete;
}; };
public: public:
@ -152,9 +150,7 @@ protected:
QString _currentStateVar; QString _currentStateVar;
private: private:
// no copies Q_DISABLE_COPY(AnimStateMachine)
AnimStateMachine(const AnimStateMachine&) = delete;
AnimStateMachine& operator=(const AnimStateMachine&) = delete;
}; };
#endif // hifi_AnimStateMachine_h #endif // hifi_AnimStateMachine_h

View file

@ -13,6 +13,7 @@
#define hifi_AnimationCache_h #define hifi_AnimationCache_h
#include <QtCore/QRunnable> #include <QtCore/QRunnable>
#include <QtCore/QSharedPointer>
#include <QtScript/QScriptEngine> #include <QtScript/QScriptEngine>
#include <QtScript/QScriptValue> #include <QtScript/QScriptValue>

View file

@ -24,6 +24,7 @@
#include <QtCore/QByteArray> #include <QtCore/QByteArray>
#include <QtCore/QElapsedTimer> #include <QtCore/QElapsedTimer>
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QVector> #include <QtCore/QVector>
#include <QtMultimedia/QAudio> #include <QtMultimedia/QAudio>
#include <QtMultimedia/QAudioFormat> #include <QtMultimedia/QAudioFormat>

View file

@ -15,6 +15,7 @@
#include "MovingMinMaxAvg.h" #include "MovingMinMaxAvg.h"
#include <QObject> #include <QObject>
#include <QtCore/QSharedPointer>
#include <AudioStreamStats.h> #include <AudioStreamStats.h>
#include <Node.h> #include <Node.h>

View file

@ -8,8 +8,6 @@
#include "AbstractAudioInterface.h" #include "AbstractAudioInterface.h"
#include <QtCore/QSharedPointer>
#include <Node.h> #include <Node.h>
#include <NodeType.h> #include <NodeType.h>
#include <DependencyManager.h> #include <DependencyManager.h>

View file

@ -12,6 +12,7 @@
#include "AudioInjectorManager.h" #include "AudioInjectorManager.h"
#include <QtCore/QCoreApplication> #include <QtCore/QCoreApplication>
#include <QtCore/QSharedPointer>
#include <SharedUtil.h> #include <SharedUtil.h>
#include <shared/QtHelpers.h> #include <shared/QtHelpers.h>

View file

@ -72,8 +72,7 @@ private:
bool wouldExceedLimits(); bool wouldExceedLimits();
AudioInjectorManager() { createThread(); } AudioInjectorManager() { createThread(); }
AudioInjectorManager(const AudioInjectorManager&) = delete; Q_DISABLE_COPY(AudioInjectorManager)
AudioInjectorManager& operator=(const AudioInjectorManager&) = delete;
void createThread(); void createThread();

View file

@ -28,9 +28,7 @@ public:
virtual const QUuid& getStreamIdentifier() const override { return _streamIdentifier; } virtual const QUuid& getStreamIdentifier() const override { return _streamIdentifier; }
private: private:
// disallow copying of InjectedAudioStream objects Q_DISABLE_COPY(InjectedAudioStream)
InjectedAudioStream(const InjectedAudioStream&);
InjectedAudioStream& operator= (const InjectedAudioStream&);
AudioStreamStats getAudioStreamStats() const override; AudioStreamStats getAudioStreamStats() const override;
int parseStreamProperties(PacketType type, const QByteArray& packetAfterSeqNum, int& numAudioSamples) override; int parseStreamProperties(PacketType type, const QByteArray& packetAfterSeqNum, int& numAudioSamples) override;

View file

@ -14,6 +14,7 @@
#include <QRunnable> #include <QRunnable>
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtNetwork/QNetworkReply> #include <QtNetwork/QNetworkReply>
#include <QtScript/qscriptengine.h> #include <QtScript/qscriptengine.h>

View file

@ -12,6 +12,8 @@
#ifndef hifi_SoundCache_h #ifndef hifi_SoundCache_h
#define hifi_SoundCache_h #define hifi_SoundCache_h
#include <QtCore/QSharedPointer>
#include <ResourceCache.h> #include <ResourceCache.h>
#include "Sound.h" #include "Sound.h"

View file

@ -1887,11 +1887,10 @@ protected:
virtual void clearAvatarGrabData(const QUuid& grabID); virtual void clearAvatarGrabData(const QUuid& grabID);
private: private:
Q_DISABLE_COPY(AvatarData)
friend void avatarStateFromFrame(const QByteArray& frameData, AvatarData* _avatar); friend void avatarStateFromFrame(const QByteArray& frameData, AvatarData* _avatar);
static QUrl _defaultFullAvatarModelUrl; static QUrl _defaultFullAvatarModelUrl;
// privatize the copy constructor and assignment operator so they cannot be called
AvatarData(const AvatarData&);
AvatarData& operator= (const AvatarData&);
}; };
Q_DECLARE_METATYPE(AvatarData*) Q_DECLARE_METATYPE(AvatarData*)

View file

@ -12,6 +12,8 @@
#ifndef hifi_ClientTraitsHandler_h #ifndef hifi_ClientTraitsHandler_h
#define hifi_ClientTraitsHandler_h #define hifi_ClientTraitsHandler_h
#include <QtCore/QSharedPointer>
#include <ReceivedMessage.h> #include <ReceivedMessage.h>
#include "AssociatedTraitValues.h" #include "AssociatedTraitValues.h"

View file

@ -128,9 +128,7 @@ protected:
AvatarData* _owningAvatar; AvatarData* _owningAvatar;
private: private:
// privatize copy ctor and assignment operator so copies of this object cannot be made Q_DISABLE_COPY(HeadData)
HeadData(const HeadData&);
HeadData& operator= (const HeadData&);
void setHeadOrientation(const glm::quat& orientation); void setHeadOrientation(const glm::quat& orientation);
}; };

View file

@ -12,6 +12,8 @@
#ifndef hifi_MaterialBaker_h #ifndef hifi_MaterialBaker_h
#define hifi_MaterialBaker_h #define hifi_MaterialBaker_h
#include <QtCore/QSharedPointer>
#include "Baker.h" #include "Baker.h"
#include "TextureBaker.h" #include "TextureBaker.h"

View file

@ -17,6 +17,7 @@
#include <QtCore/QUrl> #include <QtCore/QUrl>
#include <QtNetwork/QNetworkReply> #include <QtNetwork/QNetworkReply>
#include <QJsonArray> #include <QJsonArray>
#include <QtCore/QSharedPointer>
#include "Baker.h" #include "Baker.h"
#include "MaterialBaker.h" #include "MaterialBaker.h"

View file

@ -13,7 +13,7 @@ include_hifi_library_headers(ktx)
include_hifi_library_headers(render) include_hifi_library_headers(render)
include_hifi_library_headers(procedural) include_hifi_library_headers(procedural)
set(OpenGL_GL_PREFERENCE "LEGACY") set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl() target_opengl()
GroupSources("src/display-plugins") GroupSources("src/display-plugins")

View file

@ -161,7 +161,7 @@ private:
// application specific position, when it's in desktop mode, the reticle position will simply move // application specific position, when it's in desktop mode, the reticle position will simply move
// the system mouse. // the system mouse.
glm::vec2 _reticlePositionInHMD { 0.0f, 0.0f }; glm::vec2 _reticlePositionInHMD { 0.0f, 0.0f };
mutable QMutex _reticleLock { QMutex::Recursive }; mutable QRecursiveMutex _reticleLock;
QPointF _lastKnownRealMouse; QPointF _lastKnownRealMouse;
bool _ignoreMouseMove { false }; bool _ignoreMouseMove { false };

View file

@ -14,6 +14,7 @@
#include <QtCore/QCoreApplication> #include <QtCore/QCoreApplication>
#include <QtCore/QBuffer> #include <QtCore/QBuffer>
#include <QtCore/QSharedPointer>
#include <QtCore/QThread> #include <QtCore/QThread>
#include <QtCore/QTimer> #include <QtCore/QTimer>
#include <QtCore/QFileInfo> #include <QtCore/QFileInfo>

View file

@ -15,6 +15,7 @@
#include <QtCore/QSet> #include <QtCore/QSet>
#include <QtCore/QStack> #include <QtCore/QStack>
#include <QtGui/QMouseEvent> #include <QtGui/QMouseEvent>
#include <QtCore/QSharedPointer>
#include <AudioInjectorManager.h> #include <AudioInjectorManager.h>
#include <EntityScriptingInterface.h> // for RayToEntityIntersectionResult #include <EntityScriptingInterface.h> // for RayToEntityIntersectionResult

View file

@ -10,6 +10,7 @@
#ifndef hifi_RenderableWebEntityItem_h #ifndef hifi_RenderableWebEntityItem_h
#define hifi_RenderableWebEntityItem_h #define hifi_RenderableWebEntityItem_h
#include <QtCore/QSharedPointer>
#include <WebEntityItem.h> #include <WebEntityItem.h>
#include "RenderableEntityItem.h" #include "RenderableEntityItem.h"

View file

@ -12,6 +12,8 @@
#ifndef hifi_EntityEditPacketSender_h #ifndef hifi_EntityEditPacketSender_h
#define hifi_EntityEditPacketSender_h #define hifi_EntityEditPacketSender_h
#include <QtCore/QSharedPointer>
#include <OctreeEditPacketSender.h> #include <OctreeEditPacketSender.h>
#include <mutex> #include <mutex>

View file

@ -688,8 +688,8 @@ EntityPropertyFlags EntityItemProperties::getChangedProperties() const {
* @property {Uuid} owningAvatarID=Uuid.NULL - The session ID of the owning avatar if <code>avatarEntity</code> is * @property {Uuid} owningAvatarID=Uuid.NULL - The session ID of the owning avatar if <code>avatarEntity</code> is
* <code>true</code>, otherwise {@link Uuid(0)|Uuid.NULL}. <em>Read-only.</em> * <code>true</code>, otherwise {@link Uuid(0)|Uuid.NULL}. <em>Read-only.</em>
* *
* @property {string} created - The UTC date and time that the entity was created, in ISO 8601 format as * @property {number} created - When the entity was created, expressed as the number of microseconds since
* <code>yyyy-MM-ddTHH:mm:ssZ</code>. <em>Read-only.</em> * 1970-01-01T00:00:00 UTC. <em>Read-only.</em>
* @property {number} age - The age of the entity in seconds since it was created. <em>Read-only.</em> * @property {number} age - The age of the entity in seconds since it was created. <em>Read-only.</em>
* @property {string} ageAsText - The age of the entity since it was created, formatted as <code>h hours m minutes s * @property {string} ageAsText - The age of the entity since it was created, formatted as <code>h hours m minutes s
* seconds</code>. * seconds</code>.

View file

@ -13,6 +13,7 @@
#define hifi_EntityScriptServerLogClient_h #define hifi_EntityScriptServerLogClient_h
#include <QObject> #include <QObject>
#include <QtCore/QSharedPointer>
#include <NodeList.h> #include <NodeList.h>

View file

@ -17,6 +17,7 @@
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QStringList> #include <QtCore/QStringList>
#include <QtCore/QSharedPointer>
#include <QtQml/QJSValue> #include <QtQml/QJSValue>
#include <QtQml/QJSValueList> #include <QtQml/QJSValueList>

View file

@ -44,7 +44,7 @@ const int DIRTY_SIMULATION_FLAGS =
class EntitySimulation : public QObject, public std::enable_shared_from_this<EntitySimulation> { class EntitySimulation : public QObject, public std::enable_shared_from_this<EntitySimulation> {
public: public:
EntitySimulation() : _mutex(QMutex::Recursive), _nextExpiry(std::numeric_limits<uint64_t>::max()), _entityTree(nullptr) { } EntitySimulation() : _mutex(), _nextExpiry(std::numeric_limits<uint64_t>::max()), _entityTree(nullptr) { }
virtual ~EntitySimulation() { setEntityTree(nullptr); } virtual ~EntitySimulation() { setEntityTree(nullptr); }
inline EntitySimulationPointer getThisPointer() const { inline EntitySimulationPointer getThisPointer() const {
@ -90,7 +90,7 @@ protected:
void callUpdateOnEntitiesThatNeedIt(uint64_t now); void callUpdateOnEntitiesThatNeedIt(uint64_t now);
virtual void sortEntitiesThatMoved(); virtual void sortEntitiesThatMoved();
QMutex _mutex{ QMutex::Recursive }; QRecursiveMutex _mutex;
SetOfEntities _entitiesToSort; // entities moved by simulation (and might need resort in EntityTree) SetOfEntities _entitiesToSort; // entities moved by simulation (and might need resort in EntityTree)
SetOfEntities _simpleKinematicEntities; // entities undergoing non-colliding kinematic motion SetOfEntities _simpleKinematicEntities; // entities undergoing non-colliding kinematic motion

View file

@ -2,6 +2,6 @@ set(TARGET_NAME gl)
setup_hifi_library(Gui Widgets) setup_hifi_library(Gui Widgets)
link_hifi_libraries(shared) link_hifi_libraries(shared)
set(OpenGL_GL_PREFERENCE "LEGACY") set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl() target_opengl()

View file

@ -3,6 +3,6 @@ setup_hifi_library(Concurrent)
link_hifi_libraries(shared gl gpu shaders) link_hifi_libraries(shared gl gpu shaders)
GroupSources("src") GroupSources("src")
set(OpenGL_GL_PREFERENCE "LEGACY") set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl() target_opengl()

View file

@ -6,6 +6,6 @@ if (UNIX AND NOT VIRCADIA_THREAD_DEBUGGING)
endif(UNIX AND NOT VIRCADIA_THREAD_DEBUGGING) endif(UNIX AND NOT VIRCADIA_THREAD_DEBUGGING)
GroupSources("src") GroupSources("src")
set(OpenGL_GL_PREFERENCE "LEGACY") set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl() target_opengl()

View file

@ -2,4 +2,5 @@ set(TARGET_NAME gpu-gles)
setup_hifi_library(Gui Concurrent) setup_hifi_library(Gui Concurrent)
link_hifi_libraries(shared shaders gl gpu gpu-gl-common) link_hifi_libraries(shared shaders gl gpu gpu-gl-common)
GroupSources("src") GroupSources("src")
set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl() target_opengl()

View file

@ -9,6 +9,7 @@
#ifndef hifi_ShaderCache_h #ifndef hifi_ShaderCache_h
#define hifi_ShaderCache_h #define hifi_ShaderCache_h
#include <QtCore/QSharedPointer>
#include <ResourceCache.h> #include <ResourceCache.h>
class NetworkShader : public Resource { class NetworkShader : public Resource {

View file

@ -18,6 +18,7 @@
#include <QMap> #include <QMap>
#include <QColor> #include <QColor>
#include <QMetaEnum> #include <QMetaEnum>
#include <QtCore/QSharedPointer>
#include <DependencyManager.h> #include <DependencyManager.h>
#include <ResourceCache.h> #include <ResourceCache.h>

View file

@ -12,6 +12,8 @@
#ifndef hifi_ModelCache_h #ifndef hifi_ModelCache_h
#define hifi_ModelCache_h #define hifi_ModelCache_h
#include <QtCore/QSharedPointer>
#include <DependencyManager.h> #include <DependencyManager.h>
#include <ResourceCache.h> #include <ResourceCache.h>

View file

@ -163,8 +163,7 @@ private slots:
void postAccountSettingsError(QNetworkReply::NetworkError error); void postAccountSettingsError(QNetworkReply::NetworkError error);
private: private:
AccountManager(AccountManager const& other) = delete; Q_DISABLE_COPY(AccountManager);
void operator=(AccountManager const& other) = delete;
void persistAccountToFile(); void persistAccountToFile();

View file

@ -15,6 +15,7 @@
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QtQml/QJSEngine> #include <QtQml/QJSEngine>
#include <QString> #include <QString>
#include <QtCore/QSharedPointer>
#include <map> #include <map>

View file

@ -15,6 +15,7 @@
#define hifi_BaseAssetScriptingInterface_h #define hifi_BaseAssetScriptingInterface_h
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QThread> #include <QtCore/QThread>
#include "AssetClient.h" #include "AssetClient.h"
#include <shared/MiniPromises.h> #include <shared/MiniPromises.h>

View file

@ -17,6 +17,7 @@
#include <QtCore/QJsonObject> #include <QtCore/QJsonObject>
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QTimer> #include <QtCore/QTimer>
#include <QtCore/QUuid> #include <QtCore/QUuid>
#include <QtCore/QUrl> #include <QtCore/QUrl>

View file

@ -12,6 +12,8 @@
#ifndef hifi_EntityScriptClient_h #ifndef hifi_EntityScriptClient_h
#define hifi_EntityScriptClient_h #define hifi_EntityScriptClient_h
#include <QtCore/QSharedPointer>
#include "ClientServerUtils.h" #include "ClientServerUtils.h"
#include "LimitedNodeList.h" #include "LimitedNodeList.h"
#include "ReceivedMessage.h" #include "ReceivedMessage.h"

View file

@ -39,7 +39,7 @@ public:
HMACHash result(); HMACHash result();
private: private:
QMutex _lock { QMutex::Recursive }; QRecursiveMutex _lock;
struct hmac_ctx_st* _hmacContext; struct hmac_ctx_st* _hmacContext;
AuthMethod _authMethod; AuthMethod _authMethod;
}; };

View file

@ -29,6 +29,7 @@
#include <QtCore/QReadWriteLock> #include <QtCore/QReadWriteLock>
#include <QtCore/QSet> #include <QtCore/QSet>
#include <QtCore/QSharedMemory> #include <QtCore/QSharedMemory>
#include <QtCore/QSharedPointer>
#include <QtNetwork/QUdpSocket> #include <QtNetwork/QUdpSocket>
#include <QtNetwork/QHostAddress> #include <QtNetwork/QHostAddress>

View file

@ -11,6 +11,7 @@
#include "MappingRequest.h" #include "MappingRequest.h"
#include <QtCore/QSharedPointer>
#include <QtCore/QThread> #include <QtCore/QThread>
#include <DependencyManager.h> #include <DependencyManager.h>

View file

@ -15,6 +15,7 @@
#include <QString> #include <QString>
#include <QByteArray> #include <QByteArray>
#include <QtCore/QSharedPointer>
#include <DependencyManager.h> #include <DependencyManager.h>

View file

@ -13,8 +13,6 @@
#ifndef hifi_NLPacket_h #ifndef hifi_NLPacket_h
#define hifi_NLPacket_h #define hifi_NLPacket_h
#include <QtCore/QSharedPointer>
#include <UUID.h> #include <UUID.h>
#include "udt/Packet.h" #include "udt/Packet.h"

View file

@ -12,6 +12,7 @@
#ifndef hifi_NLPacketList_h #ifndef hifi_NLPacketList_h
#define hifi_NLPacketList_h #define hifi_NLPacketList_h
#include <QtCore/QSharedPointer>
#include "udt/PacketList.h" #include "udt/PacketList.h"
#include "NLPacket.h" #include "NLPacket.h"
@ -27,11 +28,10 @@ public:
qint64 getMaxSegmentSize() const override { return NLPacket::maxPayloadSize(_packetType, _isOrdered); } qint64 getMaxSegmentSize() const override { return NLPacket::maxPayloadSize(_packetType, _isOrdered); }
private: private:
Q_DISABLE_COPY(NLPacketList)
NLPacketList(PacketType packetType, QByteArray extendedHeader = QByteArray(), bool isReliable = false, NLPacketList(PacketType packetType, QByteArray extendedHeader = QByteArray(), bool isReliable = false,
bool isOrdered = false); bool isOrdered = false);
NLPacketList(udt::PacketList&& packetList); NLPacketList(udt::PacketList&& packetList);
NLPacketList(const NLPacketList& other) = delete;
NLPacketList& operator=(const NLPacketList& other) = delete;
virtual std::unique_ptr<udt::Packet> createPacket() override; virtual std::unique_ptr<udt::Packet> createPacket() override;

View file

@ -16,6 +16,7 @@
#include <atomic> #include <atomic>
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtCore/QTimer> #include <QtCore/QTimer>
#include <QtCore/QUuid> #include <QtCore/QUuid>

View file

@ -109,9 +109,7 @@ public:
float getOutboundKbps() const; float getOutboundKbps() const;
private: private:
// privatize copy and assignment operator to disallow Node copying Q_DISABLE_COPY(Node)
Node(const Node &otherNode);
Node& operator=(Node otherNode);
NodeType_t _type; NodeType_t _type;

View file

@ -14,7 +14,6 @@
#include <QtCore/QMutex> #include <QtCore/QMutex>
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include "NetworkPeer.h" #include "NetworkPeer.h"
#include "NLPacket.h" #include "NLPacket.h"

View file

@ -156,12 +156,11 @@ private slots:
void maybeSendIgnoreSetToNode(SharedNodePointer node); void maybeSendIgnoreSetToNode(SharedNodePointer node);
private: private:
Q_DISABLE_COPY(NodeList)
NodeList() : LimitedNodeList(INVALID_PORT, INVALID_PORT) { NodeList() : LimitedNodeList(INVALID_PORT, INVALID_PORT) {
assert(false); // Not implemented, needed for DependencyManager templates compile assert(false); // Not implemented, needed for DependencyManager templates compile
} }
NodeList(char ownerType, int socketListenPort = INVALID_PORT, int dtlsListenPort = INVALID_PORT); NodeList(char ownerType, int socketListenPort = INVALID_PORT, int dtlsListenPort = INVALID_PORT);
NodeList(NodeList const&) = delete; // Don't implement, needed to avoid copies of singleton
void operator=(NodeList const&) = delete; // Don't implement, needed to avoid copies of singleton
void processDomainServerAuthRequest(const QByteArray& packet); void processDomainServerAuthRequest(const QByteArray& packet);
void requestAuthForDomainServer(); void requestAuthForDomainServer();

View file

@ -15,8 +15,6 @@
#include <algorithm> #include <algorithm>
#include <chrono> #include <chrono>
#include "QSharedPointer"
int receivedMessageMetaTypeId = qRegisterMetaType<ReceivedMessage*>("ReceivedMessage*"); int receivedMessageMetaTypeId = qRegisterMetaType<ReceivedMessage*>("ReceivedMessage*");
int sharedPtrReceivedMessageMetaTypeId = qRegisterMetaType<QSharedPointer<ReceivedMessage>>("QSharedPointer<ReceivedMessage>"); int sharedPtrReceivedMessageMetaTypeId = qRegisterMetaType<QSharedPointer<ReceivedMessage>>("QSharedPointer<ReceivedMessage>");

View file

@ -15,6 +15,7 @@
#include <QByteArray> #include <QByteArray>
#include <QObject> #include <QObject>
#include <QtCore/QSharedPointer>
#include <atomic> #include <atomic>

View file

@ -12,6 +12,7 @@
#ifndef hifi_ReceivedPacketProcessor_h #ifndef hifi_ReceivedPacketProcessor_h
#define hifi_ReceivedPacketProcessor_h #define hifi_ReceivedPacketProcessor_h
#include <QtCore/QSharedPointer>
#include <QWaitCondition> #include <QWaitCondition>
#include "NodeList.h" #include "NodeList.h"

View file

@ -64,8 +64,7 @@ protected:
SequenceNumber _sendCurrSeqNum; // current maximum seq num sent out SequenceNumber _sendCurrSeqNum; // current maximum seq num sent out
private: private:
CongestionControl(const CongestionControl& other) = delete; Q_DISABLE_COPY(CongestionControl);
CongestionControl& operator=(const CongestionControl& other) = delete;
}; };

View file

@ -48,13 +48,12 @@ public:
void setType(Type type); void setType(Type type);
private: private:
Q_DISABLE_COPY(ControlPacket)
ControlPacket(Type type, qint64 size = -1); ControlPacket(Type type, qint64 size = -1);
ControlPacket(std::unique_ptr<char[]> data, qint64 size, const SockAddr& senderSockAddr); ControlPacket(std::unique_ptr<char[]> data, qint64 size, const SockAddr& senderSockAddr);
ControlPacket(ControlPacket&& other); ControlPacket(ControlPacket&& other);
ControlPacket(const ControlPacket& other) = delete;
ControlPacket& operator=(ControlPacket&& other); ControlPacket& operator=(ControlPacket&& other);
ControlPacket& operator=(const ControlPacket& other) = delete;
// Header read/write // Header read/write
void readType(); void readType();

View file

@ -84,9 +84,8 @@ private:
friend class PacketQueue; friend class PacketQueue;
friend class SendQueue; friend class SendQueue;
friend class Socket; friend class Socket;
PacketList(const PacketList& other) = delete; Q_DISABLE_COPY(PacketList)
PacketList& operator=(const PacketList& other) = delete;
// Takes the first packet of the list and returns it. // Takes the first packet of the list and returns it.
template<typename T> std::unique_ptr<T> takeFront(); template<typename T> std::unique_ptr<T> takeFront();

Some files were not shown because too many files have changed in this diff Show more