Skip to content

Commit 61c6685

Browse files
committed
Merge release v19.03
2 parents 1845291 + cb36418 commit 61c6685

File tree

593 files changed

+136171
-7617
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

593 files changed

+136171
-7617
lines changed

.appveyor.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#
2+
# Copyright 2016 Pixar
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "Apache License")
5+
# with the following modification; you may not use this file except in
6+
# compliance with the Apache License and the following modification to it:
7+
# Section 6. Trademarks. is deleted and replaced with:
8+
#
9+
# 6. Trademarks. This License does not grant permission to use the trade
10+
# names, trademarks, service marks, or product names of the Licensor
11+
# and its affiliates, except as required to comply with Section 4(c) of
12+
# the License and to reproduce the content of the NOTICE file.
13+
#
14+
# You may obtain a copy of the Apache License at
15+
#
16+
# http://www.apache.org/licenses/LICENSE-2.0
17+
#
18+
# Unless required by applicable law or agreed to in writing, software
19+
# distributed under the Apache License with the above modification is
20+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21+
# KIND, either express or implied. See the Apache License for the specific
22+
# language governing permissions and limitations under the Apache License.
23+
#
24+
image: Visual Studio 2017
25+
26+
clone_folder: c:\projects\USD
27+
28+
branches:
29+
only:
30+
- dev
31+
- master
32+
33+
platform:
34+
- x64
35+
36+
install:
37+
- ps: $env:USD_YY_VERSION = (Get-Content .\cmake\defaults\Version.cmake | Where-Object {$_ -match 'PXR_MINOR_VERSION'}).Split("( )")[2].Trim('"').PadLeft(2, "0")
38+
- ps: $env:USD_MM_VERSION = (Get-Content .\cmake\defaults\Version.cmake | Where-Object {$_ -match 'PXR_PATCH_VERSION'}).Split("( )")[2].Trim('"').PadLeft(2, "0")
39+
- ps: Update-AppveyorBuild -Version "$env:USD_YY_VERSION.$env:USD_MM_VERSION-$env:APPVEYOR_REPO_BRANCH-build$env:APPVEYOR_BUILD_NUMBER"
40+
41+
cache:
42+
- C:\USDgen\build\boost -> build_scripts/build_usd.py
43+
- C:\USDgen\build\IlmBase -> build_scripts/build_usd.py
44+
- C:\USDgen\build\OpenEXR -> build_scripts/build_usd.py
45+
- C:\USDgen\build\OpenSubdiv-3_1_1 -> build_scripts/build_usd.py
46+
- C:\USDgen\build\zlib-1.2.11 -> build_scripts/build_usd.py
47+
- C:\USDgen\src -> build_scripts/build_usd.py
48+
49+
init:
50+
- set PATH=c:/Python27-x64;c:/Python27-x64/Scripts;%PATH%
51+
- C:\"Program Files (x86)"\"Microsoft Visual Studio"\2017\Community\VC\Auxiliary\Build\vcvarsall.bat amd64
52+
53+
54+
before_build:
55+
- python -m pip install --upgrade pip
56+
- pip install pyside
57+
- pip install PyOpenGL
58+
-
59+
60+
build_script:
61+
62+
- cd c:\projects\USD
63+
- python build_scripts/build_usd.py -vvv --build C:/USDgen/build --src C:/USDgen/src c:/USDinst
64+
- cd c:\USDgen\build
65+
- dir

.travis.yml

Lines changed: 35 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,25 @@
2727
sudo: required
2828
dist: trusty
2929

30+
os:
31+
- linux
32+
- osx
33+
34+
osx_image: xcode10.1
35+
36+
compiler:
37+
- gcc
38+
- clang
39+
40+
matrix:
41+
42+
# On Linux build with gcc and on OSX build with clang
43+
exclude:
44+
- os: osx
45+
compiler: gcc
46+
- os: linux
47+
compiler: clang
48+
3049
language: cpp
3150

3251
branches:
@@ -35,116 +54,26 @@ branches:
3554
- dev
3655

