run-cmake.bat: ensure Python packages are installed to the right direction.

This commit is contained in:
Stinkfist0
2015-10-30 22:46:04 +02:00
parent 455d382a9e
commit 7b4d8734ed
2 changed files with 9 additions and 7 deletions
+5 -4
View File
@@ -27,14 +27,15 @@ After the dependencies are build, execute run-cmake.bat. The batch file expects
%1, or alternatively if more parameters are provided, %* is passed for the CMake inkovation. If no %1 %1, or alternatively if more parameters are provided, %* is passed for the CMake inkovation. If no %1
is provided, the same default value as above is used. This batch script will create a folder of form is provided, the same default value as above is used. This batch script will create a folder of form
build-vs<VERSION>-<ARCHITECTURE> which will contain the solution and project files for Visual Studio. build-vs<VERSION>-<ARCHITECTURE> which will contain the solution and project files for Visual Studio.
IMPORTANT: If you wish to use any library from a custom location, modify the paths in run-cmake.bat
accordingly.
All of the dependencies are build as static libraries against the static run-time allowing the developer All of the dependencies are build as static libraries against the static run-time allowing the developer
to effortlessly deploy standalone binaries. to effortlessly deploy standalone binaries.
You can now build the project using the IfcOpenShell.sln file in the build folder. Build the INSTALL You can now build the project using the IfcOpenShell.sln file in the build folder. Build the INSTALL project
project if wanted. The project will installed to installed-vs<VERSION>-<ARCHITECTURE> folder in the if wanted. The project will installed to installed-vs<VERSION>-<ARCHITECTURE> folder in the project's root
project's root folder and the required IfcOpenShell-Python parts are deployed to the Python's Lib folder and the required IfcOpenShell-Python parts are deployed to the <PYTHONPATH>\Lib\site-packages folder.
folder.
== Directory Structure == == Directory Structure ==
+4 -3
View File
@@ -42,9 +42,10 @@ set OCC_INCLUDE_DIR=%INSTALL_DIR%\oce\include\oce
set OCC_LIBRARY_DIR=%INSTALL_DIR%\oce\Win%ARCH_BITS%\lib set OCC_LIBRARY_DIR=%INSTALL_DIR%\oce\Win%ARCH_BITS%\lib
set OPENCOLLADA_INCLUDE_DIR=%INSTALL_DIR%\OpenCOLLADA\include\opencollada set OPENCOLLADA_INCLUDE_DIR=%INSTALL_DIR%\OpenCOLLADA\include\opencollada
set OPENCOLLADA_LIBRARY_DIR=%INSTALL_DIR%\OpenCOLLADA\lib\opencollada set OPENCOLLADA_LIBRARY_DIR=%INSTALL_DIR%\OpenCOLLADA\lib\opencollada
:: TODO 3ds Max SDK? set PYTHONPATH=%INSTALL_DIR%\Python
set SWIG_DIR=%INSTALL_DIR%\swigwin set SWIG_DIR=%INSTALL_DIR%\swigwin
set PATH=%PATH%;%SWIG_DIR% set PATH=%PATH%;%SWIG_DIR%;%PYTHONPATH%
:: TODO 3ds Max SDK?
echo. echo.
cecho {0A}Script configuration:{# #}{\n} cecho {0A}Script configuration:{# #}{\n}
@@ -61,7 +62,7 @@ echo OCC_INCLUDE_DIR = %OCC_INCLUDE_DIR%
echo OCC_LIBRARY_DIR = %OCC_LIBRARY_DIR% echo OCC_LIBRARY_DIR = %OCC_LIBRARY_DIR%
echo OPENCOLLADA_INCLUDE_DIR = %OPENCOLLADA_INCLUDE_DIR% echo OPENCOLLADA_INCLUDE_DIR = %OPENCOLLADA_INCLUDE_DIR%
echo OPENCOLLADA_LIBRARY_DIR = %OPENCOLLADA_LIBRARY_DIR% echo OPENCOLLADA_LIBRARY_DIR = %OPENCOLLADA_LIBRARY_DIR%
:: TODO Python echo PYTHONPATH = %PYTHONPATH%
echo SWIG_DIR = %SWIG_DIR% echo SWIG_DIR = %SWIG_DIR%
echo. echo.
echo CMAKE_INSTALL_PREFIX = %CMAKE_INSTALL_PREFIX% echo CMAKE_INSTALL_PREFIX = %CMAKE_INSTALL_PREFIX%