Fix Android example app build.

Add VS solution gen batch file with Python.
This commit is contained in:
Syoyo Fujita
2023-05-15 04:24:06 +09:00
parent b7aa1ecdd3
commit aef0705f3e
9 changed files with 24 additions and 12 deletions

View File

@@ -1,15 +1,17 @@
rem assume
rmdir /s /q build
mkdir build
rmdir /s /q build_with_py
mkdir build_with_py
rem Specify absolute python.exe path if required.
rem Use `whre python` to find abosolute path to python.exe in cmd
rem Conda/Miniconda installed Python recommended.
rem
rem -DPython3_EXECUTABLE=C:\Users\%%HOME%%\miniconda3\envs\pytinyusdz\python.exe ^
cmake -G "Visual Studio 17 2022" -A x64 ^
-DTINYUSDZ_WITH_OPENSUBDIV=On ^
-DTINYUSDZ_WITH_PYTHON=1 ^
-DTINYUSDZ_PREFER_LOCAL_PYTHON_INSTALLATION=1 ^
-DPython3_EXECUTABLE=C:\Users\%%HOME%%\miniconda3\envs\pytinyusdz\python.exe
-Bbuild -S.
-Bbuild_with_py -S.