File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ make install
29
29
30
30
export PKG_CONFIG_PATH=$PREFIX /lib/pkgconfig
31
31
32
- if [[ $CROSS_COMPILE == " x86_64-apple-darwin13" ]]; then
32
+ if [[ $CROSS_COMPILE == " x86_64-apple-darwin13" || $CROSS_COMPILE == " aarch64-apple-darwin " ]]; then
33
33
export LIBUSB_1_0_CFLAGS=-I${PREFIX} /include/libusb-1.0
34
34
export LIBUSB_1_0_LIBS=" -L${PREFIX} /lib -lusb-1.0"
35
35
fi
@@ -51,7 +51,7 @@ if [[ $CROSS_COMPILE == "i686-w64-mingw32" ]]; then
51
51
CMAKE_EXTRA_FLAG=" $CMAKE_EXTRA_FLAG -DCMAKE_TOOLCHAIN_FILE=./cmake/Toolchain-i686-w64-mingw32.cmake"
52
52
fi
53
53
54
- if [[ $CROSS_COMPILE == " x86_64-apple-darwin13" ]]; then
54
+ if [[ $CROSS_COMPILE == " x86_64-apple-darwin13" || $CROSS_COMPILE == " aarch64-apple-darwin " ]]; then
55
55
CMAKE_EXTRA_FLAG=" $CMAKE_EXTRA_FLAG -DCMAKE_AR=$AR -DCMAKE_RANLIB=$RANLIB "
56
56
fi
57
57
107
107
108
108
cd ${LIB_PATH} /hidapi-0.12.0
109
109
export PKG_CONFIG_PATH=$PREFIX /lib/pkgconfig
110
- libtoolize
111
110
./bootstrap
112
111
./configure --prefix=" $PREFIX " --enable-static --disable-shared --host=" $CROSS_COMPILE "
113
112
make distclean
You can’t perform that action at this time.
0 commit comments