Skip to content

Commit

Permalink
Updated to work with Katana 4.5v2 + added rez-build.sh and rez-releas…
Browse files Browse the repository at this point in the history
…e.sh to ensure devtoolset-7 is being used + updated to C++14
  • Loading branch information
jonahjnewton committed May 10, 2022
1 parent cb65683 commit 4be1ef2
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 15 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.2)

set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_STANDARD 14)

project(usd-renderman)

Expand All @@ -11,6 +11,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
"${KATANA_HOME}/plugins/Src/cmake"
)

set(KATANA_RESOURCES "$ENV{KATANA_RESOURCES}")

find_package(Katana PATHS "${KATANA_HOME}/plugin_apis/cmake" REQUIRED)

# Ensure we don't compile DSOs with undefined symbols.
Expand Down
21 changes: 11 additions & 10 deletions katana/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
set(PLUGIN_NAME usd_renderman_katana)

set(USD_KATANA_LIBRARY_DIR $ENV{REZ_KATANAUSDPLUGINS_ROOT}/third_party/katana/lib/usd/libs)
set(USD_KATANA_INCLUDE_DIR $ENV{REZ_KATANAUSDPLUGINS_ROOT}/third_party/katana/include)
set(USD_KATANA_LIBRARY_DIR $ENV{REZ_KATANAUSDPLUGINS_ROOT}/lib)
set(USD_KATANA_INCLUDE_DIR $ENV{REZ_KATANAUSDPLUGINS_ROOT}/include)

set(RENDERMAN_INCLUDE_DIR $ENV{RMANTREE}/include)
set(RENDERMAN_LIBRARY $ENV{RMANTREE}/lib)

set(USD_LIBRARY_DIR $ENV{KATANA_API_LOCATION}/bin)
set(USD_INCLUDE_DIR $ENV{KATANA_API_LOCATION}/external/FnUSD/include)
set(PXR_LIB_PREFIX libFn)
set(PXR_LIB_PREFIX libfn)
find_package(USD REQUIRED)

set(GEOLIB_API_SOURCE_DIR ${KATANA_API_SOURCE_DIR})
Expand All @@ -26,8 +26,9 @@ find_package(Boost
COMPONENTS
filesystem
serialization
python
python27
system
thread
REQUIRED
)

Expand Down Expand Up @@ -72,12 +73,12 @@ target_link_libraries(${PLUGIN_NAME}
Katana::FnAttribute
Katana::FnGeolibOpPlugin
Katana::FnGeolibServices
Fntf
Fngf
Fnsdf
Fnusd
FnusdGeom
FnusdVol
fntf
fngf
fnsdf
fnusd
fnusdGeom
fnusdVol
usdKatana
)

Expand Down
6 changes: 2 additions & 4 deletions package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name = 'usd_renderman'

version = '1.0.2'
version = '2.0.0'

authors = ['ben.skinner', 'daniel.flood', 'jonah.newton']

Expand All @@ -15,9 +15,7 @@
]

variants = [
['platform-linux', 'arch-x86_64', 'katana-3.6.2', 'rfk-23.5', 'renderman-23.5'],
['platform-linux', 'arch-x86_64', 'katana-3.6.2', 'rfk-24', 'renderman-24'],
['platform-linux', 'arch-x86_64', 'katana-3.6.2', 'rfk-24', 'renderman-24.4']
['platform-linux', 'arch-x86_64', 'katana-4.5.2', 'rfk-24.4', 'renderman-24.4']
]

def commands():
Expand Down
7 changes: 7 additions & 0 deletions rez-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash

export CC=/opt/rh/devtoolset-7/root/bin/gcc
export CXX=/opt/rh/devtoolset-7/root/bin/g++

# this will build and install the rez package locally (default is ~/packages)
rez-build -i
7 changes: 7 additions & 0 deletions rez-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash

export CC=/opt/rh/devtoolset-7/root/bin/gcc
export CXX=/opt/rh/devtoolset-7/root/bin/g++

# this will release the rez package
rez-release

0 comments on commit 4be1ef2

Please sign in to comment.