mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Swapped glib integer types in the sysinfo interface for standard stdint types to remove glib coupling in the header.
Replaced glib string/util usage in the win32 sysinfo backend with local helpers, a small string builder, and Windows UTF-8 conversion, removing the glib dependency there.
This commit is contained in:
30
Makefile
30
Makefile
@@ -6,24 +6,38 @@ MESON_SETUP_ARGS ?=
|
||||
MESON_COMPILE_ARGS ?=
|
||||
MESON_INSTALL_ARGS ?=
|
||||
|
||||
.PHONY: all configure build reconfigure install clean distclean
|
||||
CONFIG_STAMP := $(BUILD_DIR)/build.ninja
|
||||
|
||||
.PHONY: all configure build reconfigure install uninstall clean distclean
|
||||
|
||||
all: build
|
||||
|
||||
configure:
|
||||
$(MESON) setup $(BUILD_DIR) --prefix=$(PREFIX) $(MESON_SETUP_ARGS)
|
||||
# Only run initial meson setup if we don't have a configured build dir yet.
|
||||
$(CONFIG_STAMP):
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
@env NINJA=$(NINJA) $(MESON) setup $(BUILD_DIR) --prefix=$(PREFIX) $(MESON_SETUP_ARGS)
|
||||
|
||||
configure: $(CONFIG_STAMP)
|
||||
|
||||
build: configure
|
||||
$(MESON) compile -C $(BUILD_DIR) $(MESON_COMPILE_ARGS)
|
||||
@env NINJA=$(NINJA) $(MESON) compile -C $(BUILD_DIR) $(MESON_COMPILE_ARGS)
|
||||
|
||||
reconfigure:
|
||||
$(MESON) setup --reconfigure $(BUILD_DIR) --prefix=$(PREFIX) $(MESON_SETUP_ARGS)
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
@env NINJA=$(NINJA) $(MESON) setup --reconfigure $(BUILD_DIR) --prefix=$(PREFIX) $(MESON_SETUP_ARGS)
|
||||
|
||||
install: build
|
||||
$(MESON) install -C $(BUILD_DIR) $(MESON_INSTALL_ARGS)
|
||||
@env NINJA=$(NINJA) $(MESON) install -C $(BUILD_DIR) $(MESON_INSTALL_ARGS)
|
||||
|
||||
uninstall: configure
|
||||
@$(NINJA) -C $(BUILD_DIR) uninstall
|
||||
|
||||
clean:
|
||||
$(MESON) compile -C $(BUILD_DIR) --clean
|
||||
@if [ -f "$(CONFIG_STAMP)" ]; then \
|
||||
env NINJA=$(NINJA) $(MESON) compile -C $(BUILD_DIR) --clean; \
|
||||
else \
|
||||
echo "Nothing to clean (no $(CONFIG_STAMP))."; \
|
||||
fi
|
||||
|
||||
distclean:
|
||||
rm -rf $(BUILD_DIR)
|
||||
rm -rf $(BUILD_DIR)
|
||||
|
||||
Reference in New Issue
Block a user