File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,12 +9,11 @@ all: download/ncnn-20260113-full-source.zip
99 cd temp/ncnn-20260113/build && CFLAGS=" -O2 -g -pipe -fstack-protector-strong -fno-omit-frame-pointer -nodefaultlibs -fno-builtin -fno-stack-protector -nostdinc++ -mno-outline-atomics -lc" CPPFLAGS=" -I$( shell pwd) /../sysroot/include -D_FORTIFY_SOURCE=2" LDFLAGS=" -L$( shell pwd) /../sysroot/lib" cmake ../ -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_INSTALL_PREFIX=/usr/local/ -DCMAKE_SYSTEM_PROCESSOR=$(OHOS_ARCH ) -DNCNN_SHARED_LIB=ON -DNCNN_SIMPLEOCV=ON -DNCNN_BUILD_EXAMPLES=ON -DNCNN_STDIO=ON -DNCNN_STRING=ON -DNCNN_BUILD_BENCHMARK=ON -DNCNN_OPENMP=OFF -DNCNN_VULKAN=ON -DCMAKE_C_COMPILER=$(OHOS_SDK_HOME ) /native/llvm/bin/$(OHOS_ARCH ) -unknown-linux-ohos-clang -DCMAKE_CXX_COMPILER=$(OHOS_SDK_HOME ) /native/llvm/bin/$(OHOS_ARCH ) -unknown-linux-ohos-clang++ -DCMAKE_BUILD_TYPE=RelWithDebInfo
1010 cd temp/ncnn-20260113/build && make -j $(shell nproc) && make install -j $(shell nproc) DESTDIR=$(shell pwd) /build
1111 mkdir -p build/usr/local/share/benchncnn
12- cp -rfv temp/ncnn-20260113/benchmark/* .param build/usr/local/share/benchncnn/
1312 cp -rfv temp/ncnn-20260113/build/benchmark/benchncnn build/usr/local/share/benchncnn/
1413 mkdir -p ../sysroot
1514 $(OHOS_SDK_HOME ) /native/llvm/bin/llvm-strip build/usr/local/lib/* .so
1615 cp -rfv build/usr/local/. ../sysroot | tee file.lst
1716
1817download/ncnn-20260113-full-source.zip :
1918 mkdir -p download
20- cd download && $(WGET ) https://github.com/Tencent/ncnn/releases/download/20260113/ncnn-20260113-full-source.zip
19+ cd download && $(WGET ) https://github.com/Tencent/ncnn/releases/download/20260113/ncnn-20260113-full-source.zip
You can’t perform that action at this time.
0 commit comments