Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
L3 - Projet programmation 2
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
v-lafeychine
L3 - Projet programmation 2
Commits
e9673bea
Verified
Commit
e9673bea
authored
3 years ago
by
v-lafeychine
Browse files
Options
Downloads
Patches
Plain Diff
Switch to Scala Native + Add every dependencies for SDL
parent
4f2b86f8
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Resolve "Found graphics module"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build.sbt
+10
-2
10 additions, 2 deletions
build.sbt
project/plugins.sbt
+1
-0
1 addition, 0 deletions
project/plugins.sbt
shell.nix
+13
-0
13 additions, 0 deletions
shell.nix
with
24 additions
and
2 deletions
build.sbt
+
10
−
2
View file @
e9673bea
name
:=
"prog-2"
scalaVersion
:=
"3.1.1"
enablePlugins
(
ScalaNativePlugin
)
nativeCompileOptions
++=
Seq
(
"-stdlib=libc++"
)
nativeLinkingOptions
++=
Seq
(
"-fuse-ld=lld"
)
nativeMode
:=
"release-fast"
nativeLTO
:=
"thin"
libraryDependencies
++=
Seq
(
"org.scalatest"
%%
"scalatest-funsuite"
%
"3.2.11"
%
"test"
,
"org.scala-lang.modules"
%%
"scala-swing"
%
"3.0.0"
"org.scalatest"
%%
"scalatest-funsuite"
%
"3.2.11"
%
"test"
,
"org.scala-lang.modules"
%%
"scala-swing"
%
"3.0.0"
)
This diff is collapsed.
Click to expand it.
project/plugins.sbt
+
1
−
0
View file @
e9673bea
addSbtPlugin
(
"com.timushev.sbt"
%
"sbt-updates"
%
"0.6.1"
)
addSbtPlugin
(
"org.scalameta"
%
"sbt-scalafmt"
%
"2.4.6"
)
addSbtPlugin
(
"org.scala-native"
%
"sbt-scala-native"
%
"0.4.3"
)
This diff is collapsed.
Click to expand it.
shell.nix
0 → 100644
+
13
−
0
View file @
e9673bea
{
pkgs
?
import
<
nixpkgs
>
{
}
}:
with
pkgs
;
let
llvmPackages
=
llvmPackages_13
;
stdenv
=
llvmPackages
.
libcxxStdenv
;
in
stdenv
.
mkDerivation
(
rec
{
name
=
"prog-2"
;
buildInputs
=
[
llvmPackages
.
lld
sbt
SDL2
which
];
LD_LIBRARY_PATH
=
lib
.
makeLibraryPath
[
llvmPackages
.
libcxx
llvmPackages
.
libcxxabi
SDL2
];
})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment