The Dockerfile can tell Conan exactly what its system is.

As long as we know precisely what we're running, there's no need
to trust in Conan's guesswork.

(This also uses 'docker-build' for a build directory, to reduce
risk of conflict with the local repo checkout.)
This commit is contained in:
Par Winzell 2019-05-07 13:18:25 -07:00
parent 8ca855db65
commit 225d076f03
1 changed files with 4 additions and 4 deletions

View File

@ -21,8 +21,8 @@ RUN curl -L https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/20192/fbx2
rm -rf /fbxsdktemp rm -rf /fbxsdktemp
# Build and install # Build and install
RUN conan install . -i build -s build_type=Release -e FBXSDK_SDKS=/fbx2gltf/sdk && \ RUN conan install . -i docker-build -s build_type=Release -s compiler=gcc -s compiler.version=5 -s compiler.libcxx=libstdc++11 && \
conan build -bf build . && \ conan build -bf docker-build . && \
cp build/FBX2glTF /usr/bin && \ cp docker-build/FBX2glTF /usr/bin && \
cd / && \ cd / && \
rm -rf /fbx2gltf rm -rf /fbx2gltf /root/.conan