Skip to content

Commit

Permalink
Turn off building assimp tools; only the assimp libraries are require…
Browse files Browse the repository at this point in the history
…d by O3DE

Signed-off-by: AMZN-Gene <[email protected]>
  • Loading branch information
AMZN-Gene committed Sep 30, 2024
1 parent 3ebfc59 commit 9cbdaf0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 18 deletions.
8 changes: 4 additions & 4 deletions package-system/assimp/Findassimplib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ set(${LIB_NAME}_BIN_DIR ${CMAKE_CURRENT_LIST_DIR}/assimp/bin)
set(${LIB_NAME}_LIBS_DIR ${CMAKE_CURRENT_LIST_DIR}/assimp/lib)

if (${PAL_PLATFORM_NAME} STREQUAL "Linux")
set(${LIB_NAME}_LIBRARY_DEBUG ${${LIB_NAME}_BIN_DIR}/libassimp.so.5.2.4)
set(${LIB_NAME}_LIBRARY_RELEASE ${${LIB_NAME}_BIN_DIR}/libassimp.so.5.2.4)
set(${LIB_NAME}_LIBRARY_DEBUG ${${LIB_NAME}_BIN_DIR}/libassimp.so.5.4.3)
set(${LIB_NAME}_LIBRARY_RELEASE ${${LIB_NAME}_BIN_DIR}/libassimp.so.5.4.3)
set(${LIB_NAME}_STATIC_LIBRARY_DEBUG ${${LIB_NAME}_LIBS_DIR}/libassimp.a)
set(${LIB_NAME}_STATIC_LIBRARY_RELEASE ${${LIB_NAME}_LIBS_DIR}/libassimp.a)
elseif (${PAL_PLATFORM_NAME} STREQUAL "Mac")
set(${LIB_NAME}_LIBRARY_DEBUG ${${LIB_NAME}_BIN_DIR}/libassimp.5.2.4.dylib)
set(${LIB_NAME}_LIBRARY_RELEASE ${${LIB_NAME}_BIN_DIR}/libassimp.5.2.4.dylib)
set(${LIB_NAME}_LIBRARY_DEBUG ${${LIB_NAME}_BIN_DIR}/libassimp.5.4.3.dylib)
set(${LIB_NAME}_LIBRARY_RELEASE ${${LIB_NAME}_BIN_DIR}/libassimp.5.4.3.dylib)
set(${LIB_NAME}_STATIC_LIBRARY_DEBUG ${${LIB_NAME}_LIBS_DIR}/libassimp.a)
set(${LIB_NAME}_STATIC_LIBRARY_RELEASE ${${LIB_NAME}_LIBS_DIR}/libassimp.a)
elseif (${PAL_PLATFORM_NAME} STREQUAL "Windows")
Expand Down
2 changes: 1 addition & 1 deletion package-system/assimp/build_assimp_unix_like.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#

# -Wno-error, turning off warnings as errors because Assimp uses TinyUSDZ for USD support which has compiler warnings.
cmake_base_command="cmake -S temp/src -B temp/src temp/src/CMakeLists.txt -DCMAKE_BUILD_TYPE=Release -DCMAKE_MODULE_PATH=\"$DOWNLOADED_PACKAGE_FOLDERS\" -DASSIMP_BUILD_ZLIB=OFF -DASSIMP_BUILD_ASSIMP_TOOLS=ON -DASSIMP_HUNTER_ENABLED=OFF -DASSIMP_BUILD_USD_IMPORTER=ON -DASSIMP_WARNINGS_AS_ERRORS=OFF -DASSIMP_BUILD_TESTS=ON -DCMAKE_CXX_FLAGS=\"-Wno-unused-const-variable -Wno-error\""
cmake_base_command="cmake -S temp/src -B temp/src temp/src/CMakeLists.txt -DCMAKE_BUILD_TYPE=Release -DCMAKE_MODULE_PATH=\"$DOWNLOADED_PACKAGE_FOLDERS\" -DASSIMP_BUILD_ZLIB=OFF -DASSIMP_BUILD_ASSIMP_TOOLS=OFF -DASSIMP_HUNTER_ENABLED=OFF -DASSIMP_BUILD_USD_IMPORTER=ON -DASSIMP_WARNINGS_AS_ERRORS=OFF -DASSIMP_BUILD_TESTS=ON -DCMAKE_CXX_FLAGS=\"-Wno-unused-const-variable -Wno-error\""

# On Mac, load the toolchain file to make sure
# the build matches compatibility with other Mac libraries
Expand Down
8 changes: 2 additions & 6 deletions package-system/assimp/build_assimp_windows.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
@rem # except the ones we want. This prevents the cmake build system from automatically finding things
@rem # if they happen to be installed locally, which we don't want.

@rem Install Window's DirectX as required to build Assimp
choco install directx -y
choco install directx-sdk -y

@rem # cmake expects fowardslashes:
set "DOWNLOADED_PACKAGE_FOLDERS=%DOWNLOADED_PACKAGE_FOLDERS:\=/%"

