diff options
| author | ruki <[email protected]> | 2023-07-28 22:36:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-07-28 22:36:16 +0800 |
| commit | 0331b9e6c3e661a6e21c354d280c8289f6943a72 (patch) | |
| tree | c097d5284974209daec4071eb1e031c164ef917d | |
| parent | 3ce4679ace52d987ca028a57e6f3e265b6e6e914 (diff) | |
check encodings
| -rw-r--r-- | xmake/modules/private/check/checker.lua | 1 | ||||
| -rw-r--r-- | xmake/modules/private/check/checkers/api/target/encodings.lua | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/xmake/modules/private/check/checker.lua b/xmake/modules/private/check/checker.lua index eb48a2029..055e9ec00 100644 --- a/xmake/modules/private/check/checker.lua +++ b/xmake/modules/private/check/checker.lua @@ -37,6 +37,7 @@ function checkers() ["api.target.languages"] = {description = "Check languages configuration in target.", build = true}, ["api.target.vectorexts"] = {description = "Check vectorexts configuration in target.", build = true}, ["api.target.exceptions"] = {description = "Check exceptions configuration in target.", build = true}, + ["api.target.encodings"] = {description = "Check encodings configuration in target.", build = true}, ["api.target.packages"] = {description = "Check packages configuration in target."}, ["api.target.files"] = {description = "Check files configuration in target."}, ["api.target.headerfiles"] = {description = "Check header files configuration in target."}, diff --git a/xmake/modules/private/check/checkers/api/target/encodings.lua b/xmake/modules/private/check/checkers/api/target/encodings.lua new file mode 100644 index 000000000..a4ec908f3 --- /dev/null +++ b/xmake/modules/private/check/checkers/api/target/encodings.lua @@ -0,0 +1,28 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- Copyright (C) 2015-present, TBOOX Open Source Group. +-- +-- @author ruki +-- @file encodings.lua +-- + +-- imports +import(".api_checker") + +function main(opt) + opt = opt or {} + api_checker.check_targets("encodings", table.join(opt, {values = { + "none", "utf-8", "source:utf-8", "target:utf-8"}})) +end |
