Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions modules/CppUnit.cppm
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//
// CppUnit.cppm
//
// C++ module file
//
// Copyright (c) 2025, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//

module;

#ifdef ENABLE_CPPUNIT
Expand Down
36 changes: 18 additions & 18 deletions modules/Poco.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -12,56 +12,56 @@
export module Poco;

#ifdef ENABLE_FOUNDATION
export import Poco.Foundation;
export import :Foundation;
#endif
#ifdef ENABLE_ACTIVERECORD
export import Poco.ActiveRecord;
export import :ActiveRecord;
#endif
#ifdef ENABLE_CPPPARSER
export import Poco.CppParser;
export import :CppParser;
#endif
#ifdef ENABLE_CRYPTO
export import Poco.Crypto;
export import :Crypto;
#endif
#ifdef ENABLE_DNSSD
export import Poco.DNSSD;
export import :DNSSD;
#endif
#ifdef ENABLE_DATA
export import Poco.Data;
export import :Data;
#endif
#ifdef ENABLE_DYNAMIC
export import Poco.Dynamic;
export import :Dynamic;
#endif
#ifdef ENABLE_JSON
export import Poco.JSON;
export import :JSON;
#endif
#ifdef ENABLE_JWT
export import Poco.JWT;
export import :JWT;
#endif
#ifdef ENABLE_MONGODB
export import Poco.MongoDB;
export import :MongoDB;
#endif
#ifdef ENABLE_NET
export import Poco.Net;
export import :Net;
#endif
#ifdef ENABLE_PDF
export import Poco.PDF;
export import :PDF;
#endif
#ifdef ENABLE_PROMETHEUS
export import Poco.Prometheus;
export import :Prometheus;
#endif
#ifdef ENABLE_REDIS
export import Poco.Redis;
export import :Redis;
#endif
#ifdef ENABLE_SEVENZIP
export import Poco.SevenZip;
export import :SevenZip;
#endif
#ifdef ENABLE_UTIL
export import Poco.Util;
export import :Util;
#endif
#ifdef ENABLE_XML
export import Poco.XML;
export import :XML;
#endif
#ifdef ENABLE_ZIP
export import Poco.Zip;
export import :Zip;
#endif
2 changes: 1 addition & 1 deletion modules/Poco/ActiveRecord.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module;
#include "Poco/ActiveRecord/StatementPlaceholderProvider.h"
#endif

export module Poco.ActiveRecord;
export module Poco:ActiveRecord;

