Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HYDRA-776 : Update build doc & script #37

Merged
merged 10 commits into from
Jan 16, 2024

Conversation

debloip-adsk
Copy link
Collaborator

@debloip-adsk debloip-adsk commented Jan 10, 2024

This PR updates the build docs to (hopefully) contain all info that might be needed to build the plugin. It also contains a slight tweak to the top-level CMakeLists to automatically determine the default Python version to build with based on the Maya version : note that the Python version can still be manually specified with the same variable as before.

@@ -106,8 +112,6 @@ message(STATUS " PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS}")
message(STATUS " PYTHON_LIBRARIES = ${PYTHON_LIBRARIES}")
message(STATUS " Python_EXECUTABLE = ${Python_EXECUTABLE}")

include(cmake/jinja.cmake)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jinja is no longer needed in MayaHydra

Comment on lines -138 to +164
You then need to set the generator to ```Ninja``` and the ```CMAKE_MAKE_PROGRAM``` variable to the Ninja binary you downloaded.
You then need to set the generator to ```Ninja```.
```
python build.py --generator Ninja --build-args=-DCMAKE_MAKE_PROGRAM='path to ninja binary'
python build.py --generator Ninja
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifying the CMAKE_MAKE_PROGRAM should not be necessary as CMake will figure out which one to use based on the generator. This option mostly seems to be used to force a specific "make" program.

Comment on lines -186 to -187
Jinja2 3.1.2
MarkupSafe 2.1.1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two are no longer relevant

@debloip-adsk debloip-adsk marked this pull request as ready for review January 10, 2024 23:30
@debloip-adsk debloip-adsk self-assigned this Jan 10, 2024
@debloip-adsk
Copy link
Collaborator Author

@debloip-adsk debloip-adsk added documentation Improvements or additions to documentation ready-for-merge Development process is finished, PR is ready for merge labels Jan 12, 2024
@lilike-adsk lilike-adsk merged commit d8116ed into dev Jan 16, 2024
10 of 11 checks passed
@debloip-adsk debloip-adsk deleted the debloip/HYDRA-776/update-build-doc branch January 23, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants