Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit 95f0c33

Browse files
Make libc++ as a normal package, Show Number of Compiled Packages and All While Compiling
1 parent 046be2f commit 95f0c33

File tree

92 files changed

+27
-14
lines changed

Some content is hidden

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

92 files changed

+27
-14
lines changed

build-all.sh

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,13 @@ setupPackage()
248248
elif [ -e "Makefile" ]; then
249249
echo "cd .." >> build.sh
250250
echo "make -j $(nproc)" >> build.sh
251-
echo "make -j $(nproc) install" >> build.sh
251+
252+
if [ -e "$INIT_DIR/packages/$package/custom-make-install.sh" ]; then
253+
echo "$INIT_DIR/packages/$package/custom-make-install.sh" >> build.sh
254+
else
255+
echo "make -j $(nproc) install" >> build.sh
256+
fi
257+
252258
echo "cd build_dir" >> build.sh
253259
else
254260
echo "Unsupported build system. Stopping..."
@@ -344,6 +350,9 @@ compileAll()
344350
echo "-- Starting Building --"
345351
echo ""
346352

353+
local packageNum=1
354+
local packageCount=$(cat "$INIT_DIR/workdir/index" | wc -l)
355+
347356
for package in $(cat "$INIT_DIR/workdir/index"); do
348357
local packageBuildDir="$INIT_DIR/workdir/$package/build_dir"
349358
local packageDestDirPkg="$INIT_DIR/workdir/$package/destdir-pkg"
@@ -393,9 +402,9 @@ compileAll()
393402
fi
394403

395404
if [ -f "$INIT_DIR/built-pkgs/$package-$pkgVersion-$ARCHITECTURE.rat" ]; then
396-
echo "-- Package '$package' already built."
405+
echo "-- [$packageNum/$packageCount] Package '$package' already built."
397406
else
398-
echo "-- Compiling Package '$package'..."
407+
echo "-- [$packageNum/$packageCount] Compiling Package '$package'..."
399408

400409
if [ -f "../hide-host-include" ]; then
401410
sudo mount --bind $PREFIX/include /usr/include
@@ -408,12 +417,12 @@ compileAll()
408417
fi
409418

410419
if [ "$?" != "0" ]; then
411-
echo "- Package: '"$package"' failed to compile. Check logs"
420+
echo "- [$packageNum/$packageCount] Package: '"$package"' failed to compile. Check logs"
412421
exit 0
413422
fi
414423

415424
if [ ! -d "$packageDestDirPkg/data/data/com.micewine.emu" ]; then
416-
echo "- Package: '"$package"' failed to compile. Check logs"
425+
echo "- [$packageNum/$packageCount] Package: '"$package"' failed to compile. Check logs"
417426
exit 0
418427
fi
419428

@@ -433,6 +442,8 @@ compileAll()
433442
rm -rf "$INIT_DIR/workdir/$package"
434443
fi
435444
fi
445+
446+
packageNum=$(( $packageNum + 1 ))
436447
done
437448
}
438449

@@ -512,11 +523,3 @@ setupBuildEnv 29 $ARCHITECTURE
512523
setupPackages
513524

514525
compileAll
515-
516-
cd "$INIT_DIR"
517-
518-
mkdir -p "$INIT_DIR/cache/libc++_shared/files/usr/lib"
519-
520-
cp "$INIT_DIR/cache/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/$ARCHITECTURE-linux-android/libc++_shared.so" "$INIT_DIR/cache/libc++_shared/files/usr/lib"
521-
522-
./create-rat-pkg.sh "libc++_shared" "Android C++ Library" "" "$ARCHITECTURE" "1.0" "library" "$INIT_DIR/cache/libc++_shared" "$INIT_DIR/built-pkgs"

packages/Vulkan-Tools/01-no-android.patch

100644100755
File mode changed.

packages/Vulkan-Tools/02-do-not-search-KHR_display-automatically.patch

100644100755
File mode changed.

packages/Vulkan-Tools/build.sh

100644100755
File mode changed.

packages/box64/build.sh

100644100755
File mode changed.

packages/fakeintl/Makefile

100644100755
File mode changed.

packages/fakeintl/build.sh

100644100755
File mode changed.

packages/fakeintl/libintl.h

100644100755
File mode changed.

packages/glib/build.sh

100644100755
File mode changed.

packages/glib/gio-gdbusprivate.c.patch

100644100755
File mode changed.

0 commit comments

Comments
 (0)