diff options
| author | ruki <[email protected]> | 2023-12-12 00:43:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-12-12 00:43:27 +0800 |
| commit | 875332d80dcfe30e0d31156d5b6e4936665e6163 (patch) | |
| tree | 675548fdfcae84d9fdf97a0a05e535ba3c72964a | |
| parent | 7d04cac9b2f8b50fb6b89fae1922ea595f28e070 (diff) | |
format platform codes
| -rw-r--r-- | xmake/platforms/android/xmake.lua | 8 | ||||
| -rw-r--r-- | xmake/platforms/bsd/xmake.lua | 11 | ||||
| -rw-r--r-- | xmake/platforms/cross/xmake.lua | 7 | ||||
| -rw-r--r-- | xmake/platforms/cygwin/xmake.lua | 10 | ||||
| -rw-r--r-- | xmake/platforms/haiku/xmake.lua | 10 | ||||
| -rw-r--r-- | xmake/platforms/linux/xmake.lua | 12 | ||||
| -rw-r--r-- | xmake/platforms/macosx/xmake.lua | 12 | ||||
| -rw-r--r-- | xmake/platforms/mingw/xmake.lua | 8 | ||||
| -rw-r--r-- | xmake/platforms/msys/xmake.lua | 10 | ||||
| -rw-r--r-- | xmake/platforms/wasm/xmake.lua | 10 | ||||
| -rw-r--r-- | xmake/platforms/windows/xmake.lua | 10 |
11 files changed, 0 insertions, 108 deletions
diff --git a/xmake/platforms/android/xmake.lua b/xmake/platforms/android/xmake.lua index cbd764ef5..48f1463e1 100644 --- a/xmake/platforms/android/xmake.lua +++ b/xmake/platforms/android/xmake.lua @@ -18,13 +18,8 @@ -- @file xmake.lua -- --- define platform platform("android") - - -- set os set_os("android") - - -- set hosts set_hosts("macosx", "linux", "windows") -- set archs, we use the latest android abi provided in android ndk now. @@ -36,16 +31,13 @@ platform("android") -- set_archs("armeabi", "armeabi-v7a", "arm64-v8a", "x86", "x86_64", "mips", "mip64") - -- set formats set_formats("static", "lib$(name).a") set_formats("object", "$(name).o") set_formats("shared", "lib$(name).so") set_formats("symbol", "$(name).sym") - -- set toolchains set_toolchains("envs", "ndk", "rust") - -- set menu set_menu { config = { diff --git a/xmake/platforms/bsd/xmake.lua b/xmake/platforms/bsd/xmake.lua index 3150b051a..4b09fa68d 100644 --- a/xmake/platforms/bsd/xmake.lua +++ b/xmake/platforms/bsd/xmake.lua @@ -18,31 +18,20 @@ -- @file xmake.lua -- --- define platform platform("bsd") - - -- set os set_os("bsd") - - -- set hosts set_hosts("bsd") - - -- set archs set_archs("i386", "x86_64") - -- set formats set_formats("static", "lib$(name).a") set_formats("object", "$(name).o") set_formats("shared", "lib$(name).so") set_formats("symbol", "$(name).sym") - -- set install directory set_installdir("/usr/local") - -- set toolchains set_toolchains("envs", "gcc", "clang", "yasm", "nasm", "fasm", "cuda", "go", "rust", "gfortran", "zig") - -- set menu set_menu { config = { diff --git a/xmake/platforms/cross/xmake.lua b/xmake/platforms/cross/xmake.lua index a5bbdc0d2..4b65f83b7 100644 --- a/xmake/platforms/cross/xmake.lua +++ b/xmake/platforms/cross/xmake.lua @@ -18,22 +18,15 @@ -- @file xmake.lua -- --- define platform platform("cross") - - -- set hosts set_hosts("macosx", "linux", "windows", "bsd") - - -- set archs set_archs("i386", "x86_64", "arm", "arm64", "mips", "mips64", "riscv", "riscv64", "s390x", "ppc", "ppc64", "sh4") - -- set formats set_formats("static", "lib$(name).a") set_formats("object", "$(name).o") set_formats("shared", "lib$(name).so") set_formats("symbol", "$(name).sym") - -- set toolchains set_toolchains("envs", "cross") diff --git a/xmake/platforms/cygwin/xmake.lua b/xmake/platforms/cygwin/xmake.lua index 384ba2e80..c77a27305 100644 --- a/xmake/platforms/cygwin/xmake.lua +++ b/xmake/platforms/cygwin/xmake.lua @@ -18,28 +18,18 @@ -- @file xmake.lua -- --- define platform platform("cygwin") - - -- set os set_os("windows") - - -- set hosts set_hosts("windows") - - -- set archs set_archs("i386", "x86_64") - -- set formats set_formats("static", "lib$(name).a") set_formats("object", "$(name).o") set_formats("shared", "$(name).dll") set_formats("binary", "$(name).exe") set_formats("symbol", "$(name).sym") - -- set install directory set_installdir("/usr/local") - -- set toolchains set_toolchains("envs", "cross", "gcc", "clang", "yasm", "gfortran") diff --git a/xmake/platforms/haiku/xmake.lua b/xmake/platforms/haiku/xmake.lua index 168b7d414..ba215545e 100644 --- a/xmake/platforms/haiku/xmake.lua +++ b/xmake/platforms/haiku/xmake.lua @@ -18,28 +18,18 @@ -- @file xmake.lua -- --- define platform platform("haiku") - - -- set os set_os("haiku") - - -- set hosts set_hosts("haiku") - - -- set archs set_archs("i386", "x86_64") - -- set formats set_formats("static", "lib$(name).a") set_formats("object", "$(name).o") set_formats("shared", "lib$(name).so") set_formats("symbol", "$(name).sym") - -- set toolchains set_toolchains("envs", "gcc", "clang", "yasm", "nasm", "fasm", "cuda", "go", "rust", "gfortran", "zig") - -- set menu set_menu { config = { diff --git a/xmake/platforms/linux/xmake.lua b/xmake/platforms/linux/xmake.lua index 1d67f133a..1fdea4ea7 100644 --- a/xmake/platforms/linux/xmake.lua +++ b/xmake/platforms/linux/xmake.lua @@ -18,31 +18,19 @@ -- @file xmake.lua -- --- define platform platform("linux") - - -- set os set_os("linux") - - -- set hosts set_hosts("macosx", "linux", "windows", "bsd") - - -- set archs set_archs("i386", "x86_64", "armv7", "armv7s", "arm64-v8a", "mips", "mips64", "mipsel", "mips64el", "loongarch64") - -- set formats set_formats("static", "lib$(name).a") set_formats("object", "$(name).o") set_formats("shared", "lib$(name).so") set_formats("symbol", "$(name).sym") - -- set install directory set_installdir("/usr/local") - - -- set toolchains set_toolchains("envs", "cross", "gcc", "clang", "yasm", "nasm", "fasm", "cuda", "go", "rust", "swift", "gfortran", "zig", "fpc", "nim") - -- set menu set_menu { config = { diff --git a/xmake/platforms/macosx/xmake.lua b/xmake/platforms/macosx/xmake.lua index 243908c56..74e50fb50 100644 --- a/xmake/platforms/macosx/xmake.lua +++ b/xmake/platforms/macosx/xmake.lua @@ -18,31 +18,19 @@ -- @file xmake.lua -- --- define platform platform("macosx") - - -- set os set_os("macosx") - - -- set hosts set_hosts("macosx") - - -- set archs set_archs("x86_64", "arm64") - -- set formats set_formats("static", "lib$(name).a") set_formats("object", "$(name).o") set_formats("shared", "lib$(name).dylib") set_formats("symbol", "$(name).dSYM") - -- set install directory set_installdir("/usr/local") - - -- set toolchains set_toolchains("envs", "xcode", "clang", "gcc", "yasm", "nasm", "cuda", "rust", "go", "gfortran", "zig", "fpc", "nim") - -- set menu set_menu { config = { diff --git a/xmake/platforms/mingw/xmake.lua b/xmake/platforms/mingw/xmake.lua index b86786a0f..96d49e185 100644 --- a/xmake/platforms/mingw/xmake.lua +++ b/xmake/platforms/mingw/xmake.lua @@ -18,29 +18,21 @@ -- @file xmake.lua -- --- define platform platform("mingw") - - -- set os set_os("windows") - - -- set hosts set_hosts("macosx", "linux", "windows", "bsd") -- set archs, arm/arm64 only for llvm-mingw set_archs("i386", "x86_64", "arm", "arm64") - -- set formats set_formats("static", "lib$(name).a") set_formats("object", "$(name).obj") set_formats("shared", "lib$(name).dll") set_formats("binary", "$(name).exe") set_formats("symbol", "$(name).pdb") - -- set toolchains set_toolchains("envs", "mingw", "yasm", "nasm", "fasm", "go") - -- set menu set_menu { config = { diff --git a/xmake/platforms/msys/xmake.lua b/xmake/platforms/msys/xmake.lua index d37b1f538..cf8eb9620 100644 --- a/xmake/platforms/msys/xmake.lua +++ b/xmake/platforms/msys/xmake.lua @@ -18,28 +18,18 @@ -- @file xmake.lua -- --- define platform platform("msys") - - -- set os set_os("windows") - - -- set hosts set_hosts("windows") - - -- set archs set_archs("i386", "x86_64") - -- set formats set_formats("static", "lib$(name).a") set_formats("object", "$(name).o") set_formats("shared", "lib$(name).dll") set_formats("binary", "$(name).exe") set_formats("symbol", "$(name).sym") - -- set install directory set_installdir("/usr/local") - -- set toolchains set_toolchains("envs", "cross", "gcc", "clang", "yasm", "go", "gfortran") diff --git a/xmake/platforms/wasm/xmake.lua b/xmake/platforms/wasm/xmake.lua index e9c3bc1f8..885233cad 100644 --- a/xmake/platforms/wasm/xmake.lua +++ b/xmake/platforms/wasm/xmake.lua @@ -18,29 +18,19 @@ -- @file xmake.lua -- --- define platform platform("wasm") - - -- set os set_os("web") - - -- set hosts set_hosts("macosx", "linux", "windows", "bsd") - - -- set archs set_archs("wasm32", "wasm64") - -- set formats set_formats("static", "lib$(name).a") set_formats("object", "$(name).o") set_formats("shared", "lib$(name).so") set_formats("binary", "$(name).html") set_formats("symbol", "$(name).sym") - -- set toolchains set_toolchains("emcc") - -- set menu set_menu { config = { diff --git a/xmake/platforms/windows/xmake.lua b/xmake/platforms/windows/xmake.lua index 2b83bb34d..84160b818 100644 --- a/xmake/platforms/windows/xmake.lua +++ b/xmake/platforms/windows/xmake.lua @@ -18,29 +18,19 @@ -- @file xmake.lua -- --- define platform platform("windows") - - -- set os set_os("windows") - - -- set hosts set_hosts("windows") - - -- set archs set_archs("x86", "x64", "arm64") - -- set formats set_formats("static", "$(name).lib") set_formats("object", "$(name).obj") set_formats("shared", "$(name).dll") set_formats("binary", "$(name).exe") set_formats("symbol", "$(name).pdb") - -- set toolchains set_toolchains("msvc", "clang", "yasm", "nasm", "cuda", "rust", "swift", "go", "gfortran", "zig", "fpc", "nim") - -- set menu set_menu { config = { |
