1. 增加 Readme.md
2. 修复 CMakeLists.txt 实现多系统多架构构建 3. 添加 Dockerfile 使用 docker 在多系统多架构下进行编译 4. 修复 library.h 和 .cpp 调整 windows 和 linux 库的差异导致的无法编译通过
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM alpine:3.19 AS deps
|
||||
|
||||
WORKDIR /usr
|
||||
|
||||
RUN apk add gcc g++ cmake make acl
|
||||
|
||||
FROM alpine:3.19 AS build
|
||||
|
||||
WORKDIR /hikbuild
|
||||
|
||||
COPY --from=deps /usr /usr
|
||||
COPY --from=deps /lib /lib
|
||||
COPY . /hikbuild
|
||||
|
||||
RUN cmake . -D Arch=${TARGETARCH} -D CMAKE_BUILD_TYPE=RELEASE && make
|
||||
|
||||
FROM alpine:3.19 AS export
|
||||
|
||||
WORKDIR /home
|
||||
COPY --from=build /hikbuild/build /home
|
||||
|
||||
#docker buildx build --platform linux/amd64,linux/arm64 --output type=local,dest=/hikbuild/ .
|
||||
Reference in New Issue
Block a user