mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 20:26:22 +00:00
win/readme.md tweaks
This commit is contained in:
+28
-20
@@ -1,20 +1,20 @@
|
|||||||
Windows Build Tools and Scripts
|
Windows Build Tools and Scripts
|
||||||
===============================
|
===============================
|
||||||
This folder contains build tools and script for automatic building and deployment of IfcOpenShell's
|
This folder contains build tools and script for automatic building and deployment of IfcOpenShell (IFCOS)
|
||||||
(IFCOS) dependencies.
|
and its dependencies.
|
||||||
|
|
||||||
As a general guideline, `.cmd` files are non-standalone batch files that need to be run from command
|
As a general guideline, `.cmd` files are non-standalone batch files that need to be run from command
|
||||||
prompt or from other batch file and/or Visual Studio environment variables set and `.bat` files are
|
prompt or from another batch file, and/or while the Visual Studio environment variables set, and `.bat` files are
|
||||||
standalone batch files that can be run also from the File Explorer.
|
standalone batch files that can be run also e.g. from the File Explorer.
|
||||||
|
|
||||||
Usage Instructions
|
Usage Instructions
|
||||||
------------------
|
------------------
|
||||||
Execute `build-deps.cmd` to fetch, build and install the dependencies. The batch file will print
|
Execute `build-deps.cmd` to fetch, build and install the dependencies. The batch file will print
|
||||||
requirements for a successful execution. The script allows a few user-configurable build options
|
the requirements for a successful execution. The script allows a few user-configurable build options
|
||||||
which are listed in the usage instructions. Either edit the script file or set these values before
|
which are listed in the usage instructions. Either edit the script file or set these values before
|
||||||
running the script.
|
running the script.
|
||||||
|
|
||||||
build-deps.cmd expects a CMake generator as `%1` and a build configuration type as `%2`. If the parameters
|
`build-deps.cmd` expects a CMake generator as `%1` and a build configuration type as `%2`. If the parameters
|
||||||
are not provided, the default values are used (`"Visual Studio 14 2015 Win64"` and `RelWithDebInfo` respectively).
|
are not provided, the default values are used (`"Visual Studio 14 2015 Win64"` and `RelWithDebInfo` respectively).
|
||||||
A build type (`Build/Rebuild/Clean`) can be provided as `%3`, if wanted (defaults to `Build`). See `vs-cfg.cmd`
|
A build type (`Build/Rebuild/Clean`) can be provided as `%3`, if wanted (defaults to `Build`). See `vs-cfg.cmd`
|
||||||
if you want to change the defaults. The batch file will create `deps\` and `deps-vs<VERSION>-<ARCHITECTURE>-installed\`
|
if you want to change the defaults. The batch file will create `deps\` and `deps-vs<VERSION>-<ARCHITECTURE>-installed\`
|
||||||
@@ -22,29 +22,37 @@ directories to the project root. Debug and release builds of the depedencies can
|
|||||||
`build-deps.cmd <GENERATOR> Debug` and `build-deps.cmd <GENERATOR> <Release|RelWithDebInfo|MinSizeRel>`.
|
`build-deps.cmd <GENERATOR> Debug` and `build-deps.cmd <GENERATOR> <Release|RelWithDebInfo|MinSizeRel>`.
|
||||||
|
|
||||||
After the dependencies are build, execute `run-cmake.bat`. The batch file expects a CMake generator as
|
After the dependencies are build, execute `run-cmake.bat`. The batch file expects a CMake generator as
|
||||||
`%1`, or alternatively if more parameters are provided, `%*` is passed for the CMake invokation. If no `%1`
|
`%1` (if not provided, the same default value as above is used), or alternatively, if more parameters are provided, `%*` is passed for the CMake invokation, i.e., if one
|
||||||
is provided, the same default value as above is used. This batch script will create a folder of form
|
wants to pass custom build options, the generator must be passed also using CMake's syntax:
|
||||||
build-vs<VERSION>-<ARCHITECTURE> which will contain the solution and project files for Visual Studio.
|
|
||||||
|
`run-cmake.bat -G "Visual Studio 14 2015 Win64" -DBUILD_IFCPYTHON=0`.
|
||||||
|
|
||||||
|
The batch script will create a folder of form `build-vs<VERSION>-<ARCHITECTURE>\` which will contain the solution and project files for Visual Studio.
|
||||||
**If you wish to use any library from a custom location, modify the paths in run-cmake.bat
|
**If you wish to use any library from a custom location, modify the paths in run-cmake.bat
|
||||||
accordingly**.
|
accordingly**.
|
||||||
|
|
||||||
You can now build the project using the `IfcOpenShell.sln` file in the build folder. Build the `INSTALL` project
|
After this, one can 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<VERSION>-<ARCHITECTURE>\` folder in the project's root
|
if wanted. The project will be installed to `installed-vs<VERSION>-<ARCHITECTURE>\` folder in the project's root
|
||||||
folder and the required IfcOpenShell-Python parts are deployed to the `<PYTHONPATH>\Lib\site-packages\` folder.
|
folder and the required IfcOpenShell-Python parts are deployed to the `<PYTHONPATH>\Lib\site-packages\` folder.
|
||||||
|
|
||||||
All of the dependencies are build as static libraries against the static run-time allowing the developer
|
**Note:** All of the dependencies are build as static libraries against the static run-time allowing the developer
|
||||||
to effortlessly deploy standalone IFCOS binaries.
|
to effortlessly deploy standalone IFCOS binaries.
|
||||||
|
|
||||||
|
|
||||||
Directory Structure
|
Directory Structure
|
||||||
------------------
|
------------------
|
||||||
```
|
```
|
||||||
| build-deps.cmd - Fetches and builds all needed dependencies for IFCOS
|
..
|
||||||
| readme.txt - This file
|
+---build-vs<VER>-<ARCH> - Created by run-cmake.bat, for a certain VS version and target architecture
|
||||||
| run-cmake.bat - Sets environment variables for the dependencies and runs CMake for IFCOS
|
+---deps - Created by build-deps.cmd, common for all VS versions and target architectures
|
||||||
| vs-cfg.cmd - Utility file used by the build scripts
|
+---deps-installed-vs<VER>-<ARCH> - Created by build-deps.cmd, for a certain VS version and target architecture
|
||||||
| BuildDepsCache-<ARCH>.txt - Cache file created by build-deps.cmd
|
+---installed-vs<VER>-<ARCH> - Created by building the IFCOS's INSTALL project
|
||||||
|
|
\---win
|
||||||
+---sln - Contains the old Visual Studio solution and project files
|
| build-deps.cmd - Fetches and builds all needed dependencies for IFCOS
|
||||||
\---utils - Contains various utilities for the build scripts
|
| BuildDepsCache-<ARCH>.txt - Cache file created by build-deps.cmd
|
||||||
|
| readme.md - This file
|
||||||
|
| run-cmake.bat - Sets environment variables for the dependencies and runs CMake for IFCOS
|
||||||
|
| vs-cfg.cmd - Utility file used by the build scripts
|
||||||
|
+---sln - Contains the old Visual Studio solution and project files
|
||||||
|
\---utils - Contains various utilities for the build scripts
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user