Expand All @@ -22,7 +18,7 @@ cmake -S temp/src ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_MODULE_PATH="%DOWNLOADED_PACKAGE_FOLDERS%" ^
-DASSIMP_BUILD_ZLIB=OFF ^
-DASSIMP_BUILD_ASSIMP_TOOLS=ON ^
-DASSIMP_BUILD_ASSIMP_TOOLS=OFF ^
-DASSIMP_BUILD_USD_IMPORTER=ON ^
-DCMAKE_CXX_FLAGS="/EHsc /w" ^
temp/src/CMakeLists.txt || exit /b 1
Expand All @@ -35,7 +31,7 @@ cmake -S temp/src ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_MODULE_PATH="%DOWNLOADED_PACKAGE_FOLDERS%" ^
-DASSIMP_BUILD_ZLIB=OFF ^
-DASSIMP_BUILD_ASSIMP_TOOLS=ON ^
-DASSIMP_BUILD_ASSIMP_TOOLS=OFF ^
-DASSIMP_BUILD_USD_IMPORTER=ON ^
-DCMAKE_CXX_FLAGS="/EHsc /w" ^
temp/src/CMakeLists.txt || exit /b 1
Expand Down
4 changes: 2 additions & 2 deletions package-system/assimp/docker_build_assimp_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ echo "Working with Assimp commit hash ${GIT_HASH}"
echo "Using custom zlib (shared) library at /data/workspace/${ZLIB_LIB_PATH}"


cmake -S . -B /data/workspace/build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_MODULE_PATH="/data/workspace/${ZLIB_LIB_PATH}" -DASSIMP_BUILD_ZLIB=ON -DBUILD_SHARED_LIBS=ON -DASSIMP_BUILD_ASSIMP_TOOLS=ON -DASSIMP_BUILD_USD_IMPORTER=ON -DASSIMP_WARNINGS_AS_ERRORS=OFF -DCMAKE_CXX_FLAGS="-Wno-sign-compare -Wno-maybe-uninitialized" ${AARCH64_FLAGS}
cmake -S . -B /data/workspace/build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_MODULE_PATH="/data/workspace/${ZLIB_LIB_PATH}" -DASSIMP_BUILD_ZLIB=ON -DBUILD_SHARED_LIBS=ON -DASSIMP_BUILD_ASSIMP_TOOLS=OFF -DASSIMP_BUILD_USD_IMPORTER=ON -DASSIMP_WARNINGS_AS_ERRORS=OFF -DCMAKE_CXX_FLAGS="-Wno-sign-compare -Wno-maybe-uninitialized" ${AARCH64_FLAGS}
if [ $? -ne 0 ]
then
echo "Failed generating cmake project for assimp/shared."
Expand All @@ -49,7 +49,7 @@ fi

echo "Using custom zlib (static) library at /data/workspace/${ZLIB_LIB_PATH}"

cmake -S . -B /data/workspace/build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_MODULE_PATH="/data/workspace/${ZLIB_LIB_PATH}" -DASSIMP_BUILD_ZLIB=ON -DBUILD_SHARED_LIBS=OFF -DASSIMP_BUILD_ASSIMP_TOOLS=ON -DASSIMP_BUILD_USD_IMPORTER=ON -DASSIMP_WARNINGS_AS_ERRORS=OFF -DCMAKE_CXX_FLAGS="-Wno-sign-compare -Wno-maybe-uninitialized" ${AARCH64_FLAGS}
cmake -S . -B /data/workspace/build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_MODULE_PATH="/data/workspace/${ZLIB_LIB_PATH}" -DASSIMP_BUILD_ZLIB=ON -DBUILD_SHARED_LIBS=OFF -DASSIMP_BUILD_ASSIMP_TOOLS=OFF -DASSIMP_BUILD_USD_IMPORTER=ON -DASSIMP_WARNINGS_AS_ERRORS=OFF -DCMAKE_CXX_FLAGS="-Wno-sign-compare -Wno-maybe-uninitialized" ${AARCH64_FLAGS}
if [ $? -ne 0 ]
then
echo "Failed generating cmake project for assimp/static."
Expand Down
1 change: 0 additions & 1 deletion package-system/assimp/install_assimp_linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"Install_Paths": [
"include/",
"lib/libassimp.a",
"bin/assimp",
"bin/libassimp.so.5.4.3",
"bin/unit",
"port/PyAssimp/"
Expand Down
1 change: 0 additions & 1 deletion package-system/assimp/install_assimp_mac.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"bin/libassimp.5.4.3.dylib",
"bin/libassimp.5.dylib",
"bin/libassimp.dylib",
"bin/assimp",
"bin/unit",
"port/PyAssimp/"
]
Expand Down
3 changes: 0 additions & 3 deletions package-system/assimp/install_assimp_windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
"lib/Debug/assimp-vc143-mtd.lib",
"lib/Debug/assimp-vc143-mtd.pdb",
"lib/Release/assimp-vc143-mt.lib",
"bin/Release/assimp.exe",
"bin/Release/assimp-vc143-mt.dll",
"bin/Release/unit.exe",
"bin/Debug/assimpd.exe",
"bin/Debug/assimpd.pdb",
"bin/Debug/assimp-vc143-mtd.dll",
"bin/Debug/assimp-vc143-mtd.pdb",
"bin/Debug/unit.exe",
Expand Down

0 comments on commit 9cbdaf0

Please sign in to comment.