export namespace Poco::ActiveRecord {
#ifdef ENABLE_ACTIVERECORD
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/CppParser.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module;
#include "Poco/CppParser/Variable.h"
#endif

export module Poco.CppParser;
export module Poco:CppParser;

export namespace Poco::CppParser {
#ifdef ENABLE_CPPPARSER
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Crypto.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module;
#include "Poco/Crypto/X509Certificate.h"
#endif

export module Poco.Crypto;
export module Poco:Crypto;

export namespace Poco::Crypto {
#ifdef ENABLE_CRYPTO
Expand Down
6 changes: 3 additions & 3 deletions modules/Poco/DNSSD.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ module;
#include "Poco/DNSSD/Service.h"
#endif

export module Poco.DNSSD;
export module Poco:DNSSD;

#ifdef ENABLE_DNSSD_AVAHI
export import :Avahi;
export import :DNSSD.Avahi;
#endif
#ifdef ENABLE_DNSSD_BONJOUR
export import :Bonjour;
export import :DNSSD.Bonjour;
#endif

export namespace Poco::DNSSD {
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/DNSSD/Avahi.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module;
#include "Poco/DNSSD/Avahi/AvahiResponderImpl.h"
#endif

export module Poco.DNSSD:Avahi;
export module Poco:DNSSD.Avahi;

export namespace Poco::DNSSD {
#ifdef ENABLE_DNSSD
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/DNSSD/Bonjour.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module;
#include "Poco/DNSSD/Bonjour/EventLoop.h"
#endif

export module Poco.DNSSD:Bonjour;
export module Poco:DNSSD.Bonjour;

export namespace Poco::DNSSD {
#ifdef ENABLE_DNSSD
Expand Down
10 changes: 5 additions & 5 deletions modules/Poco/Data.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ module;
#include "Poco/Data/TypeHandler.h"
#endif

export module Poco.Data;
export module Poco:Data;

#ifdef ENABLE_DATA_MYSQL
export import :MySQL;
export import :Data.MySQL;
#endif
#ifdef ENABLE_DATA_ODBC
export import :ODBC;
export import :Data.ODBC;
#endif
#ifdef ENABLE_DATA_POSTGRESQL
export import :PostgreSQL;
export import :Data.PostgreSQL;
#endif
#ifdef ENABLE_DATA_SQLITE
export import :SQLite;
export import :Data.SQLite;
#endif

export namespace Poco::Data {
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Data/MySQL.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module;
#include "Poco/Data/MySQL/Utility.h"
#endif

export module Poco.Data:MySQL;
export module Poco:Data.MySQL;

export namespace Poco::Data::MySQL {
#ifdef ENABLE_DATA_MYSQL
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Data/ODBC.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module;
#include "Poco/Data/ODBC/Utility.h"
#endif

export module Poco.Data:ODBC;
export module Poco:Data.ODBC;

export namespace Poco::Data::ODBC {
#ifdef ENABLE_DATA_ODBC
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Data/PostgreSQL.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module;
#include "Poco/Data/PostgreSQL/Utility.h"
#endif

export module Poco.Data:PostgreSQL;
export module Poco:Data.PostgreSQL;

export namespace Poco::Data::PostgreSQL {
#ifdef ENABLE_DATA_POSTGRESQL
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Data/SQLite.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module;
#include "Poco/Data/SQLite/Utility.h"
#endif

export module Poco.Data:SQLite;
export module Poco:Data.SQLite;

export namespace Poco::Data::SQLite {
#ifdef ENABLE_DATA_SQLITE
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Dynamic.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module;
#include "Poco/Dynamic/VarVisitor.h"
#endif

export module Poco.Dynamic;
export module Poco:Dynamic;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Poco Dynamic is a part of Foundation. Not sure how to declare that in C++ modules syntax.

Copy link
Copy Markdown
Contributor Author

@mikomikotaishi mikomikotaishi Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could move all that code into Poco:Foundation. That would actually be a benefit for compile times as fewer, larger translation units are faster to build than multiple small translation units.

In fact, since ENABLE_FOUNDATION is always forced to be on when building the library, should we just remove all of the macro checks for that here?

Copy link
Copy Markdown
Contributor

@matejk matejk Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a part of Foundation already, not a separate library.

Macro checks could be removed for Foundation, true.

Copy link
Copy Markdown
Contributor Author

@mikomikotaishi mikomikotaishi Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've gone ahead and moved the stuff originally in Poco:Dynamic just into Poco:Foundation, deleted the Dynamic.cppm file since it's no longer needed, and removed #ifdef guards on Foundation stuff.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matejk Any thoughts on this iteration?


export namespace Poco::Dynamic {
#ifdef ENABLE_FOUNDATION
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Foundation.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ module;
#endif
#endif

export module Poco.Foundation;
export module Poco:Foundation;

export namespace Poco {
#ifdef ENABLE_FOUNDATION
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/JSON.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module;
#include "Poco/JSON/Template.h"
#endif

export module Poco.JSON;
export module Poco:JSON;

export namespace Poco::JSON {
#ifdef ENABLE_JSON
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/JWT.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module;
#include "Poco/JWT/Token.h"
#endif

export module Poco.JWT;
export module Poco:JWT;

export namespace Poco::JWT {
#ifdef ENABLE_JWT
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/MongoDB.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module;
#include "Poco/MongoDB/TopologyDescription.h"
#endif

export module Poco.MongoDB;
export module Poco:MongoDB;

export namespace Poco::MongoDB {
#ifdef ENABLE_MONGODB
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Net.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ module;
#endif
#endif

export module Poco.Net;
export module Poco:Net;

export namespace Poco::Net {
#ifdef ENABLE_NET
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/PDF.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module;
#include "Poco/PDF/XMLTemplate.h"
#endif

export module Poco.PDF;
export module Poco:PDF;

export namespace Poco::PDF {
#ifdef ENABLE_PDF
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Prometheus.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module;
#include "Poco/Prometheus/ThreadPoolCollector.h"
#endif

export module Poco.Prometheus;
export module Poco:Prometheus;

export namespace Poco::Prometheus {
#ifdef ENABLE_PROMETHEUS
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Redis.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module;
#include "Poco/Redis/Type.h"
#endif

export module Poco.Redis;
export module Poco:Redis;

export namespace Poco::Redis {
#ifdef ENABLE_REDIS
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/SevenZip.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module;
#include "Poco/SevenZip/SevenZip.h"
#endif

export module Poco.SevenZip;
export module Poco:SevenZip;

export namespace Poco::SevenZip {
#ifdef ENABLE_SEVENZIP
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Util.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module;
#include "Poco/Util/XMLConfiguration.h"
#endif

export module Poco.Util;
export module Poco:Util;

export namespace Poco::Util {
#ifdef ENABLE_UTIL
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/XML.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module;
#include "Poco/XML/XMLWriter.h"
#endif

export module Poco.XML;
export module Poco:XML;

export namespace Poco::XML {
#ifdef ENABLE_XML
Expand Down
2 changes: 1 addition & 1 deletion modules/Poco/Zip.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module;
#include "Poco/Zip/ZipUtil.h"
#endif

export module Poco.Zip;
export module Poco:Zip;

export namespace Poco::Zip {
#ifdef ENABLE_ZIP
Expand Down
Loading