Skip to content
Snippets Groups Projects
Verified Commit c0642831 authored by v-lafeychine's avatar v-lafeychine
Browse files

Add submodule for Non-NixOS users

parent 8aff85b2
No related branches found
No related tags found
1 merge request!4Resolve "Found graphics module"
[submodule "CSFML"]
path = CSFML
url = https://github.com/lafeychine/CSFML
Subproject commit d4deb5e3360dafd9f56a569c004a74ff02a56d7d
Makefile 0 → 100644
CSFML_PATH = CSFML
override CSFML_BUILD := $(CSFML_PATH)/build
override CSFML_LIBRARY := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))$(CSFML_BUILD)/lib
NAME = prog-2
CP = cp
CMAKE = cmake
MKDIR = mkdir
SBT = sbt
all: $(NAME)
sbt: csfml
SCALANATIVE_LIB_DIRS=$(CSFML_LIBRARY) LD_LIBRARY_PATH=$(CSFML_LIBRARY) $(SBT) $(SBTFLAGS)
$(NAME): override SBTFLAGS := nativeLink
$(NAME): sbt
$(CP) target/scala-3.1.1/$(NAME)-out $(NAME)
csfml: $(CSFML_BUILD)/Makefile
$(MAKE) -C $(CSFML_BUILD)
$(CSFML_BUILD)/Makefile:
$(MKDIR) -p $(CSFML_BUILD)
$(CMAKE) $(CMAKEFLAGS) -B $(CSFML_BUILD) -S $(CSFML_PATH)
clean:
$(SBT) clean
$(RM) -r $(CSFML_BUILD)
.NOTPARALLEL:
.PHONY: all clean csfml_lib sbt
......@@ -3,9 +3,6 @@ scalaVersion := "3.1.1"
enablePlugins(ScalaNativePlugin)
nativeCompileOptions ++= Seq("-stdlib=libc++")
nativeLinkingOptions ++= Seq("-fuse-ld=lld")
nativeMode := "debug"
nativeLTO := "none"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment