File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ if (NOT DEFINED M17N_TARGET)
2525 set (M17N_TARGET PkgConfig::M17NGui)
2626endif ()
2727
28+ set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /lib" )
29+ set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /bin" )
30+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /bin" )
31+
2832include ("${FCITX_INSTALL_CMAKECONFIG_DIR} /Fcitx5Utils/Fcitx5CompilerSettings.cmake" )
2933add_definitions (-DFCITX_GETTEXT_DOMAIN=\"fcitx5-m17n\" -D_GNU_SOURCE)
3034fcitx5_add_i18n_definition()
Original file line number Diff line number Diff line change 1818#include < fcitx-utils/key.h>
1919#include < fcitx-utils/keysym.h>
2020#include < fcitx-utils/log.h>
21- #include < fcitx-utils/standardpath .h>
21+ #include < fcitx-utils/standardpaths .h>
2222#include < fcitx-utils/stringutils.h>
2323#include < fcitx-utils/textformatflags.h>
2424#include < fcitx-utils/utf8.h>
@@ -295,8 +295,8 @@ M17NEngine::M17NEngine(Instance *instance)
295295 reloadConfig ();
296296 M17N_INIT ();
297297
298- auto file = StandardPath ::global ().open (StandardPath::Type ::PkgData,
299- " m17n/default" , O_RDONLY );
298+ auto file = StandardPaths ::global ().open (StandardPathsType ::PkgData,
299+ " m17n/default" );
300300 if (file.isValid ()) {
301301 list_ = ParseDefaultSettings (file.fd ());
302302 }
Original file line number Diff line number Diff line change 1111#include < fcitx-utils/keysym.h>
1212#include < fcitx-utils/log.h>
1313#include < fcitx-utils/macros.h>
14- #include < fcitx-utils/standardpath.h>
1514#include < fcitx-utils/testing.h>
1615#include < fcitx/addonmanager.h>
1716#include < fcitx/inputcontextmanager.h>
@@ -75,7 +74,7 @@ void scheduleEvent(Instance *instance) {
7574void runInstance () {}
7675
7776int main () {
78- setupTestingEnvironment (TESTING_BINARY_DIR, {TESTING_BINARY_DIR " /im " },
77+ setupTestingEnvironment (TESTING_BINARY_DIR, {" bin " },
7978 {TESTING_BINARY_DIR " /test" });
8079 // fcitx::Log::setLogRule("default=5,table=5,libime-table=5");
8180 char arg0[] = " testm17n" ;
You can’t perform that action at this time.
0 commit comments