Skip to content
Open

Imu pkg #2124

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
10 changes: 9 additions & 1 deletion ci/macOS/package_darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,18 @@ echo $STAGING_AREA_DEPS/lib | dylibbundler -ns -of -b \
--install-path @executable_path/../Frameworks/ \
--search-path $BUILDDIR/Scopy.app/Contents/Frameworks/

echo "=== Adding Qt5 3D plugins"
# Find Qt5 installation path
QT5_PLUGINS_PATH="$(brew --prefix qt@5)/plugins"
# Copy Qt5 3D specific plugins
mkdir -p "$BUILDDIR/Scopy.app/Contents/PlugIns/renderers"
cp -R "$QT5_PLUGINS_PATH/renderers"/* "$BUILDDIR/Scopy.app/Contents/PlugIns/renderers/"
mkdir -p "$BUILDDIR/Scopy.app/Contents/PlugIns/sceneparsers"
cp -R "$QT5_PLUGINS_PATH/sceneparsers"/* "$BUILDDIR/Scopy.app/Contents/PlugIns/sceneparsers/"

echo "=== Bundle the Qt libraries & Create Scopy.dmg"
macdeployqt Scopy.app -verbose=3


echo "=== Removing duplicated LC_RPATH"
list=$(find Scopy.app -name "*.dylib")

Expand Down
3 changes: 3 additions & 0 deletions ci/windows/build_and_create_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ deploy_app(){
cp -vr $STAGING_DIR/share/libsigrokdecode/decoders $DEST_FOLDER/
rm -vfr $(find $DEST_FOLDER -name "*.dll.a" -type f)

cp -vr $STAGING_DIR/share/qt5/plugins/renderers $DEST_FOLDER/
cp -vr $STAGING_DIR/share/qt5/plugins/sceneparsers $DEST_FOLDER/

pushd $STAGING_DIR/bin
source $SRC_FOLDER/ci/windows/mingw_dll_deps
cp -vn "${DLL_DEPS[@]}" $DEST_FOLDER/
Expand Down
8 changes: 7 additions & 1 deletion ci/windows/mingw_dll_deps
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,10 @@ DLL_DEPS=(
libngtcp2-*.dll
libngtcp2_crypto_ossl.dll
libunistring-*.dll
)
Qt53DCore.dll
Qt53DExtras.dll
Qt53DRender.dll
Qt53DLogic.dll
Qt5Gamepad.dll
Qt53DInput.dll
)
99 changes: 99 additions & 0 deletions gui/res/icons/scopy-default/icons/tool_imuanalyzer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 99 additions & 0 deletions gui/res/icons/scopy-light/icons/tool_imuanalyzer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions gui/res/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@
<file>icons/uninstall-icon.svg</file>
<file>icons/install-icon.svg</file>
<file>icons/tool_scripting.svg</file>
<file>icons/scopy-default/icons/tool_imuanalyzer.svg</file>
<file>icons/scopy-light/icons/tool_imuanalyzer.svg</file>
</qresource>
<qresource prefix="/">
<file>icons/scopy-default/icons/search.svg</file>
Expand Down
49 changes: 49 additions & 0 deletions packages/imu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#
# Copyright (c) 2025 Analog Devices Inc.
#
# This file is part of Scopy
# (see https://www.github.com/analogdevicesinc/scopy).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

cmake_minimum_required(VERSION 3.9)

set(SCOPY_MODULE imu)
set(CURRENT_PKG_PATH ${CMAKE_CURRENT_SOURCE_DIR})
set(PACKAGE_NAME ${SCOPY_MODULE})

set(PACKAGE_DISPLAY_NAME "IMU Analyzer")
set(PACKAGE_DESCRIPTION "This package provides support for adis")
message(STATUS "building package: " ${SCOPY_MODULE})

project(scopy-package-${SCOPY_MODULE} VERSION 0.1 LANGUAGES CXX)

configure_file(manifest.json.cmakein ${SCOPY_PACKAGE_BUILD_PATH}/${SCOPY_MODULE}/MANIFEST.json @ONLY)

include_emu_xml(${CMAKE_CURRENT_SOURCE_DIR}/emu-xml ${SCOPY_PACKAGE_BUILD_PATH}/${SCOPY_MODULE}/emu-xml)
message("Including plugins")
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/plugins)
add_plugins(${CMAKE_CURRENT_SOURCE_DIR}/plugins ${SCOPY_PACKAGE_BUILD_PATH}/${SCOPY_MODULE}/plugins)
install_plugins(
${SCOPY_PACKAGE_BUILD_PATH}/${SCOPY_MODULE}/plugins
${SCOPY_PACKAGE_INSTALL_PATH}/${SCOPY_MODULE}/plugins "scopy"
)
endif()

install_pkg(${SCOPY_PACKAGE_BUILD_PATH}/${SCOPY_MODULE} ${SCOPY_PACKAGE_INSTALL_PATH}/${SCOPY_MODULE})
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(INSTALLER_DESCRIPTION "${PACKAGE_DISPLAY_NAME} - ${PACKAGE_DESCRIPTION}")
configureinstallersettings(${SCOPY_MODULE} ${INSTALLER_DESCRIPTION} FALSE)
endif()
Loading
Loading