diff options
| author | ruki <[email protected]> | 2019-12-26 00:44:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-12-25 22:25:20 +0800 |
| commit | 4a85f1ece80cb77159e805732040b91158dfada9 (patch) | |
| tree | 5d0fb2ac9701c4f79273997e1a4717ca9809cb18 | |
| parent | 7c40738d8d1bc95fbb6c79ca267206502e9afdd7 (diff) | |
add builtin find_package api
| -rw-r--r-- | xmake/core/sandbox/modules/find_package.lua | 26 | ||||
| -rw-r--r-- | xmake/core/sandbox/modules/find_packages.lua | 2 |
2 files changed, 27 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/find_package.lua b/xmake/core/sandbox/modules/find_package.lua new file mode 100644 index 000000000..fdb88e2cd --- /dev/null +++ b/xmake/core/sandbox/modules/find_package.lua @@ -0,0 +1,26 @@ +--!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-2020, TBOOX Open Source Group. +-- +-- @author ruki +-- @file find_package.lua +-- + +-- return module +return function (name, opt) + local find_package = require("sandbox/modules/import/core/sandbox/module").import("lib.detect.find_package", {anonymous = true}) + return find_package(name, opt) +end + diff --git a/xmake/core/sandbox/modules/find_packages.lua b/xmake/core/sandbox/modules/find_packages.lua index 582d22dcb..85293797f 100644 --- a/xmake/core/sandbox/modules/find_packages.lua +++ b/xmake/core/sandbox/modules/find_packages.lua @@ -15,7 +15,7 @@ -- Copyright (C) 2015-2020, TBOOX Open Source Group. -- -- @author ruki --- @file find_package.lua +-- @file find_packages.lua -- -- return module |