3756
before_install:
38-
- sudo apt-get -qq update
39-
40-
install:
41-
######
42-
### DEPENDENCIES FOR USD CORE
43-
#####
44-
45-
### boost v1.55
46-
### We install only the packages we need for faster turnaround
47-
- sudo apt-get install libboost-python1.55.0 libboost-python1.55-dev
48-
- sudo apt-get install libboost-regex1.55.0 libboost-regex1.55-dev
49-
- sudo apt-get install libboost-system1.55.0 libboost-system1.55-dev
50-
- sudo apt-get install libboost-program-options1.55.0 libboost-program-options1.55-dev
51-
52-
### Intel TBB v4.4 update 6
53-
- if [ ! -d "$HOME/tbb44_20160803oss/lib" ]; then
54-
wget https://github.com/01org/tbb/releases/download/4.4.6/tbb44_20160803oss_lin.tgz -O /tmp/tbb.tgz;
55-
tar -xvzf /tmp/tbb.tgz -C $HOME;
56-
else
57-
echo 'Using cached TBB';
58-
fi
59-
60-
### ilmbase and OpenEXR 2.2.0
61-
- if [ ! -d "$HOME/openexr/lib" ]; then
62-
wget http://download.savannah.nongnu.org/releases/openexr/ilmbase-2.2.0.tar.gz -O /tmp/ilmbase.tgz;
63-
tar -xvzf /tmp/ilmbase.tgz -C $HOME;
64-
pushd $HOME/ilmbase-2.2.0;
65-
./configure --prefix=$HOME/openexr;
66-
make && make install;
67-
popd;
68-
wget http://download.savannah.nongnu.org/releases/openexr/openexr-2.2.0.tar.gz -O /tmp/openexr.tgz;
69-
tar -xvzf /tmp/openexr.tgz -C $HOME;
70-
pushd $HOME/openexr-2.2.0;
71-
./configure --prefix=$HOME/openexr --with-pkg-config=no LDFLAGS="-Wl,-rpath -Wl,$HOME/openexr/lib";
72-
make && make install;
73-
popd;
74-
else
75-
echo 'Using cached OpenEXR';
57+
- if [ $TRAVIS_OS_NAME == linux ] ; then
58+
sudo apt-get -qq update ;
7659
fi
7760

