Skip to content

Commit

Permalink
Update poco.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Oct 15, 2024
1 parent 15e5b22 commit f36ce47
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion external/updates/poco.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ POCO_DEPENDENCIES = \
$(if $(BR2_PACKAGE_POCO_NETSSL_OPENSSL),openssl) \
$(if $(BR2_PACKAGE_POCO_XML),expat)

# Verbose echo statements to indicate the start of the build process
define POCO_VERBOSE_MSG
@echo "***************************************************************************"
@echo "* Building Poco version $(POCO_VERSION)"
@echo "* Including components: Net"
@echo "* Excluding components: $(POCO_OMIT)"
@echo "* Using configuration options: $(POCO_CONF_OPTS)"
@echo "***************************************************************************"
endef

POCO_OMIT = \
Data/ODBC \
PageCompiler \
Expand All @@ -41,8 +51,9 @@ POCO_OMIT = \
$(if $(BR2_PACKAGE_POCO_XML),,XML) \
$(if $(BR2_PACKAGE_POCO_ZIP),,Zip)

# Always include Net component
# Always include Net component and echo that it's included
POCO_CONF_OPTS += --include=Net
$(info [INFO] Poco Net component included)

ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
POCO_CONF_OPTS += --no-fpenvironment --no-wstring
Expand All @@ -66,6 +77,7 @@ POCO_LDFLAGS += -latomic
endif

define POCO_CONFIGURE_CMDS
$(POCO_VERBOSE_MSG)
(cd $(@D); $(TARGET_MAKE_ENV) ./configure \
--config=Linux \
--prefix=/usr \
Expand All @@ -79,6 +91,7 @@ endef

# Use $(MAKE1) to avoid failures on heavily parallel machines (e.g. -j25)
define POCO_BUILD_CMDS
@echo "[INFO] Building Poco with target $(POCO_MAKE_TARGET)"
$(TARGET_MAKE_ENV) $(MAKE1) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \
POCO_MYSQL_INCLUDE=$(STAGING_DIR)/usr/include/mysql \
POCO_MYSQL_LIB=$(STAGING_DIR)/usr/lib/mysql \
Expand All @@ -88,11 +101,13 @@ define POCO_BUILD_CMDS
endef

define POCO_INSTALL_STAGING_CMDS
@echo "[INFO] Installing Poco into the staging directory"
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(STAGING_DIR) POCO_TARGET_OSARCH=$(ARCH) \
DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
endef

define POCO_INSTALL_TARGET_CMDS
@echo "[INFO] Installing Poco into the target directory"
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) POCO_TARGET_OSARCH=$(ARCH) \
DEFAULT_TARGET=$(POCO_MAKE_TARGET) install -C $(@D)
endef
Expand Down

0 comments on commit f36ce47

Please sign in to comment.