work in progress [might break]

This commit is contained in:
Leon van Kammen 2024-04-29 14:28:50 +00:00
parent 8ea6b3748c
commit c4959c77bb
3 changed files with 38 additions and 17 deletions

View File

@ -49,6 +49,14 @@ Test
-m Test
-python test/generated/test.py
--next
-dce full
-cp src
xrfragment
-lib gdscript
-D gdscript-output=dist/godot
-D generate_godot_plugin
#--next
#
#-dce full

45
make
View File

@ -4,24 +4,37 @@ try(){ set +e; "$@" 2>/dev/null; set -e; }
trace(){ set -x; "$@"; set +x; }
install(){
which haxe || {
echo -e "installing haxe..if this fails:\n\n"
echo " 1. install haxe from haxe.org"
echo "[2.] download neko for cpp output"
echo "[3.] install mono openjdk14 for csharp + java output"
which apt-get && {
sudo apt-get update -y
sudo apt-get install neko haxe -y
general(){
which haxe || {
echo -e "installing haxe..if this fails:\n\n"
echo " 1. install haxe from haxe.org"
echo "[2.] download neko for cpp output"
echo "[3.] install mono openjdk14 for csharp + java output"
which apt-get && {
sudo apt-get update -y
sudo apt-get install neko haxe -y
}
}
mkdir ~/.haxe
haxelib setup ~/.haxe
haxelib install hxcpp
haxelib install hxjava
haxelib install hxcs
haxelib install hscript
which javac && haxelib install hxjava 4.2.0 || "[!] skipping java (no javac found)"
which mono && haxelib install hxcs 4.2.0 || "[!] skipping C# (no mono found)"
}
mkdir ~/.haxe
haxelib setup ~/.haxe
haxelib install hxcpp
haxelib install hxjava
haxelib install hxcs
haxelib install hscript
which javac && haxelib install hxjava 4.2.0
which mono && haxelib install hxcs 4.2.0
godot(){
# GoDot support
haxelib git gdscript https://github.com/SomeRanDev/reflaxe.GDScript nightly
haxelib git godot-api-generator https://github.com/SomeRanDev/Haxe-GodotBindingsGenerator
haxelib run godot-api-generator
}
test -z $1 && general
test -z $1 || "$@"
}
tests(){

View File

@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
{ pkgs ? import <nixos-unstable> {} }:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run