Store temp files in project path
This commit is contained in:
parent
2147301423
commit
ff7d334aca
7 changed files with 18 additions and 11 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import macros
|
||||||
import os, strutils, strformat
|
import os, strutils, strformat
|
||||||
import nimterop/[cimport, build, globals]
|
import nimterop/[cimport, build, globals]
|
||||||
|
|
||||||
|
|
@ -7,7 +8,7 @@ const
|
||||||
srcDir = (baseDir / "sdl2").sanitizePath
|
srcDir = (baseDir / "sdl2").sanitizePath
|
||||||
buildDir = (srcDir / "build" / ".libs").sanitizePath
|
buildDir = (srcDir / "build" / ".libs").sanitizePath
|
||||||
includeDir = (srcDir / "include").sanitizePath
|
includeDir = (srcDir / "include").sanitizePath
|
||||||
currentPath = currentSourcePath().parentDir().parentDir().sanitizePath
|
currentPath = getProjectPath().parentDir().sanitizePath
|
||||||
generatedPath = (currentPath / "generated" / "sdl2").replace("\\", "/")
|
generatedPath = (currentPath / "generated" / "sdl2").replace("\\", "/")
|
||||||
symbolPluginPath = (currentSourcePath.parentDir() / "cleansymbols.nim").sanitizePath
|
symbolPluginPath = (currentSourcePath.parentDir() / "cleansymbols.nim").sanitizePath
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import macros
|
||||||
import os, strutils, strformat
|
import os, strutils, strformat
|
||||||
import sdl2
|
import sdl2
|
||||||
import nimterop/[cimport, build, globals]
|
import nimterop/[cimport, build, globals]
|
||||||
|
|
@ -6,7 +7,7 @@ const
|
||||||
baseDir = SDLCacheDir
|
baseDir = SDLCacheDir
|
||||||
srcDir = baseDir / "sdl2_gfx"
|
srcDir = baseDir / "sdl2_gfx"
|
||||||
buildDir = srcDir / ".libs"
|
buildDir = srcDir / ".libs"
|
||||||
currentPath = currentSourcePath().parentDir().parentDir().sanitizePath
|
currentPath = getProjectPath().parentDir().sanitizePath
|
||||||
generatedPath = (currentPath / "generated" / "sdl2_gfx").replace("\\", "/")
|
generatedPath = (currentPath / "generated" / "sdl2_gfx").replace("\\", "/")
|
||||||
symbolPluginPath = currentSourcePath.parentDir() / "cleansymbols.nim"
|
symbolPluginPath = currentSourcePath.parentDir() / "cleansymbols.nim"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import macros
|
||||||
import os, strformat, strutils
|
import os, strformat, strutils
|
||||||
import sdl2
|
import sdl2
|
||||||
import nimterop/[build, cimport, globals]
|
import nimterop/[build, cimport, globals]
|
||||||
|
|
@ -6,8 +7,8 @@ const
|
||||||
baseDir = SDLCacheDir
|
baseDir = SDLCacheDir
|
||||||
sdlDir = (baseDir / "sdl2").sanitizePath
|
sdlDir = (baseDir / "sdl2").sanitizePath
|
||||||
srcDir = (baseDir / "sdl2_gpu").sanitizePath
|
srcDir = (baseDir / "sdl2_gpu").sanitizePath
|
||||||
currentPath = currentSourcePath().parentDir().parentDir().sanitizePath
|
currentPath = getProjectPath().parentDir().sanitizePath
|
||||||
generatedPath = (currentPath / "generated").replace("\\", "/")
|
generatedPath = (currentPath / "generated" / "sdl2_gpu").replace("\\", "/")
|
||||||
cmakeModPath = (currentPath / "cmake" / "sdl2").replace("\\", "/")
|
cmakeModPath = (currentPath / "cmake" / "sdl2").replace("\\", "/")
|
||||||
symbolPluginPath = (currentPath / "sdl2" / "cleansymbols.nim").sanitizePath
|
symbolPluginPath = (currentPath / "sdl2" / "cleansymbols.nim").sanitizePath
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import macros
|
||||||
import os, strutils, strformat
|
import os, strutils, strformat
|
||||||
import sdl2
|
import sdl2
|
||||||
import nimterop/[cimport, build, globals]
|
import nimterop/[cimport, build, globals]
|
||||||
|
|
@ -6,8 +7,8 @@ const
|
||||||
baseDir = SDLCacheDir
|
baseDir = SDLCacheDir
|
||||||
srcDir = baseDir / "sdl2_image"
|
srcDir = baseDir / "sdl2_image"
|
||||||
buildDir = srcDir / ".libs"
|
buildDir = srcDir / ".libs"
|
||||||
currentPath = currentSourcePath().parentDir().parentDir().sanitizePath
|
currentPath = getProjectPath().parentDir().sanitizePath
|
||||||
generatedPath = (currentPath / "generated").replace("\\", "/")
|
generatedPath = (currentPath / "generated" / "sdl2_image").replace("\\", "/")
|
||||||
symbolPluginPath = currentSourcePath.parentDir() / "cleansymbols.nim"
|
symbolPluginPath = currentSourcePath.parentDir() / "cleansymbols.nim"
|
||||||
|
|
||||||
defs = """
|
defs = """
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import macros
|
||||||
import os, strutils, strformat
|
import os, strutils, strformat
|
||||||
import sdl2
|
import sdl2
|
||||||
import nimterop/[cimport, build, globals]
|
import nimterop/[cimport, build, globals]
|
||||||
|
|
@ -6,8 +7,8 @@ const
|
||||||
baseDir = SDLCacheDir
|
baseDir = SDLCacheDir
|
||||||
srcDir = baseDir / "sdl2_mixer"
|
srcDir = baseDir / "sdl2_mixer"
|
||||||
buildDir = srcDir / "build" / ".libs"
|
buildDir = srcDir / "build" / ".libs"
|
||||||
currentPath = currentSourcePath().parentDir().parentDir().sanitizePath
|
currentPath = getProjectPath().parentDir().sanitizePath
|
||||||
generatedPath = (currentPath / "generated").replace("\\", "/")
|
generatedPath = (currentPath / "generated" / "sdl2_mixer").replace("\\", "/")
|
||||||
symbolPluginPath = currentSourcePath.parentDir() / "cleansymbols.nim"
|
symbolPluginPath = currentSourcePath.parentDir() / "cleansymbols.nim"
|
||||||
|
|
||||||
defs = """
|
defs = """
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import macros
|
||||||
import os, strutils, strformat
|
import os, strutils, strformat
|
||||||
import sdl2
|
import sdl2
|
||||||
import nimterop/[cimport, build, globals]
|
import nimterop/[cimport, build, globals]
|
||||||
|
|
@ -6,7 +7,7 @@ const
|
||||||
baseDir = SDLCacheDir
|
baseDir = SDLCacheDir
|
||||||
srcDir = baseDir / "sdl2_net"
|
srcDir = baseDir / "sdl2_net"
|
||||||
buildDir = srcDir / ".libs"
|
buildDir = srcDir / ".libs"
|
||||||
currentPath = currentSourcePath().parentDir().parentDir().sanitizePath
|
currentPath = getProjectPath().parentDir().sanitizePath
|
||||||
generatedPath = (currentPath / "generated" / "sdl2_net").replace("\\", "/")
|
generatedPath = (currentPath / "generated" / "sdl2_net").replace("\\", "/")
|
||||||
symbolPluginPath = currentSourcePath.parentDir() / "cleansymbols.nim"
|
symbolPluginPath = currentSourcePath.parentDir() / "cleansymbols.nim"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import macros
|
||||||
import os, strutils, strformat
|
import os, strutils, strformat
|
||||||
import sdl2
|
import sdl2
|
||||||
import nimterop/[cimport, build, globals]
|
import nimterop/[cimport, build, globals]
|
||||||
|
|
@ -7,8 +8,8 @@ const
|
||||||
sdlDir = (baseDir / "sdl2").sanitizePath
|
sdlDir = (baseDir / "sdl2").sanitizePath
|
||||||
srcDir = (baseDir / "sdl2_ttf").sanitizePath
|
srcDir = (baseDir / "sdl2_ttf").sanitizePath
|
||||||
buildDir = srcDir / ".libs"
|
buildDir = srcDir / ".libs"
|
||||||
currentPath = currentSourcePath().parentDir().parentDir().sanitizePath
|
currentPath = getProjectPath().parentDir().sanitizePath
|
||||||
generatedPath = (currentPath / "generated").replace("\\", "/")
|
generatedPath = (currentPath / "generated" / "sdl2_ttf").replace("\\", "/")
|
||||||
symbolPluginPath = (currentPath / "sdl2" / "cleansymbols.nim").sanitizePath
|
symbolPluginPath = (currentPath / "sdl2" / "cleansymbols.nim").sanitizePath
|
||||||
|
|
||||||
defs = """
|
defs = """
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue