Skip to content

Commit

Permalink
fix hallelujah config collision; simplify build (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored Dec 8, 2024
1 parent 602d1e5 commit 3477ae1
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
-DURL_SCHEME=fcitx \
-DHALLELUJAH=ON \
-DRIME=ON \
-DCMAKE_TOOLCHAIN_FILE=cmake/ios.cmake \
-DIOS_PLATFORM=SIMULATOR
cmake --build build --config Release
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
"type": "shell",
"label": "Configure",
"command": "cmake -B build -G Xcode -DURL_SCHEME=fcitx -DCHINESE_ADDONS=ON -DHALLELUJAH=ON -DRIME=ON -DCMAKE_TOOLCHAIN_FILE=cmake/ios.cmake -DIOS_PLATFORM=SIMULATOR",
"command": "cmake -B build -G Xcode -DURL_SCHEME=fcitx -DCHINESE_ADDONS=ON -DHALLELUJAH=ON -DRIME=ON -DIOS_PLATFORM=SIMULATOR",
"group": {
"kind": "build"
}
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 3.27)
# Avoid MinSizeRel and RelWithDebInfo.
set(CMAKE_CONFIGURATION_TYPES Debug Release CACHE STRING INTERNAL FORCE)

set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/cmake/ios.cmake")

project(fcitx5-ios VERSION 0.1.0 LANGUAGES CXX Swift)
set(CMAKE_OSX_DEPLOYMENT_TARGET 15)
set(CMAKE_Swift_LANGUAGE_VERSION 5.9)
Expand Down
2 changes: 1 addition & 1 deletion common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace fs = std::filesystem;

extern fcitx::StaticAddonRegistry &getStaticAddon();
FCITX_DEFINE_STATIC_ADDON_REGISTRY(getStaticAddon)

std::unique_ptr<fcitx::Instance> instance;
std::unique_ptr<fcitx::EventDispatcher> dispatcher;
Expand Down
2 changes: 1 addition & 1 deletion engines/fcitx5-hallelujah
2 changes: 0 additions & 2 deletions keyboard/fcitx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#include <fcitx/inputmethodmanager.h>

FCITX_DEFINE_STATIC_ADDON_REGISTRY(getStaticAddon)

fcitx::IosFrontend *frontend;

void startFcitx(const char *bundlePath, const char *appGroupPath) {
Expand Down
2 changes: 0 additions & 2 deletions src/fcitx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#include <fcitx/inputmethodmanager.h>
#include <nlohmann/json.hpp>

FCITX_DEFINE_STATIC_ADDON_REGISTRY(getStaticAddon)

void startFcitx(const char *bundlePath, const char *appGroupPath) {
if (instance) {
return;
Expand Down

0 comments on commit 3477ae1

Please sign in to comment.