Skip to content

Latest commit

 

History

History
82 lines (63 loc) · 1.93 KB

README.md

File metadata and controls

82 lines (63 loc) · 1.93 KB

Note: This repo is currently a work in progress, when something stable is ready, we'll take down this note.

usdview-native

Workalike for usdview for those who want to avoid Qt and Python

Build Status

Developer Setup

macOS

Install Local Dependencies

You will need to install a few dependencies via your preferred method (brew, macports, source)

Name Version
clang-format 7.0.0
swiftformat 0.35.3
swiftlint 0.27.0
cmake 3.10.0
Brew Example

$ brew install clang-format
$ brew install swiftformat
$ brew install swiftlint
$ brew install cmake

Source Example

$ #--- CMake ---
$ curl -o cmake-3.10.0.tar.gz -L -C - https://cmake.org/files/v3.10/cmake-3.10.0.tar.gz
$ tar zxf cmake-3.10.0.tar.gz
$ pushd cmake-3.10.0
$ ./configure --prefix=$DEPS_DIR
$ make -j8
$ make install
$ popd

Setup Developer Environment

You will need to run a script which sets of various git hooks. These run before commits to ensure code is linted, formatted and runs any other lightweight checks before the code gets to the CI stage.

$ .buildScripts/dev-setup

Build Embedded C Libraries

You will need to run a script which build USD and its necessary dependencies. This should be a one time cost, only needing to be updated when we change USD versions (once or twice per year, max).

$ .buildScripts/build-mac-deps

Build Application

You will need to build the application itself, this can be done either through XCode or via the command line (which just invokes xcodebuild).

$ .buildScripts/build