Skip to content

Commit

Permalink
Update libjpeg script
Browse files Browse the repository at this point in the history
  • Loading branch information
MoNTE48 committed Dec 3, 2024
1 parent fbcf711 commit 41c0fa4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libjpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ cd libjpeg-src/build

cmake .. -DANDROID_STL="c++_static" -DANDROID_NATIVE_API_LEVEL="$NATIVE_API_LEVEL" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="." \
-DENABLE_SHARED=OFF \
-DANDROID_ABI="$ANDROID_ABI" \
-DANDROID_PLATFORM="$API" \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK/build/cmake/android.toolchain.cmake"

cmake --build . -j

make DESTDIR=$PWD/../../../../libjpeg install
make install -s

# update `include` folder
rm -rf ../../../../libjpeg/include
cp -r ../../../../libjpeg/opt/libjpeg-turbo/include ../../../output/libjpeg/include
cp -r include ../../../output/libjpeg/include
# update lib
rm -rf ../../../output/libjpeg/lib/$TARGET_ABI/libjpeg.a
cp -r libjpeg.a ../../../output/libjpeg/lib/$TARGET_ABI/libjpeg.a
Expand Down

0 comments on commit 41c0fa4

Please sign in to comment.