Skip to content

Commit

Permalink
Merge pull request #237 from chewing/refactor-rustify
Browse files Browse the repository at this point in the history
refactor: rustify chewing_tip.dll
  • Loading branch information
kanru authored Dec 25, 2024
2 parents 968440b + ca24d85 commit 7f831a1
Show file tree
Hide file tree
Showing 67 changed files with 1,227 additions and 2,003 deletions.
6 changes: 6 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
[alias]
xtask = "run --package xtask --"

[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
18 changes: 0 additions & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,7 @@ cmake_minimum_required(VERSION 3.24.0)

project(windows-chewing-tsf LANGUAGES CXX)

option(BUILD_SHARED_LIBS "Build using shared libraries" OFF)

# http://www.utf8everywhere.org/
add_definitions(
/D_UNICODE=1 /DUNICODE=1 # do Unicode build
/D_CRT_SECURE_NO_WARNINGS # disable warnings about old libc functions
)
set(CMAKE_CXX_STANDARD 17)

if (MSVC)
add_compile_options(/utf-8)
endif()

# Static link MSVC runtime
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")

add_subdirectory(libchewing)
add_subdirectory(libIME)
add_subdirectory(ChewingTextService)
add_subdirectory(ChewingPreferences)

set(CPACK_PACKAGE_CHECKSUM SHA256)
Expand Down
Loading

0 comments on commit 7f831a1

Please sign in to comment.