summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
authorLiu <[email protected]>2019-12-02 21:32:50 +0800
committerLiu <[email protected]>2019-12-02 21:33:15 +0800
commit30d4183095aa5dcdb9cbe00b1b48e45ca31424fe (patch)
treeb8e47b54d84dab64cc9a65e101fcc947e52ea6cc /xmake/rules
parent45b739d927c89d93d85f626ab77dee70746c1cd3 (diff)
clear tail white space
Diffstat (limited to 'xmake/rules')
-rw-r--r--xmake/rules/c++/modules/xmake.lua2
-rw-r--r--xmake/rules/protobuf/proto.lua2
-rw-r--r--xmake/rules/wdk/sign/sign.lua4
-rw-r--r--xmake/rules/wdk/sign/xmake.lua2
4 files changed, 5 insertions, 5 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua
index 29f0b28f7..878c9b8b2 100644
--- a/xmake/rules/c++/modules/xmake.lua
+++ b/xmake/rules/c++/modules/xmake.lua
@@ -20,6 +20,6 @@
-- define rule: c++.build.modules
rule("c++.build.modules")
- set_extensions(".mpp", ".mxx", ".cppm", ".ixx")
+ set_extensions(".mpp", ".mxx", ".cppm", ".ixx")
before_build_files("build_modulefiles")
diff --git a/xmake/rules/protobuf/proto.lua b/xmake/rules/protobuf/proto.lua
index 41ae6a388..0a1d4d4df 100644
--- a/xmake/rules/protobuf/proto.lua
+++ b/xmake/rules/protobuf/proto.lua
@@ -32,7 +32,7 @@ function main(target, sourcekind, sourcefile_proto, opt)
-- find protoc
local protoc = target:data("protobuf.protoc")
if not protoc and sourcekind == "cxx" then
- protoc = find_tool("protoc")
+ protoc = find_tool("protoc")
if protoc and protoc.program then
target:data_set("protobuf.protoc", protoc.program)
end
diff --git a/xmake/rules/wdk/sign/sign.lua b/xmake/rules/wdk/sign/sign.lua
index 934615db0..f2563b1e6 100644
--- a/xmake/rules/wdk/sign/sign.lua
+++ b/xmake/rules/wdk/sign/sign.lua
@@ -61,12 +61,12 @@ function main(target, filepath, mode)
-- init arguments
local argv = {"sign", "/v", "/t", timestamp}
- local company = target:values("wdk.sign.company")
+ local company = target:values("wdk.sign.company")
if company then
table.insert(argv, "/n")
table.insert(argv, company)
end
- local certfile = target:values("wdk.sign.certfile")
+ local certfile = target:values("wdk.sign.certfile")
if certfile then
table.insert(argv, "/ac")
table.insert(argv, certfile)
diff --git a/xmake/rules/wdk/sign/xmake.lua b/xmake/rules/wdk/sign/xmake.lua
index 4344ea301..6786cb910 100644
--- a/xmake/rules/wdk/sign/xmake.lua
+++ b/xmake/rules/wdk/sign/xmake.lua
@@ -103,7 +103,7 @@ rule("wdk.sign")
end
-- get sign mode
- local signmode = target:values("wdk.sign.mode")
+ local signmode = target:values("wdk.sign.mode")
if not signmode then
return
end