From da60a05252d6f6e6fdcf1a392078725615e7ab1f Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 19 Jun 2025 11:31:54 -0700 Subject: Use modern profiling flags; run cabal-gild to format --- Spear.cabal | 229 +++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 126 insertions(+), 103 deletions(-) (limited to 'Spear.cabal') diff --git a/Spear.cabal b/Spear.cabal index 0be03fe..d21f594 100644 --- a/Spear.cabal +++ b/Spear.cabal @@ -12,116 +12,139 @@ author: Marc Sunet data-dir: "" library - build-depends: - GLFW-b -any, - OpenAL -any, - ALUT -any, - OpenGL >= 3, - OpenGLRaw -any, - StateVar -any, - --stb-image >= 0.3.0, TODO: Remove - base -any, - bytestring -any, - directory -any, - exceptions -any, - file-embed -any, - hashable -any, - hashmap -any, - mtl -any, - text -any, - transformers -any, - resourcet -any, - parsec >= 3, - containers -any, - vector -any, - array -any + build-depends: + --stb-image >= 0.3.0, TODO: Remove + ALUT, + GLFW-b, + OpenAL, + OpenGL >=3, + OpenGLRaw, + StateVar, + array, + base, + bytestring, + containers, + directory, + exceptions, + file-embed, + hashable, + hashmap, + mtl, + parsec >=3, + resourcet, + text, + transformers, + vector - exposed-modules: - Spear.App - Spear.Asset.Image - Spear.Game - Spear.Math.AABB - Spear.Math.Algebra - Spear.Math.Camera - Spear.Math.Circle - Spear.Math.Frustum - Spear.Math.Matrix3 - Spear.Math.Matrix4 - Spear.Math.MatrixUtils - Spear.Math.Plane - Spear.Math.Quaternion - Spear.Math.Ray - Spear.Math.Segment - Spear.Math.Spatial - Spear.Math.Spatial2 - Spear.Math.Spatial3 - Spear.Math.Sphere - Spear.Math.Triangle - Spear.Math.Utils - Spear.Math.Vector - Spear.Math.Vector.Vector - Spear.Math.Vector.Vector2 - Spear.Math.Vector.Vector3 - Spear.Math.Vector.Vector4 - Spear.Physics.Collision - Spear.Physics.RigidBody - Spear.Prelude - Spear.Render.Asset - Spear.Render.Core - Spear.Render.Core.Buffer - Spear.Render.Core.Constants - Spear.Render.Core.Geometry - Spear.Render.Core.Pipeline - Spear.Render.Core.Shader - Spear.Render.Core.State - Spear.Render.Core.Texture - Spear.Render.Immediate - Spear.Render.Shaders - Spear.Sound.Sound - Spear.Sound.State - Spear.Step - Spear.Sys.Store - Spear.Sys.Store.ID - Spear.Sys.Timer - Spear.Window + exposed-modules: + Spear.App + Spear.Asset.Image + Spear.Game + Spear.Math.AABB + Spear.Math.Algebra + Spear.Math.Camera + Spear.Math.Circle + Spear.Math.Frustum + Spear.Math.Matrix3 + Spear.Math.Matrix4 + Spear.Math.MatrixUtils + Spear.Math.Plane + Spear.Math.Quaternion + Spear.Math.Ray + Spear.Math.Segment + Spear.Math.Spatial + Spear.Math.Spatial2 + Spear.Math.Spatial3 + Spear.Math.Sphere + Spear.Math.Triangle + Spear.Math.Utils + Spear.Math.Vector + Spear.Math.Vector.Vector + Spear.Math.Vector.Vector2 + Spear.Math.Vector.Vector3 + Spear.Math.Vector.Vector4 + Spear.Physics.Collision + Spear.Physics.RigidBody + Spear.Prelude + Spear.Render.Asset + Spear.Render.Core + Spear.Render.Core.Buffer + Spear.Render.Core.Constants + Spear.Render.Core.Geometry + Spear.Render.Core.Pipeline + Spear.Render.Core.Shader + Spear.Render.Core.State + Spear.Render.Core.Texture + Spear.Render.Immediate + Spear.Render.Shaders + Spear.Sound.Sound + Spear.Sound.State + Spear.Step + Spear.Sys.Store + Spear.Sys.Store.ID + Spear.Sys.Timer + Spear.Window - exposed: True + exposed: True + buildable: True + build-tools: hsc2hs >=0 + c-sources: + Spear/Sys/Timer/timer.c + Spear/cbits/stb/stb_image.c - buildable: True + includes: + Spear/Sys/Timer/timer.h + cbits/stb/stb_image.h - build-tools: hsc2hs -any + include-dirs: + . + Spear + Spear/Sys + Spear/cbits - c-sources: - Spear/cbits/stb/stb_image.c - Spear/Sys/Timer/timer.c + hs-source-dirs: . + cc-options: + -O2 + -Wno-unused-result - includes: - cbits/stb/stb_image.h - Spear/Sys/Timer/timer.h - - include-dirs: - . - Spear - Spear/cbits - Spear/Sys - - hs-source-dirs: . - - cc-options: -O2 -Wno-unused-result - ghc-options: -O2 - ghc-prof-options: -O2 -g -fprof-auto -fprof-cafs + ghc-options: -O2 + ghc-prof-options: + -O2 + -g + -prof + -fprof-auto + -fprof-cafs + -rtsopts executable pong - hs-source-dirs: Demos/Pong - main-is: Main.hs - other-modules: Pong - build-depends: base, Spear - ghc-options: -O2 - ghc-prof-options: -O2 -g -fprof-auto -fprof-cafs + hs-source-dirs: Demos/Pong + main-is: Main.hs + other-modules: Pong + build-depends: + Spear, + base + + ghc-options: -O2 + ghc-prof-options: + -O2 + -g + -prof + -fprof-auto + -fprof-cafs + -rtsopts executable balls - hs-source-dirs: Demos/Balls - main-is: Main.hs - build-depends: base, Spear - ghc-options: -O2 - ghc-prof-options: -O2 -g -fprof-auto -fprof-cafs + hs-source-dirs: Demos/Balls + main-is: Main.hs + build-depends: + Spear, + base + + ghc-options: -O2 + ghc-prof-options: + -O2 + -g + -prof + -fprof-auto + -fprof-cafs + -rtsopts -- cgit v1.2.3