diff options
| author | ruki <[email protected]> | 2019-01-22 22:39:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-01-22 09:56:36 +0800 |
| commit | de29dc88bc3b7d39d4206d6e2bd034d15b232ca2 (patch) | |
| tree | f247b2624aafd5a30c0a100de93aaeaf50ff7dce /xmake/core | |
| parent | c92d87e3b872cd303356112a22190d4858a9fcb3 (diff) | |
find package from xmake repo and package directories
Diffstat (limited to 'xmake/core')
3 files changed, 69 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/import/core/base/interpreter.lua b/xmake/core/sandbox/modules/import/core/base/interpreter.lua new file mode 100644 index 000000000..0f0d87f89 --- /dev/null +++ b/xmake/core/sandbox/modules/import/core/base/interpreter.lua @@ -0,0 +1,26 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed to the Apache Software Foundation (ASF) under one +-- or more contributor license agreements. See the NOTICE file +-- distributed with this work for additional information +-- regarding copyright ownership. The ASF licenses this file +-- to you 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 - 2019, TBOOX Open Source Group. +-- +-- @author ruki +-- @file interpreter.lua +-- + +-- return module +return require("base/interpreter") diff --git a/xmake/core/sandbox/modules/import/core/language/language.lua b/xmake/core/sandbox/modules/import/core/language/language.lua index 00f4fc162..317530236 100644 --- a/xmake/core/sandbox/modules/import/core/language/language.lua +++ b/xmake/core/sandbox/modules/import/core/language/language.lua @@ -29,6 +29,11 @@ local sandbox_core_language = sandbox_core_language or {} local language = require("language/language") local raise = require("sandbox/modules/raise") +-- get the apis +function sandbox_core_language.apis() + return language.apis() +end + -- get the source extensions of all languages function sandbox_core_language.extensions() return language.extensions() diff --git a/xmake/core/sandbox/modules/import/core/project/option.lua b/xmake/core/sandbox/modules/import/core/project/option.lua new file mode 100644 index 000000000..c8def7922 --- /dev/null +++ b/xmake/core/sandbox/modules/import/core/project/option.lua @@ -0,0 +1,38 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed to the Apache Software Foundation (ASF) under one +-- or more contributor license agreements. See the NOTICE file +-- distributed with this work for additional information +-- regarding copyright ownership. The ASF licenses this file +-- to you 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 - 2019, TBOOX Open Source Group. +-- +-- @author ruki +-- @file option.lua +-- + +-- define module +local sandbox_core_project_option = sandbox_core_project_option or {} + +-- load modules +local option = require("project/option") +local raise = require("sandbox/modules/raise") + +-- get the option apis +function sandbox_core_project_option.apis() + return option.apis() +end + +-- return module +return sandbox_core_project_option |
