-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
146 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
set -eu | ||
|
||
mkdir -p $PREFIX | ||
cp -r include $PREFIX | ||
cp -r lib $PREFIX | ||
: "${PREFIX?ENV VAR MUST BE SET}" | ||
|
||
mkdir -p "$PREFIX" | ||
cp -r include "$PREFIX" | ||
cp -r lib "$PREFIX" | ||
|
||
# Strip out any dylib files to ensure static linking | ||
find $PREFIX -name "*.dylib" -exec rm -rf {} \; | ||
find "$PREFIX" -name "*.dylib" -exec rm -rf {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
set -eu | ||
|
||
mkdir -p $PREFIX | ||
cp -r include $PREFIX | ||
cp -r lib $PREFIX | ||
: "${PREFIX?ENV VAR MUST BE SET}" | ||
|
||
mkdir -p "$PREFIX" | ||
cp -r include "$PREFIX" | ||
cp -r lib "$PREFIX" | ||
|
||
# Strip out any dylib files to ensure static linking | ||
find $PREFIX -name "*.dylib" -exec rm -rf {} \; | ||
find "$PREFIX" -name "*.dylib" -exec rm -rf {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
set -eu | ||
|
||
: "${PREFIX?ENV VAR MUST BE SET}" | ||
|
||
# SIMD is only available for x86, so disable for consistency between ABIs. | ||
./configure --host=$HOST_TRIPLET --build=$BUILD_TRIPLET --without-turbojpeg --without-simd | ||
make -j $CPU_COUNT | ||
make install prefix=$PREFIX | ||
./configure \ | ||
--host="$HOST_TRIPLET" \ | ||
--build="$BUILD_TRIPLET" \ | ||
--without-turbojpeg \ | ||
--without-simd | ||
make -j "$CPU_COUNT" | ||
make install prefix="$PREFIX" | ||
|
||
rm -r "${PREFIX:?}/bin" | ||
rm -r "$PREFIX/doc" | ||
rm -r "$PREFIX/man" | ||
|
||
mv "${PREFIX:?}/lib"?? "$PREFIX/lib" # lib32 or lib64 | ||
|
||
rm -r $PREFIX/{bin,doc,man} | ||
mv $PREFIX/lib?? $PREFIX/lib # lib32 or lib64 | ||
rm -r $PREFIX/lib/{*.la,pkgconfig} | ||
rm -r "${PREFIX:?}/lib/pkgconfig" | ||
find "${PREFIX:?}/lib/" -name "*.la" -exec rm -rf {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
set -eu | ||
|
||
./configure --host=$HOST_TRIPLET --build=$BUILD_TRIPLET | ||
make -j $CPU_COUNT | ||
make install prefix=$PREFIX | ||
: "${PREFIX?ENV VAR MUST BE SET}" | ||
|
||
find $PREFIX -type l | xargs rm | ||
./configure --host="$HOST_TRIPLET" --build="$BUILD_TRIPLET" | ||
make -j "$CPU_COUNT" | ||
make install prefix="$PREFIX" | ||
|
||
rm -r $PREFIX/bin | ||
find "$PREFIX" -type l -print0 | xargs -0 rm | ||
|
||
mv $PREFIX/include/libpng16/* $PREFIX/include | ||
rmdir $PREFIX/include/libpng16 | ||
# do not unintentionally delete /bin | ||
rm -r "${PREFIX:?}/bin" | ||
|
||
mv "$PREFIX/include/libpng16/"* "$PREFIX/include" | ||
rmdir "$PREFIX/include/libpng16" | ||
|
||
# Some versions of Android (e.g. API level 26) have a libpng.so in /system/lib, but our copy | ||
# has an SONAME of libpng16.so, so there's no conflict. | ||
# rm -r $PREFIX/lib/{*.a,*.la,pkgconfig} | ||
# find "${PREFIX:?}/lib/" -name '*.a' -exec rm -r {} + | ||
# find "${PREFIX:?}/lib/" -name '*.la' -exec rm -r {} + | ||
# rm -r "$PREFIX/lib/pkgconfig" | ||
|
||
# Downstream recipes expect the name libpng.a, not libpng16.a | ||
mv $PREFIX/lib/libpng16.a $PREFIX/lib/libpng.a | ||
mv "$PREFIX/lib/libpng16.a" "$PREFIX/lib/libpng.a" | ||
|
||
rm -r $PREFIX/share | ||
rm -r "$PREFIX/share" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
def test_png(self): | ||
def test_png(): | ||
import io | ||
|
||
import matplotlib.pyplot as plt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
set -eu | ||
|
||
mkdir -p $PREFIX | ||
: "${PREFIX?ENV VAR MUST BE SET}" | ||
|
||
mkdir -p "$PREFIX" | ||
cp -r ninja wheel | ||
|
||
# Ensure the binary is executable | ||
chmod +x wheel/ninja/data/bin/ninja | ||
|
||
# Write the metadata for the entry point script | ||
mkdir -p wheel/ninja-$VERSION.dist-info | ||
cat << EOF > wheel/ninja-$VERSION.dist-info/entry_points.txt | ||
mkdir -p "wheel/ninja-$VERSION.dist-info" | ||
cat << EOF > "wheel/ninja-$VERSION.dist-info/entry_points.txt" | ||
[console_scripts] | ||
ninja = ninja:ninja | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
set -eu | ||
|
||
mkdir -p $PREFIX | ||
cp -r include $PREFIX | ||
cp -r lib $PREFIX | ||
: "${PREFIX?ENV VAR MUST BE SET}" | ||
|
||
mkdir -p "$PREFIX" | ||
cp -r include "$PREFIX" | ||
cp -r lib "$PREFIX" | ||
|
||
# Strip out any dylib files to ensure static linking | ||
find $PREFIX -name "*.dylib" -exec rm -rf {} \; | ||
find "$PREFIX" -name "*.dylib" -exec rm -rf {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
set -eu | ||
|
||
mkdir -p $PREFIX | ||
cp -r include $PREFIX | ||
cp -r lib $PREFIX | ||
: "${PREFIX?ENV VAR MUST BE SET}" | ||
|
||
mkdir -p "$PREFIX" | ||
cp -r include "$PREFIX" | ||
cp -r lib "$PREFIX" | ||
|
||
# Strip out any dylib files to ensure static linking | ||
find $PREFIX -name "*.dylib" -exec rm -rf {} \; | ||
find "$PREFIX" -name "*.dylib" -exec rm -rf {} \; |
Oops, something went wrong.