Skip to content

Commit

Permalink
Update how fcitxutils_export.h is included.
Browse files Browse the repository at this point in the history
we have been using "fcitxutils_export.h", however, it is inconsistent
for sub directory. Use fcitx-utils/prefix for it for consistency.
  • Loading branch information
wengxt committed Dec 29, 2024
1 parent 145fcd1 commit d56196f
Show file tree
Hide file tree
Showing 36 changed files with 54 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ set_target_properties(Fcitx5Utils
)
target_include_directories(Fcitx5Utils PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/..>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_FULL_INCLUDEDIR}/Fcitx5/Utils>)
target_link_libraries(Fcitx5Utils PRIVATE DL::DL LibIntl::LibIntl Pthread::Pthread ${FMT_TARGET})
if(LIBKVM_FOUND)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <exception>
#include <ostream>
#include <string>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

/// \addtogroup FcitxUtils
/// \{
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/connectableobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
#include <memory>
#include <string>
#include <utility>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/macros.h>
#include <fcitx-utils/metastring.h>
#include <fcitx-utils/signals.h>
#include "fcitxutils_export.h"

/// \addtogroup FcitxUtils
/// \{
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/cutf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include <cstdint>
#include <cstdlib>
#include "fcitxutils_export.h"
#include <fcitx-utils/fcitxutils_export.h>

//// Max length of a utf8 character
#define FCITX_UTF8_MAX_LENGTH 6
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/dbus/bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include <fcitx-utils/dbus/message.h>
#include <fcitx-utils/dbus/objectvtable.h>
#include <fcitx-utils/event.h>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/flags.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

/// \addtogroup FcitxUtils
/// \{
Expand Down
6 changes: 6 additions & 0 deletions src/lib/fcitx-utils/dbus/matchrule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
*/

#include "matchrule.h"
#include <cstddef>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "../macros.h"
#include "../stringutils.h"
#include "message.h"
#include "utils_p.h"
Expand Down
3 changes: 3 additions & 0 deletions src/lib/fcitx-utils/dbus/matchrule.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
#ifndef _FCITX_UTILS_DBUS_MATCHRULE_H_
#define _FCITX_UTILS_DBUS_MATCHRULE_H_

#include <cstddef>
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include <fcitx-utils/dbus/message.h>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/macros.h>

/// \addtogroup FcitxUtils
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/dbus/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#include <utility>
#include <vector>
#include <fcitx-utils/dbus/message_details.h> // IWYU pragma: export
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/log.h>
#include <fcitx-utils/macros.h>
#include <fcitx-utils/metastring.h>
#include <fcitx-utils/tuplehelpers.h>
#include <fcitx-utils/unixfd.h>
#include "fcitxutils_export.h"

/// \addtogroup FcitxUtils
/// \{
Expand Down
5 changes: 5 additions & 0 deletions src/lib/fcitx-utils/dbus/objectvtable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*
*/
#include "objectvtable.h"
#include <memory>
#include <string>
#include <utility>
#include "../macros.h"
#include "bus.h"
#include "objectvtable_p.h"

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/dbus/objectvtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#include <tuple>
#include <type_traits>
#include <fcitx-utils/dbus/message.h>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/flags.h>
#include <fcitx-utils/macros.h>
#include <fcitx-utils/trackableobject.h>
#include "fcitxutils_export.h"

/// \addtogroup FcitxUtils
/// \{
Expand Down
1 change: 1 addition & 0 deletions src/lib/fcitx-utils/dbus/servicewatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <memory>
#include <string>
#include <fcitx-utils/dbus/bus.h>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/handlertable.h>
#include <fcitx-utils/macros.h>

Expand Down
8 changes: 8 additions & 0 deletions src/lib/fcitx-utils/dbus/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@
*
*/
#include "variant.h"
#include <cstdint>
#include <memory>
#include <mutex>
#include <shared_mutex>
#include <string>
#include <unordered_map>
#include <utility>
#include "../macros.h"
#include "../misc_p.h"
#include "fmessage.h"

