summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/linux/_prober.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-04 11:18:55 +0800
committerruki <[email protected]>2015-06-04 11:18:55 +0800
commit35b7e28b8274af9054c89bd0aeed05a1c5956c55 (patch)
treee6f826f349cb97970d3b308036567a6eeaac356a /xmake/scripts/platform/linux/_prober.lua
parente93e932433483348664804a0cc054b2c6af61a95 (diff)
rename platform files
Diffstat (limited to 'xmake/scripts/platform/linux/_prober.lua')
-rw-r--r--xmake/scripts/platform/linux/_prober.lua57
1 files changed, 0 insertions, 57 deletions
diff --git a/xmake/scripts/platform/linux/_prober.lua b/xmake/scripts/platform/linux/_prober.lua
deleted file mode 100644
index 717bd71fe..000000000
--- a/xmake/scripts/platform/linux/_prober.lua
+++ /dev/null
@@ -1,57 +0,0 @@
---!The Automatic Cross-platform Build Tool
---
--- XMake is free software; you can redistribute it and/or modify
--- it under the terms of the GNU Lesser General Public License as published by
--- the Free Software Foundation; either version 2.1 of the License, or
--- (at your option) any later version.
---
--- XMake is distributed in the hope that it will be useful,
--- but WITHOUT ANY WARRANTY; without even the implied warranty of
--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
--- GNU Lesser General Public License for more details.
---
--- You should have received a copy of the GNU Lesser General Public License
--- along with XMake;
--- If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
---
--- Copyright (C) 2009 - 2015, ruki All rights reserved.
---
--- @author ruki
--- @file _prober.lua
---
-
--- load modules
-local os = require("base/os")
-local path = require("base/path")
-local utils = require("base/utils")
-local string = require("base/string")
-
--- define module: _prober
-local _prober = _prober or {}
-
--- probe the architecture
-function _prober._probe_arch(configs)
-
- -- get the architecture
- local arch = configs.arch
-
- -- ok?
- if arch then return true end
-
- -- init the default architecture
- configs.arch = xmake._ARCH
-
- -- ok
- return true
-end
-
--- probe the configure
-function _prober.done(configs, is_global)
-
- -- probe the architecture
- if not _prober._probe_arch(configs) then return end
-
-end
-
--- return module: _prober
-return _prober