kopia lustrzana https://github.com/cirospaciari/socketify.py
attempt to build macos arm with libuv static
rodzic
701c346752
commit
b07ae890af
|
@ -13,4 +13,13 @@ jobs:
|
|||
sh autogen.sh
|
||||
./configure --build=x86_64-apple-darwin --host=arm64-apple-macos11
|
||||
make
|
||||
ls .libs/*
|
||||
cd ../
|
||||
git clone --recursive https://github.com/cirospaciari/socketify.py.git
|
||||
cd socketify.py/src/socketify/native
|
||||
make macos-arm64-libuv-static
|
||||
cd ../
|
||||
git add libsocketify_darwin_arm64.so
|
||||
git config --global user.email "ciro.spaciari@gmail.com"
|
||||
git config --global user.name "Ciro Spaciari"
|
||||
git commit -m "[GitHub Actions] Updated darwin-arm64 binaries" || true
|
||||
git push "https://cirospaciari:${{ secrets.BUILDTOKEN }}@github.com/cirospaciari/socketify.py.git"
|
|
@ -23,6 +23,20 @@ clean:
|
|||
rm -rf ../uWebSockets/uSockets/boringssl/arm64
|
||||
|
||||
|
||||
macos-arm64-libuv-static:
|
||||
$(MAKE) clean
|
||||
# build boringssl for arm64 (cross compile)
|
||||
cd ../uWebSockets/uSockets/boringssl && mkdir -p arm64 && cd arm64 && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64 .. && make crypto ssl
|
||||
|
||||
# build uWebSockets for arm64 (cross compile)
|
||||
cd ../uWebSockets/uSockets && $(CC) -target arm64-apple-macos11 -I src -I boringssl/include -DUWS_WITH_PROXY -DLIBUS_USE_OPENSSL -DLIBUS_USE_LIBUV -pthread -fPIC -std=c11 -O3 -c src/*.c src/eventing/*.c src/crypto/*.c
|
||||
cd ../uWebSockets/uSockets && $(CXX) -stdlib=libc++ -target arm64-apple-macos11 -I boringssl/include -DUWS_WITH_PROXY -DLIBUS_USE_OPENSSL -DLIBUS_USE_LIBUV -pthread -fPIC -std=c++17 -O3 -c src/crypto/*.cpp
|
||||
cd ../uWebSockets/uSockets && $(AR) rvs uSockets_darwin_arm64.a *.o
|
||||
|
||||
# build CAPI + libsocketify for arm64 (cross compile)
|
||||
$(CXX) -stdlib=libc++ -target arm64-apple-macos11 -I ../../../../libuv/include -I ./src -I ../uWebSockets/src -I ../uWebSockets/uSockets/src -I ../uWebSockets/capi -I ../uWebSockets/uSockets/boringssl/include -DUWS_WITH_PROXY -pthread -fPIC -std=c++17 -c -O3 ./src/$(LIBRARY_NAME).cpp
|
||||
$(CXX) -stdlib=libc++ -target arm64-apple-macos11 -shared -undefined dynamic_lookup -o ../$(LIBRARY_NAME)_darwin_arm64.so $(LIBRARY_NAME).o ../uWebSockets/uSockets/uSockets_darwin_arm64.a ../uWebSockets/uSockets/boringssl/arm64/ssl/libssl.a ../uWebSockets/uSockets/boringssl/arm64/crypto/libcrypto.a ../../../../libuv/.libs/libuv.a -flto -fPIC -lz
|
||||
|
||||
macos-arm64:
|
||||
$(MAKE) clean
|
||||
# build boringssl for arm64 (cross compile)
|
||||
|
|
Ładowanie…
Reference in New Issue