Added ncc project file

This commit is contained in:
netkas 2025-04-04 14:56:34 -04:00
parent 4c99228979
commit 782c7f66f2
Signed by: netkas
GPG key ID: 4D8629441B76E4CC
11 changed files with 635 additions and 0 deletions

29
Makefile Normal file
View file

@ -0,0 +1,29 @@
# Variables
DEFAULT_CONFIGURATION ?= release
LOG_LEVEL = debug
# Default Target
all: release debug release_executable debug_executable
# Build Steps
release:
ncc build --config=release --log-level $(LOG_LEVEL)
debug:
ncc build --config=debug --log-level $(LOG_LEVEL)
release_executable:
ncc build --config=release_executable --log-level $(LOG_LEVEL)
debug_executable:
ncc build --config=debug_executable --log-level $(LOG_LEVEL)
install: release
ncc package install --package=build/release/net.nosial.file_server.ncc --skip-dependencies --build-source --reinstall -y --log-level $(LOG_LEVEL)
test: release
[ -f phpunit.xml ] || { echo "phpunit.xml not found"; exit 1; }
phpunit
clean:
rm -rf build
.PHONY: all install test clean release debug release_executable debug_executable