diff options
| author | ruki <[email protected]> | 2015-05-20 15:20:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-05-20 15:20:30 +0800 |
| commit | 111bd8e8cbf0c3b242ed3b137415d9560c4aac37 (patch) | |
| tree | 6bcfd7011182bacf3d720cab5211db2cec7116db /xmake/scripts/platform | |
| parent | f78e2768746980830994537ebb03397a31276f1d (diff) | |
add other platforms and update tbox for windows
Diffstat (limited to 'xmake/scripts/platform')
| -rw-r--r-- | xmake/scripts/platform/_android.lua | 41 | ||||
| -rw-r--r-- | xmake/scripts/platform/_ios.lua | 41 | ||||
| -rw-r--r-- | xmake/scripts/platform/_linux.lua | 41 | ||||
| -rw-r--r-- | xmake/scripts/platform/_windows.lua | 42 |
4 files changed, 165 insertions, 0 deletions
diff --git a/xmake/scripts/platform/_android.lua b/xmake/scripts/platform/_android.lua new file mode 100644 index 000000000..18d74cd35 --- /dev/null +++ b/xmake/scripts/platform/_android.lua @@ -0,0 +1,41 @@ +--!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 _android.lua +-- + +-- define module: _android +local _android = _android or {} + +-- init _android +function _android.init(configs) + + -- init the file name format + configs.format = {} + configs.format.static = {"lib", ".a"} + configs.format.object = {"", ".o"} + configs.format.shared = {"", ".so"} + + -- ok + return true +end + + +-- return module: _android +return _android diff --git a/xmake/scripts/platform/_ios.lua b/xmake/scripts/platform/_ios.lua new file mode 100644 index 000000000..d9fd2ff39 --- /dev/null +++ b/xmake/scripts/platform/_ios.lua @@ -0,0 +1,41 @@ +--!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 _ios.lua +-- + +-- define module: _ios +local _ios = _ios or {} + +-- init _ios +function _ios.init(configs) + + -- init the file name format + configs.format = {} + configs.format.static = {"lib", ".a"} + configs.format.object = {"", ".o"} + configs.format.shared = {"", ".dylib"} + + -- ok + return true +end + + +-- return module: _ios +return _ios diff --git a/xmake/scripts/platform/_linux.lua b/xmake/scripts/platform/_linux.lua new file mode 100644 index 000000000..c4e7d67bc --- /dev/null +++ b/xmake/scripts/platform/_linux.lua @@ -0,0 +1,41 @@ +--!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 _linux.lua +-- + +-- define module: _linux +local _linux = _linux or {} + +-- init _linux +function _linux.init(configs) + + -- init the file name format + configs.format = {} + configs.format.static = {"lib", ".a"} + configs.format.object = {"", ".o"} + configs.format.shared = {"", ".so"} + + -- ok + return true +end + + +-- return module: _linux +return _linux diff --git a/xmake/scripts/platform/_windows.lua b/xmake/scripts/platform/_windows.lua new file mode 100644 index 000000000..699d4d2d6 --- /dev/null +++ b/xmake/scripts/platform/_windows.lua @@ -0,0 +1,42 @@ +--!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 _windows.lua +-- + +-- define module: _windows +local _windows = _windows or {} + +-- init _windows +function _windows.init(configs) + + -- init the file name format + configs.format = {} + configs.format.static = {"", ".lib"} + configs.format.object = {"", ".obj"} + configs.format.shared = {"", ".dll"} + configs.format.console = {"", ".exe"} + + -- ok + return true +end + + +-- return module: _windows +return _windows |
