From 340dbe683ce85dfee8894ce54674e651665fa73a Mon Sep 17 00:00:00 2001 From: Brian C Date: Wed, 23 Jan 2019 16:17:50 +0000 Subject: [PATCH 1/2] Update Makefile (for building on Linux and OS X) KSPAPIExtension's functionality has been integrated into the mod (via KSPUtils.cs, UnityUtils.cs, EngineWrapper.cs, and MathUtils.cs) yet the Makefile hasn't been updated to reflect this in 3 years. --- Source/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Source/Makefile b/Source/Makefile index f39e9b4d..6e187ac0 100644 --- a/Source/Makefile +++ b/Source/Makefile @@ -13,9 +13,6 @@ else endif GAMEDATA := ${KSPDIR}/GameData -APIGAMEDATA := ${GAMEDATA}/KSPAPIExt -PLUGINDIR := ${APIGAMEDATA}/Plugins -KSPAPIEXT := ../../KSPAPIExtensions/Source TARGETS := ProceduralParts.dll @@ -36,10 +33,14 @@ API_FILES := \ zzVersionChecker.cs \ ICostModifier.cs \ VectorUtils.cs \ + KSPUtils.cs \ + UnityUtils.cs \ + EngineWrapper.cs \ + MathUtils.cs \ $e RESGEN2 := resgen2 -GMCS := gmcs +GMCS := mcs GIT := git TAR := tar ZIP := zip @@ -61,8 +62,8 @@ info: @echo " Plugin: ${PLUGINDIR}" ProceduralParts.dll: ${API_FILES} - ${GMCS} -unsafe -t:library -lib:${APIEXTDATA},${MANAGED},${KSPAPIEXT} \ - -r:Assembly-CSharp,Assembly-CSharp-firstpass,UnityEngine,KSPAPIExtensions \ + ${GMCS} -unsafe -t:library -lib:${MANAGED} \ + -r:Assembly-CSharp,Assembly-CSharp-firstpass,UnityEngine \ -out:$@ $^ clean: From 4211bd9e5bdb15428861965b87129878eafc4ba5 Mon Sep 17 00:00:00 2001 From: Brian C Date: Wed, 23 Jan 2019 16:24:16 +0000 Subject: [PATCH 2/2] added reference to UnityEngine.UI "Consider adding a reference to assembly `UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'" --- Source/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Makefile b/Source/Makefile index 6e187ac0..a9747f30 100644 --- a/Source/Makefile +++ b/Source/Makefile @@ -63,7 +63,7 @@ info: ProceduralParts.dll: ${API_FILES} ${GMCS} -unsafe -t:library -lib:${MANAGED} \ - -r:Assembly-CSharp,Assembly-CSharp-firstpass,UnityEngine \ + -r:Assembly-CSharp,Assembly-CSharp-firstpass,UnityEngine,UnityEngine.UI \ -out:$@ $^ clean: