๐Ÿ A very simple static Gemini server, now with Titan support!
cpp gemini titan gemini-protocol titan-protocol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

build(docker): add simple build.ninja for Dockerfile

Fuwn 0b5e41a0 7a2a8f07

+35 -18
+4 -11
.dockerignore
··· 1 - # Development 2 - *.pem 3 - out/ 1 + # Ignore everything 2 + ** 4 3 5 - # CMake 6 - cmake-build-*/ 7 - CMakeLists.txt 4 + !maple 5 + !build.ninja 8 6 9 - # Ninja 10 - .ninja_* 11 - 12 - # IDE 13 - .idea/
+3
.gitignore
··· 11 11 # Build Artifacts 12 12 build 13 13 14 + # Ninja 15 + .ninja_log 16 +
+8 -7
Dockerfile
··· 1 1 FROM alpine:latest as environment 2 2 3 3 RUN apk update \ 4 - && apk upgrade \ 5 - && apk add --no-cache libstdc++ 4 + && apk upgrade \ 5 + && apk add --no-cache libstdc++ 6 6 7 7 FROM environment as build_environment 8 8 9 9 RUN apk add --no-cache \ 10 - clang \ 11 - ninja \ 12 - alpine-sdk \ 13 - openssl-dev 10 + clang \ 11 + ninja \ 12 + alpine-sdk \ 13 + openssl-dev \ 14 + linux-headers 14 15 15 16 FROM build_environment as builder 16 17 ··· 24 25 25 26 WORKDIR /maple 26 27 27 - COPY --from=builder /maple/out/maple ./ 28 + COPY --from=builder /maple/build/maple ./ 28 29 29 30 EXPOSE 1965 30 31
+20
build.ninja
··· 1 + cc = clang++ 2 + cxxflags = -std=c++23 -Weverything -Wno-padded -Wno-c++98-compat -MMD -Wno-c++98-compat-pedantic 3 + ldflags = -lssl -lcrypto 4 + outdir = build 5 + name = maple 6 + srcdir = $name 7 + 8 + rule compile 9 + command = $cc $cxxflags -c $in -o $out 10 + 11 + rule link 12 + command = $cc $in -o $out $ldflags 13 + 14 + build $outdir/$name.o: compile $srcdir/$name.cc 15 + build $outdir/gemini.o: compile $srcdir/gemini.cc 16 + build $outdir/titan.o: compile $srcdir/titan.cc 17 + 18 + build $outdir/$name: link $outdir/$name.o $outdir/gemini.o $outdir/titan.o 19 + 20 + default $outdir/$name