Repository navigation
5.1.0: build profiles, a client build without the server - #209
Conversation
- make PROFILE=client: CAMEX_SERVER=0 (noserver.c in place of server.c and cpaceguard.c), with TAP networks and mesh; make alone is PROFILE=full (server is the same), now with L2 and mesh, without L2 on Windows and macOS. A flag given on its own wins over its profile. - Without the server: --mode server and --format nginx-map / nginx-index end with an error that says why; --help shows no server options. - camex --version: a second line, features: client, server, l2, mesh. - Release: camex-<arch> is the full camex, camex-<arch>-full the same file until 6.0.0, new camex-arm-client and camex-mipsel-client; build-musl.sh checks the client under qemu. - Android library: the client profile (no server, no TAP, no mesh yet). - mesh and bridge state in bss instead of initialised data: 45 KB less on ARM (full ~360 KB, client ~270 KB). - A build directory remembers its flags (.flags): another profile in the same BUILD_DIR rebuilds every object. - docker/test-e2e-client-profile.sh; test-e2e-tap.sh builds its camex without L2 itself; docs/build.md: the profile and flag tables.
PR Summary by QodoAdd full and client build profiles for camex 5.1.0
AI Description
Merge Risk
|
Code Review by Qodo
1. Client build still ships server modules
|
|
On the Qodo review of 0b91578:
|
Build profiles (#204); version 5.1.0.
make PROFILE=client: a client without the server (CAMEX_SERVER=0:noserver.cin place ofserver.candcpaceguard.c), with TAP networks and mesh.makealone isPROFILE=full(serveris the same): everything, now with L2 and mesh; without L2 on Windows and macOS. A flag given on its own wins over its profile (PROFILE=client CAMEX_L2=0 CAMEX_MESH=0).--mode serverand--format nginx-map/nginx-indexend with an error that says why;--helpshows no server options.camex --versionhas a second line,features: client, server, l2, mesh.camex-<arch>is the full camex,camex-<arch>-fullthe same file until 6.0.0, newcamex-arm-clientandcamex-mipsel-client;ci/build-musl.shchecks the client under qemu..flags): another profile in the sameBUILD_DIRrebuilds every object.docs/build.md: the profile and flag tables; README (three languages),docs/networks.md.docker/test-e2e-client-profile.sh(the client profile against a full server over UDP and TCP), a CI step for it;test-e2e-tap.shbuilds its camex without L2 itself;test-e2e-mesh.shandtest-e2e-bridge.shtakeCAMEX_BINARYwhen it is the full one.Checked locally in the CI's images:
make test, all 26 e2e tests of the workflow, the APK (testReleaseUnitTest lintDebug assembleRelease), Windows x86_64 and i686 under Wine,ci/build-musl.sh armwith qemu, builds of every profile and flag set on x86_64, arm and mipsel without warnings,.github/check-version.sh. Not checked locally: macOS (no image) and mipsel with the OpenWrt toolchain under qemu.Closes #204.