2023-11-05 15:30:11 +00:00
|
|
|
#!/bin/bash 2>nul || goto :windows
|
|
|
|
|
|
|
|
# linux + osx -----------------------------------------------------------------
|
|
|
|
cd `dirname $0`
|
|
|
|
|
|
|
|
git clone https://github.com/assimp/assimp && cd assimp && git checkout 05115b07
|
2024-08-27 10:46:11 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DASSIMP_BUILD_TESTS=OFF -D_FORTIFY_SOURCE=0 .
|
2023-11-05 15:30:11 +00:00
|
|
|
make -j 8
|
|
|
|
cp bin/libassimp.so ../libassimp.so
|
|
|
|
cp bin/libassimp.so ../libassimp.so.5
|
|
|
|
cp bin/libassimp.so ../libassimp.so.5.1.4
|
|
|
|
cp bin/libassimp.dylib ../libassimp.dylib
|
|
|
|
cp bin/libassimp.dylib ../libassimp.5.dylib
|
|
|
|
cp bin/libassimp.dylib ../libassimp.5.0.1.dylib
|
|
|
|
cd ..
|
|
|
|
|
2023-12-04 08:07:11 +00:00
|
|
|
cc ass2iqe.c -o ass2iqe.linux -O2 -I. -I ../engine/split -I assimp/include/ libassimp.so -lm
|
|
|
|
cc ass2iqe.c -o ass2iqe.osx -O2 -I. -I ../engine/split -I assimp/include/ libassimp.dylib -lm
|
|
|
|
|
|
|
|
cc iqe2iqm.c -o iqe2iqm.linux -O2 -I. -I ../engine/split -lm
|
|
|
|
cc iqe2iqm.c -o iqe2iqm.osx -O2 -I. -I ../engine/split -lm
|
2023-11-05 15:30:11 +00:00
|
|
|
|
|
|
|
exit
|
|
|
|
|
|
|
|
|
|
|
|
:windows -----------------------------------------------------------------------
|
|
|
|
@echo off
|
|
|
|
cd "%~dp0"
|
|
|
|
|
2023-12-04 08:07:11 +00:00
|
|
|
if not exist assimp-vc14?-mt.lib (
|
|
|
|
if not exist "fart.exe" echo fart tool required && exit /b
|
|
|
|
|
2023-11-05 15:30:11 +00:00
|
|
|
git clone https://github.com/assimp/assimp && md assimp\.build && pushd assimp\.build && git checkout 05115b07
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release && (make || msbuild assimp.sln -m -p:Configuration=Release)
|
|
|
|
popd
|
|
|
|
|
2023-12-04 08:07:11 +00:00
|
|
|
xcopy /y assimp\.build\bin\release\*.dll
|
|
|
|
xcopy /y assimp\.build\lib\release\*.lib
|
2023-11-05 15:30:11 +00:00
|
|
|
|
|
|
|
copy /y assimp\include\assimp\config.h.in assimp\config.h && fart -- assimp\config.h "cmakedefine" "//#define"
|
2023-12-04 08:07:11 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
cl ass2iqe.c -I. -I ..\engine\split -I assimp\include assimp-vc14?-mt.lib /O2 /Oy /MT /DNDEBUG
|
|
|
|
|
|
|
|
cl iqe2iqm.cpp /O2 /Oy /MT /DNDEBUG
|