build.cmds.CmdCreatePkgConfig: Add module

Implement the functionality of create-pkg-config.sh in a Python
module CmdCreatePkgConfig.py. This allows to remove
create-pkg-config.sh and jw-build-functions.sh.

Note that the translation was done pretty literally to play it safe.
More code can and should be removed by taking advantage of the fact
that jw-projects.py knows more about the project than the shell
scripts.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-11-16 17:31:16 +01:00
commit 31537a0bd6
4 changed files with 59 additions and 557 deletions

View file

@ -63,8 +63,8 @@ ifeq ($(CREATE_PKG_CONFIG),true)
CREATE_PKG_CONFIG_OPTS += -l "-L$(PROJECT_DIRPATH)/lib -l$(PROJECT)"
endif
$(LOCAL_PKG_CONFIG): $(PROJECT_DESCR_FILE) $(JWBDIR)/make/make.mk $(JWB_SCRIPT_DIR)/create-pkg-config.sh
/bin/bash $(JWB_SCRIPT_DIR)/create-pkg-config.sh \
$(LOCAL_PKG_CONFIG): $(PROJECT_DESCR_FILE) $(JWBDIR)/make/make.mk
$(proj_query_cmd) create-pkg-config \
-F $< \
-n $(PROJECT) \
-v $(DIST_VERSION) \