mirror of
https://onedev.site.tesses.net/crosslang
synced 2026-02-08 17:15:45 +00:00
Add wii build
This commit is contained in:
@@ -24,3 +24,4 @@ FetchContent_MakeAvailable(TessesCrossLang)
|
||||
|
||||
add_executable(boot main.cpp)
|
||||
target_link_libraries(boot PUBLIC crosslang_static)
|
||||
ogc_create_dol(boot)
|
||||
|
||||
@@ -88,7 +88,8 @@ func BuildConsoleOrServerLinuxStatic(dir,cmake_toolchain)
|
||||
homepage = "https://crosslang.tesseslanguage.com/",
|
||||
executable_name = "crossapp",
|
||||
executable_can_be_renamed = true,
|
||||
executable_runtime = $"linux-{dir}-static"
|
||||
executable_runtime = $"linux-{dir}-static",
|
||||
description = $"Runtime files for linux-{dir}-static",
|
||||
};
|
||||
|
||||
var name = $"Tesses.CrossLang.Runtime.linux-{dir}-static";
|
||||
@@ -170,6 +171,7 @@ func BuildConsoleOrServerLinuxShared(dir,$cmake_toolchain)
|
||||
maintainer = "Mike Nolan",
|
||||
repo = "https://onedev.site.tesses.net/crosslang",
|
||||
homepage = "https://crosslang.tesseslanguage.com/",
|
||||
description = $"Runtime files for linux-{dir}",
|
||||
executable_name = "crossapp",
|
||||
executable_can_be_renamed = true,
|
||||
executable_runtime = $"linux-{dir}"
|
||||
@@ -203,4 +205,22 @@ func main(args)
|
||||
BuildConsoleOrServerLinuxStaticBasedOnTarget(static.target,static.cpu);
|
||||
}
|
||||
|
||||
var info = {
|
||||
type = "archive",
|
||||
maintainer = "Mike Nolan",
|
||||
repo = "https://onedev.site.tesses.net/crosslang",
|
||||
homepage = "https://crosslang.tesseslanguage.com/",
|
||||
executable_name = "boot.dol",
|
||||
executable_can_be_renamed = false,
|
||||
executable_runtime = "wii",
|
||||
description = $"Runtime files for wii",
|
||||
};
|
||||
|
||||
var name = $"Tesses.CrossLang.Runtime.wii";
|
||||
|
||||
var subDir = new SubdirFilesystem(FS.Local,"publish"/"wii");
|
||||
var pkgStrm = FS.Local.OpenFile("publish"/$"{name}-{VERSION}.crvm","wb");
|
||||
FS.CreateArchive(subDir,pkgStrm, name ,VERSION, Json.Encode(info));
|
||||
pkgStrm.Close();
|
||||
|
||||
}
|
||||
8
Packaging/CPKG/wiibuild.sh
Normal file
8
Packaging/CPKG/wiibuild.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
mkdir -p publish/wii
|
||||
cd Wii
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -S .. -B . -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/Wii.cmake
|
||||
make -j`nproc`
|
||||
mv boot.dol ../../publish/wii/boot.dol
|
||||
Reference in New Issue
Block a user