forked from rime/weasel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rime:master' into master
- Loading branch information
Showing
36 changed files
with
999 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
target("RimeWithWeasel") | ||
set_kind("static") | ||
add_files("./*.cpp") | ||
add_rules("use_weaselconstants") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
target("WeaselDeployer") | ||
set_kind("binary") | ||
add_files("./*.cpp") | ||
add_rules("add_rcfiles", "use_weaselconstants", "subwin") | ||
add_links("imm32", "kernel32", "rime") | ||
add_deps("WeaselIPC", "RimeWithWeasel") | ||
add_files("$(projectdir)/PerMonitorHighDPIAware.manifest") | ||
add_ldflags("/DEBUG /OPT:ICF /LARGEADDRESSAWARE /ERRORREPORT:QUEUE") | ||
before_build(function(target) | ||
local target_dir = path.join(target:targetdir(), target:name()) | ||
if not os.exists(target_dir) then | ||
os.mkdir(target_dir) | ||
end | ||
target:set("targetdir", target_dir) | ||
end) | ||
after_build(function(target) | ||
if is_arch("x86") then | ||
os.cp(path.join(target:targetdir(), "WeaselDeployer.exe"), "$(projectdir)/output/Win32") | ||
os.cp(path.join(target:targetdir(), "WeaselDeployer.pdb"), "$(projectdir)/output/Win32") | ||
else | ||
os.cp(path.join(target:targetdir(), "WeaselDeployer.exe"), "$(projectdir)/output") | ||
os.cp(path.join(target:targetdir(), "WeaselDeployer.pdb"), "$(projectdir)/output") | ||
end | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
target("WeaselIME") | ||
set_kind("shared") | ||
add_files("./*.cpp") | ||
add_rules("add_rcfiles") | ||
add_links("advapi32", "imm32", "user32", "gdi32") | ||
add_deps("WeaselIPC", "WeaselUI") | ||
local fname = '' | ||
|
||
before_build(function(target) | ||
local target_dir = path.join(target:targetdir(), target:name()) | ||
if not os.exists(target_dir) then | ||
os.mkdir(target_dir) | ||
end | ||
target:set("targetdir", target_dir) | ||
end) | ||
|
||
after_build(function(target) | ||
os.cp(path.join(target:targetdir(), "*.ime"), "$(projectdir)/output") | ||
end) | ||
if is_arch("x86") then | ||
fname = "weasel.ime" | ||
elseif is_arch("x64") then | ||
fname = "weaselx64.ime" | ||
elseif is_arch("arm") then | ||
fname = "weaselARM.ime" | ||
elseif is_arch("arm64") then | ||
fname = "weaselARM64.ime" | ||
end | ||
set_filename(fname) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.