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 -m Test
-python test/generated/test.py -python test/generated/test.py
--next
-dce full
-cp src
xrfragment
-lib gdscript
-D gdscript-output=dist/godot
-D generate_godot_plugin
#--next #--next
# #
#-dce full #-dce full

45
make
View file

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

View file

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