These scripts were initially created to support building Slicer on ARM aarch64 associated with NVIDIA IGX running Ubuntu.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
cmake_minimum_required(VERSION 3.17.5) | |
message(STATUS "ENV{CUDA_PATH} [$ENV{CUDA_PATH}]") | |
message(STATUS "---- CMAKE_CUDA_COMPILER [${CMAKE_CUDA_COMPILER}]") | |
project(Sandbox) | |
set(CMAKE_CUDA_STANDARD 14) | |
set(CMAKE_CUDA_STANDARD_REQUIRED TRUE) |
set cmake_exe=C:\cmake-3.22.1\bin\cmake.exe | |
set root_dir=C:\P | |
set source_dir=%root_dir%\S | |
set build_dir=%root_dir%\S-rwdi | |
set build_type=RelWithDebInfo | |
cd %root_dir% | |
%cmake_exe% -G "Visual Studio 17 2022" -A x64 ^ |
import asyncio | |
import time | |
def app_print(*args, **kwargs): | |
print(*args, **kwargs) | |
slicer.app.processEvents() | |
async def say_after(delay, what): |
class CustomAppShortcutBlocker(qt.QObject): | |
def eventFilter(self, object, event): | |
""" | |
Custom event filter for allowing only specific shortcuts. | |
""" | |
# See https://doc.qt.io/qt-5/qkeyevent.html#details | |
if event.type() == qt.QEvent.Shortcut: | |
# Only allow showing/hiding "Error log" | |
if event.key() == qt.QKeySequence("Ctrl+0"): |
set(proj python-scikit-image) | |
# Set dependency list | |
set(${proj}_DEPENDENCIES | |
python | |
python-pip | |
python-setuptools | |
) | |
if(NOT DEFINED Slicer_USE_SYSTEM_${proj}) |
class EventManager(qt.QObject): | |
def eventFilter(self, object, event): | |
""" | |
Custom event filter for Slicer Main Window. | |
Inputs: Object (QObject), Event (QEvent) | |
""" | |
if event.type() == qt.QEvent.DragEnter: | |
self.dragEnterEvent(event) | |
return True |
Andras | |
Andruejol | |
Aucoin | |
Allowlist | |
Arial | |
Backend | |
Blocklist | |
Canaria | |
Cancelling | |
Cividis |
# SPDX-FileCopyrightText: 2023 Jean-Christophe Fillion-Robin <[email protected]> | |
# SPDX-License-Identifier: BSD-3-Clause | |
#----------------------------------------------------------------------------- | |
tag_name=collection-archives | |
release_name=CollectionArchives | |
git checkout --orphan=${tag_name} | |
git rm -rf . | |
#----------------------------------------------------------------------------- |
# SPDX-FileCopyrightText: 2023 Jean-Christophe Fillion-Robin <[email protected]> | |
# SPDX-License-Identifier: BSD-3-Clause | |
import ast | |
import argparse | |
import errno | |
import os | |
import sys | |
import astor |