78-
######
79-
### DEPENDENCIES FOR IMAGING
80-
#####
81-
82-
### GLEW 1.10.0
83-
- sudo apt-get install libglew-dev
84-
85-
### OpenSubdiv 3.0.5
86-
- sudo apt-get install libxrandr-dev libxcursor-dev libxinerama-dev libglfw-dev
87-
- if [ ! -d "$HOME/osd/lib" ]; then
88-
wget https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v3_0_5.tar.gz -O /tmp/osd.tgz;
89-
tar -xvzf /tmp/osd.tgz -C $HOME;
90-
pushd $HOME/OpenSubdiv-3_0_5;
91-
mkdir build && cd build;
92-
cmake -DCMAKE_INSTALL_PREFIX=$HOME/osd -DNO_EXAMPLES=1 -DNO_TUTORIALS=1 -DNO_REGRESSION=1 -D NO_MAYA=1 -D NO_PTEX=1 -D NO_DOC=1 -D NO_OMP=1 -D NO_TBB=1 -D NO_CUDA=1 -D NO_OPENCL=1 -D NO_CLEW=1 ..;
93-
make && make install;
94-
popd;
95-
else
96-
echo 'Using cached OpenSubdiv';
97-
fi
98-
99-
### OpenImageIO 1.5.11
100-
- sudo apt-get install libboost-filesystem1.55.0 libboost-filesystem1.55-dev
101-
- sudo apt-get install libboost-thread1.55.0 libboost-thread1.55-dev
102-
- if [ ! -d "$HOME/oiio/lib" ]; then
103-
wget https://github.com/OpenImageIO/oiio/archive/Release-1.5.11.tar.gz -O /tmp/oiio.tgz;
104-
tar -xvzf /tmp/oiio.tgz -C $HOME;
105-
pushd $HOME/oiio-Release-1.5.11;
106-
mkdir build && cd build;
107-
cmake -DCMAKE_INSTALL_PREFIX=$HOME/oiio -DILMBASE_HOME=$HOME/openexr -DOPENEXR_HOME=$HOME/openexr -DUSE_PYTHON=OFF -DOIIO_BUILD_TOOLS=OFF -DOIIO_BUILD_TESTS=OFF ..;
108-
make && make install;
109-
popd;
110-
else
111-
echo 'Using cached OpenImageIO';
112-
fi
113-
114-
### Ptex 2.0.30
115-
- if [ ! -d "$HOME/ptex/lib" ]; then
116-
wget https://github.com/wdas/ptex/archive/v2.0.30.tar.gz -O /tmp/ptex.tgz;
117-
tar -xvzf /tmp/ptex.tgz -C $HOME;
118-
pushd $HOME/ptex-2.0.30/src;
119-
make;
120-
mv $HOME/ptex-2.0.30/install/* $HOME/ptex;
121-
popd;
122-
else
123-
echo 'Using cached Ptex';
61+
install:
62+
- if [ $TRAVIS_OS_NAME == linux ] ; then
63+
sudo apt-get install libglew-dev libxrandr-dev libxcursor-dev libxinerama-dev libxi-dev;
64+
sudo apt-get install python-pyside pyside-tools ;
65+
sudo pip install PyOpenGL ;
66+
elif [ $TRAVIS_OS_NAME == osx ] ; then
67+
sudo pip install pyside2 ;
68+
sudo pip install PyOpenGL ;
12469
fi
12570

126-
######
127-
### DEPENDENCIES FOR USDVIEW
128-
#####
129-
130-
### PySide 1.2.2
131-
- sudo apt-get install python-pyside pyside-tools
132-
133-
### PyOpenGL 3.1.0
134-
- sudo pip install PyOpenGL
135-
13671
cache:
137-
directories:
138-
- $HOME/openexr
139-
- $HOME/osd
140-
- $HOME/oiio
141-
- $HOME/ptex
142-
- $HOME/tbb43_20141023oss
72+
directories:
73+
- $HOME/USDgen/src
74+
14375

14476
script:
145-
- mkdir build && cd build
146-
- cmake -DTBB_ROOT_DIR=$HOME/tbb44_20160803oss -DOPENEXR_LOCATION=$HOME/openexr -DOIIO_LOCATION=$HOME/oiio -DOPENSUBDIV_ROOT_DIR=$HOME/osd -DPTEX_LOCATION=$HOME/ptex -DPXR_VALIDATE_GENERATED_CODE=OFF -DPXR_BUILD_TESTS=ON ..
147-
- echo 'Building with -j4'
148-
- make -j4
149-
# Default install location is /usr/local; we need sudo access to write there.
150-
- sudo make install
77+
- mkdir -p $HOME/USDinst
78+
- mkdir -p $HOME/USDgen
79+
- travis_wait 90 python build_scripts/build_usd.py -v --build $HOME/USDgen/build --src $HOME/USDgen/src $HOME/USDinst

BUILDING.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cmake \
4444
cmake --build . --target install -- -j <NUM_CORES>
4545
```
4646

47-
#### On OS X
47+
#### On macOS
4848

4949
The following will generate an Xcode project that can be used to build USD.
5050

@@ -165,6 +165,12 @@ jpg, png, tga, and hdr. With OpenImageIO enabled, support extends to exr, tif,
165165
zfile, and tx file formats, which allows for the use of more advanced features
166166
like subimages and mipmaps.
167167

168+
##### OpenColorIO
169+
170+
This plugin can optionally be enabled by specifying the cmake flag
171+
```PXR_BUILD_OPENCOLORIO_PLUGIN=TRUE```. When enabled, OpenColorIO provides
172+
color management for Hydra viewports.
173+
168174
##### Embree Rendering
169175

170176
This component contains an example rendering backend for Hydra and usdview, based on the
@@ -309,7 +315,7 @@ flags:
309315
| ------------------------------ |-----------------------------------------| ------- |
310316
| PXR_SET_EXTERNAL_NAMESPACE | The outer namespace identifier | ```pxr``` |
311317
| PXR_SET_INTERNAL_NAMESPACE | The internal namespace identifier | ```pxrInternal_v_x_y``` (for version x.y.z) |
312-
| PXR_ENABLE_NAMESPACES | Enable namespaces | ```OFF``` |
318+
| PXR_ENABLE_NAMESPACES | Enable namespaces | ```ON``` |
313319

314320
When enabled, there are a set of macros provided in a generated header,
315321
pxr/pxr.h, which facilitates using namespaces:

0 commit comments

Comments
 (0)