changeset 1223:55896320c8bf compiletime-tests

fix: references to new package not updated
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 21:13:54 +0700
parents 3c3d4d7a8ecd
children a3fa15c25026
files config.nims semiconginev2.nim semiconginev2/core/buildconfig.nim tests/test_rendering.nim
diffstat 4 files changed, 9 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/config.nims	Wed Jul 17 21:08:15 2024 +0700
+++ b/config.nims	Wed Jul 17 21:13:54 2024 +0700
@@ -2,7 +2,7 @@
 import std/strutils
 import std/os
 
-import semicongine/build
+import semiconginev2/build
 
 task build_dev, "build dev":
   semicongine_build_switches(buildname = "dev")
--- a/semiconginev2.nim	Wed Jul 17 21:08:15 2024 +0700
+++ b/semiconginev2.nim	Wed Jul 17 21:13:54 2024 +0700
@@ -18,11 +18,11 @@
 import std/times
 import std/typetraits
 
-include ./semicongine/rendering/vulkan/api
-include ./semicongine/core
+include ./semiconginev2/rendering/vulkan/api
+include ./semiconginev2/core
 
-include ./semicongine/events
-include ./semicongine/rendering
+include ./semiconginev2/events
+include ./semiconginev2/rendering
 
-include ./semicongine/storage
-include ./semicongine/input
+include ./semiconginev2/storage
+include ./semiconginev2/input
--- a/semiconginev2/core/buildconfig.nim	Wed Jul 17 21:08:15 2024 +0700
+++ b/semiconginev2/core/buildconfig.nim	Wed Jul 17 21:13:54 2024 +0700
@@ -1,14 +1,7 @@
-const ENGINENAME = "semicongine"
+const ENGINENAME = "semiconginev2"
 
 # checks required build options:
 static:
-  assert compileOption("threads"), ENGINENAME & " requires --threads=on"
-  assert defined(nimPreviewHashRef), ENGINENAME & " requires -d:nimPreviewHashRef"
-
-  if defined(release) or defined(windows):
-    assert compileOption("app", "gui"), ENGINENAME & " requires --app=gui for release builds and all windows builds"
-
-
   if defined(linux):
     assert defined(VK_USE_PLATFORM_XLIB_KHR), ENGINENAME & " requires --d:VK_USE_PLATFORM_XLIB_KHR for linux builds"
   elif defined(windows):
--- a/tests/test_rendering.nim	Wed Jul 17 21:08:15 2024 +0700
+++ b/tests/test_rendering.nim	Wed Jul 17 21:13:54 2024 +0700
@@ -1,7 +1,7 @@
 import std/options
 import std/random
 
-import ../semicongine
+import ../semiconginev2
 
 var
   mainRenderpass: VkRenderPass