Skip to content

Commit d9bde0f

Browse files
committed
Merge remote-tracking branch 'upstream/development' into SceneManager-change-scene-accessing
2 parents 23e54fa + ad9da79 commit d9bde0f

1,744 files changed

Lines changed: 199548 additions & 65155 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Engine/lib/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ set(ZLIB_ROOT "${ZLIB_ROOT}" CACHE STRING "ZLib root location" FORCE)
66
mark_as_advanced(ZLIB_ROOT)
77
# Png depends on zlib
88
add_subdirectory(zlib ${TORQUE_LIB_TARG_DIRECTORY}/zlib EXCLUDE_FROM_ALL)
9+
set(ZLIB_FOUND 1)
10+
set(ZLIB_LIBRARIES zlib)
911

1012
if(APPLE)
1113
enable_language(OBJC)
@@ -116,8 +118,7 @@ add_subdirectory(convexMath ${TORQUE_LIB_TARG_DIRECTORY}/convexMath EXCLUDE_FROM
116118

117119
# Assimp
118120
advanced_option(ASSIMP_HUNTER_ENABLED "Enable Hunter package manager support" OFF)
119-
set(ASSIMP_BUILD_NO_OWN_ZLIB ON CACHE BOOL "" FORCE)
120-
mark_as_advanced(ASSIMP_BUILD_NO_OWN_ZLIB)
121+
advanced_option(ASSIMP_BUILD_NO_OWN_ZLIB "" ON)
121122
advanced_option(BUILD_SHARED_LIBS "Build package with shared libraries." OFF )
122123
advanced_option(ASSIMP_BUILD_FRAMEWORK "Build package as Mac OS X Framework bundle." OFF )
123124
advanced_option(ASSIMP_DOUBLE_PRECISION "Set to ON to enable double precision processing" OFF )

Engine/lib/assimp/Build.md

Lines changed: 47 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,43 @@
11
# Build / Install Instructions
22

3-
## Install on all platforms using vcpkg
4-
You can download and install assimp using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager:
5-
```bash
6-
git clone https://github.com/Microsoft/vcpkg.git
7-
cd vcpkg
8-
./bootstrap-vcpkg.sh
9-
./vcpkg integrate install
10-
vcpkg install assimp
11-
```
12-
The assimp port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
13-
14-
## Install on Ubuntu
15-
You can install the Asset-Importer-Lib via apt:
16-
```
17-
sudo apt-get update
18-
sudo apt-get install libassimp-dev
19-
```
20-
21-
## Install pyassimp
22-
You need to have pip installed:
23-
```
24-
pip install pyassimp
25-
```
26-
273
## Manual build instructions
28-
29-
### Install CMake
30-
Asset-Importer-Lib can be build for a lot of different platforms. We are using cmake to generate the build environment for these via cmake. So you have to make sure that you have a working cmake-installation on your system. You can download it at https://cmake.org/ or for linux install it via
31-
```bash
32-
sudo apt-get install cmake
33-
```
4+
### Install prerequisites
5+
You need to install
6+
* cmake
7+
* Your compiler
348

359
### Get the source
3610
Make sure you have a working git-installation. Open a command prompt and clone the Asset-Importer-Lib via:
3711
```bash
3812
git clone https://github.com/assimp/assimp.git
3913
```
4014
### Build from source:
15+
* For *assimp.lib* without any tools:
4116
```bash
4217
cd assimp
43-
cmake CMakeLists.txt
18+
cmake CMakeLists.txt
4419
cmake --build .
4520
```
4621

47-
### Build instructions for Windows with Visual-Studio
22+
* For assimp with the common tools like *assimp-cmd*
23+
```bash
24+
cd assimp
25+
cmake CMakeLists.txt -DASSIMP_BUILD_ASSIMP_TOOLS=ON
26+
cmake --build .
27+
```
28+
Note that by default this builds a shared library into the `bin` directory. If you want to build it as a static library see the build options at the bottom of this file.
4829

49-
First you have to install Visual-Studio on your windows-system. You can get the Community-Version for free here: https://visualstudio.microsoft.com/de/downloads/
30+
### Build instructions for Windows with Visual-Studio
31+
First, you have to install Visual-Studio on your windows-system. You can get the Community-Version for free here: https://visualstudio.microsoft.com/de/downloads/
5032
To generate the build environment for your IDE open a command prompt, navigate to your repo and type:
5133
```bash
5234
cmake CMakeLists.txt
5335
```
54-
This will generate the project files for the visual studio. All dependencies used to build Asset-IMporter-Lib shall be part of the repo. If you want to use you own zlib.installation this is possible as well. Check the options for it.
36+
This will generate the project files for the visual studio. All dependencies used to build Asset-Importer-Lib shall be part of the repo. If you want to use you own zlib installation this is possible as well. Check the options for it.
5537

5638
### Build instructions for Windows with UWP
5739
See <https://stackoverflow.com/questions/40803170/cmake-uwp-using-cmake-to-build-universal-windows-app>
5840

59-
### Build instructions for Linux / Unix
60-
Open a terminal and got to your repository. You can generate the makefiles and build the library via:
61-
62-
```bash
63-
cmake CMakeLists.txt
64-
make -j4
65-
```
66-
The option -j descripes the number of parallel processes for the build. In this case make will try to use 4 cores for the build.
67-
68-
If you want to use a IDE for linux you can try QTCreator for instance.
69-
7041
### Build instructions for MinGW
7142
Older versions of MinGW's compiler (e.g. 5.1.0) do not support the -mbig_obj flag
7243
required to compile some of assimp's files, especially for debug builds.
@@ -93,9 +64,9 @@ The cmake-build-environment provides options to configure the build. The followi
9364
- **ASSIMP_ANDROID_JNIIOSYSTEM (default OFF)**: Android JNI IOSystem support is active.
9465
- **ASSIMP_NO_EXPORT (default OFF)**: Disable Assimp's export functionality.
9566
- **ASSIMP_BUILD_ZLIB (default OFF)**: Build our own zlib.
96-
- **ASSIMP_BUILD_ALL_EXPORTERS_BY_DEFAULT (default ON)**: Build Assimp with all exporter senabled.
97-
- **ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT (default ON)**: Build Assimp with all importer senabled.
98-
- **ASSIMP_BUILD_ASSIMP_TOOLS (default ON)**: If the supplementary tools for Assimp are built in addition to the library.
67+
- **ASSIMP_BUILD_ALL_EXPORTERS_BY_DEFAULT (default ON)**: Build Assimp with all exporters enabled.
68+
- **ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT (default ON)**: Build Assimp with all importers enabled.
69+
- **ASSIMP_BUILD_ASSIMP_TOOLS (default OFF)**: If the supplementary tools for Assimp are built in addition to the library.
9970
- **ASSIMP_BUILD_SAMPLES (default OFF)**: If the official samples are built as well (needs Glut).
10071
- **ASSIMP_BUILD_TESTS (default ON)**: If the test suite for Assimp is built in addition to the library.
10172
- **ASSIMP_COVERALLS (default OFF)**: Enable this to measure test coverage.
@@ -110,3 +81,31 @@ The cmake-build-environment provides options to configure the build. The followi
11081
- **USE_STATIC_CRT (default OFF)**: Link against the static MSVC runtime libraries.
11182
- **ASSIMP_BUILD_DRACO (default OFF)**: Build Draco libraries. Primarily for glTF.
11283
- **ASSIMP_BUILD_ASSIMP_VIEW (default ON, if DirectX found, OFF otherwise)**: Build Assimp view tool (requires DirectX).
84+
85+
### Install prebuild binaries
86+
## Install on all platforms using vcpkg
87+
You can download and install assimp using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager:
88+
```bash
89+
git clone https://github.com/Microsoft/vcpkg.git
90+
cd vcpkg
91+
./bootstrap-vcpkg.sh
92+
./vcpkg integrate install
93+
./vcpkg install assimp
94+
```
95+
The assimp port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
96+
97+
### Install on Ubuntu
98+
You can install the Asset-Importer-Lib via apt:
99+
```
100+
sudo apt-get update
101+
sudo apt-get install libassimp-dev
102+
```
103+
104+
### Install pyassimp
105+
You need to have pip installed:
106+
```
107+
pip install pyassimp
108+
```
109+
110+
### Get the SDK from itchi.io
111+
Just check [itchi.io](https://kimkulling.itch.io/the-asset-importer-lib)

0 commit comments

Comments
 (0)