diff --git a/win/readme.txt b/win/readme.txt index b3f28c5d56..f8779f3d10 100644 --- a/win/readme.txt +++ b/win/readme.txt @@ -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 is provided, the same default value as above is used. This batch script will create a folder of form build-vs- 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 to effortlessly deploy standalone binaries. -You can now build the project using the IfcOpenShell.sln file in the build folder. Build the INSTALL -project if wanted. The project will installed to installed-vs- folder in the -project's root folder and the required IfcOpenShell-Python parts are deployed to the Python's Lib -folder. +You can now build the project using the IfcOpenShell.sln file in the build folder. Build the INSTALL project +if wanted. The project will installed to installed-vs- folder in the project's root +folder and the required IfcOpenShell-Python parts are deployed to the \Lib\site-packages folder. == Directory Structure == diff --git a/win/run-cmake.bat b/win/run-cmake.bat index 1475d486bd..42ac88b4a9 100644 --- a/win/run-cmake.bat +++ b/win/run-cmake.bat @@ -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 OPENCOLLADA_INCLUDE_DIR=%INSTALL_DIR%\OpenCOLLADA\include\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 PATH=%PATH%;%SWIG_DIR% +set PATH=%PATH%;%SWIG_DIR%;%PYTHONPATH% +:: TODO 3ds Max SDK? echo. cecho {0A}Script configuration:{# #}{\n} @@ -61,7 +62,7 @@ echo OCC_INCLUDE_DIR = %OCC_INCLUDE_DIR% echo OCC_LIBRARY_DIR = %OCC_LIBRARY_DIR% echo OPENCOLLADA_INCLUDE_DIR = %OPENCOLLADA_INCLUDE_DIR% echo OPENCOLLADA_LIBRARY_DIR = %OPENCOLLADA_LIBRARY_DIR% -:: TODO Python +echo PYTHONPATH = %PYTHONPATH% echo SWIG_DIR = %SWIG_DIR% echo. echo CMAKE_INSTALL_PREFIX = %CMAKE_INSTALL_PREFIX%