namespace fcitx::dbus {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/dbus/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
#include <type_traits>
#include <utility>
#include <fcitx-utils/dbus/message.h>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/log.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

/// \addtogroup FcitxUtils
/// \{
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/element.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include <list>
#include <memory>
#include <fcitx-utils/connectableobject.h>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

/// \addtogroup FcitxUtils
/// \{
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <functional>
#include <memory>
#include <fcitx-utils/eventloopinterface.h>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/flags.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

namespace fcitx {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/eventdispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <functional>
#include <memory>
#include <utility>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/macros.h>
#include <fcitx-utils/trackableobject.h>
#include "fcitxutils_export.h"

namespace fcitx {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/eventloopinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <functional>
#include <memory>
#include <stdexcept>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/flags.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

namespace fcitx {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <optional>
#include <string>
#include <string_view>
#include "fcitxutils_export.h"
#include <fcitx-utils/fcitxutils_export.h>
#include "misc.h"
#include "mtime_p.h"
#include "standardpath.h"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#include <optional>
#include <string>
#include <string_view>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/misc.h>
#include "fcitxutils_export.h"

/// \addtogroup FcitxUtils
/// \{
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/handlertable_details.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
#include <iterator>
#include <memory>
#include <vector>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/intrusivelist.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

namespace fcitx {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/i18n.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define _FCITX_UTILS_I18N_H_

#include <string>
#include "fcitxutils_export.h"
#include <fcitx-utils/fcitxutils_export.h>

namespace fcitx {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/i18nstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <string>
#include <unordered_map>
#include "fcitxutils_export.h"
#include <fcitx-utils/fcitxutils_export.h>

namespace fcitx {
class FCITXUTILS_EXPORT I18NString {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/inputbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
#include <string>
#include <string_view>
#include <utility>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/flags.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

/// \addtogroup FcitxUtils
/// \{
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
#include <cstdint>
#include <string>
#include <vector>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/flags.h>
#include <fcitx-utils/keysym.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

namespace fcitx {
class Key;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/library.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#include <functional>
#include <memory>
#include <string>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/flags.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

namespace fcitx {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
#include <unordered_set>
#include <utility>
#include <vector>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/fs.h>
#include <fcitx-utils/key.h>
#include <fcitx-utils/macros.h>
#include <fcitx-utils/metastring.h>
#include <fcitx-utils/misc.h>
#include <fcitx-utils/tuplehelpers.h>
#include "fcitxutils_export.h"

namespace fcitx {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#include <string>
#include <type_traits>
#include <vector>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

namespace fcitx {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/rect.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <algorithm>
#include <ostream>
#include <utility>
#include "fcitxutils_export.h"
#include <fcitx-utils/fcitxutils_export.h>

namespace fcitx {
class FCITXUTILS_EXPORT Rect {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/semver.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <string_view>
#include <variant>
#include <vector>
#include "fcitxutils_export.h"
#include <fcitx-utils/fcitxutils_export.h>
#include "log.h"
#include "macros.h"

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/standardpath.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
#include <string>
#include <unordered_map>
#include <vector>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/log.h>
#include <fcitx-utils/macros.h>
#include <fcitx-utils/stringutils.h>
#include <fcitx-utils/unixfd.h>
#include "fcitxutils_export.h"

namespace fcitx {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/stringutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <string_view>
#include <utility>
#include <vector>
#include "fcitxutils_export.h"
#include <fcitx-utils/fcitxutils_export.h>
#include "charutils.h"
#include "macros.h"

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/stringutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <string_view>
#include <utility>
#include <vector>
#include "fcitxutils_export.h"
#include <fcitx-utils/fcitxutils_export.h>
#include "stringutils_details.h"

namespace fcitx::stringutils {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/stringutils_details.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <string_view>
#include <type_traits>
#include <utility>
#include "fcitxutils_export.h"
#include <fcitx-utils/fcitxutils_export.h>

namespace fcitx::stringutils::details {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/testing.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <string>
#include <vector>
#include "fcitxutils_export.h"
#include <fcitx-utils/fcitxutils_export.h>

/// \addtogroup FcitxUtils
/// \{
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/unixfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
/// \file
/// \brief Utility class to handle unix file decriptor.

#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/log.h>
#include <fcitx-utils/macros.h>
#include "fcitxutils_export.h"

namespace fcitx {

Expand Down
2 changes: 1 addition & 1 deletion src/lib/fcitx-utils/utf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
#include <string_view>
#include <utility>
#include <fcitx-utils/cutf8.h>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/macros.h>
#include <fcitx-utils/misc.h>
#include "fcitxutils_export.h"

namespace fcitx::utf8 {

Expand Down

0 comments on commit d56196f

Please sign in to comment.