Build Maya plug-ins with Bazel
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tools
BUILD
LICENSE
README.md
WORKSPACE
maya.bzl

README.md

Bazel for Maya

Build Maya plug-ins with Bazel

Prepare your project for Bazel

Copy the WORKSPACE file at the very root of your project, together with the tools folder; then copy BUILD and maya.bzl where your source files are, and modify the BUILD file so it contains headers and cpp files from your project.

Building

For this to work you'll need two environment variables: MAYA_LOCATION (i.e /usr/autodesk/maya2018) and MAYA_VERSION (i.e 2018).

Linux

bazel build //path/to/project:myPlugin.so

Mac - didn't test this myself yet, should work

bazel build //path/to/project:myPlugin.bundle

or

bazel build //path/to/project:build_bundle

Windows:

bazel build //path/to/project:myPlugin.mll

or

bazel build //path/to/project:build_mll