Change to 'project'
This commit is contained in:
parent
c070567f0c
commit
a7f32026f3
6 changed files with 9 additions and 9 deletions
2
nim.cfg
2
nim.cfg
|
|
@ -1 +1 @@
|
||||||
-d:NimteropTemplate_SetVer="M.M.V" -d:NimteropTemplate_DL -d:NimteropTemplate_Static
|
-d:Project_SetVer="M.M.V" -d:Project_DL -d:Project_Static
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ srcDir = "src"
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
requires "nim >= 1.0.6", "nimterop#head"
|
requires "nim >= 1.0.6", "nimterop#head", "regex"
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
import nimterop_template/nimterop_template
|
|
||||||
|
|
||||||
export nimterop_template
|
|
||||||
3
src/project.nim
Normal file
3
src/project.nim
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
import project/project
|
||||||
|
|
||||||
|
export project
|
||||||
|
|
@ -2,7 +2,7 @@ import os, strutils, strformat
|
||||||
import nimterop/[cimport, build]
|
import nimterop/[cimport, build]
|
||||||
|
|
||||||
const
|
const
|
||||||
SDLCacheDir* = currentSourcePath.parentDir().parentDir() / "build" #getProjectCacheDir("nimsdl2")
|
ProjectCacheDir* = currentSourcePath.parentDir().parentDir() / "build" #getProjectCacheDir("nimsdl2")
|
||||||
baseDir = SDLCacheDir
|
baseDir = SDLCacheDir
|
||||||
srcDir = baseDir / "sdl2"
|
srcDir = baseDir / "sdl2"
|
||||||
buildDir = srcDir / "buildcache"
|
buildDir = srcDir / "buildcache"
|
||||||
|
|
@ -33,7 +33,7 @@ cOverride:
|
||||||
|
|
||||||
cPluginPath(symbolPluginPath)
|
cPluginPath(symbolPluginPath)
|
||||||
|
|
||||||
when defined(NimteropTemplate_Static):
|
when defined(Project_Static):
|
||||||
cImport(NimteropTemplate_Path, recurse = true, flags = "-f=ast2 -E__,_ -F__,_")
|
cImport(Project_Path, recurse = true, flags = "-f=ast2 -E__,_ -F__,_")
|
||||||
else:
|
else:
|
||||||
cImport(NimteropTemplate_Path, recurse = true, dynlib = "NimteropTemplate_LPath", flags = "-f=ast2 -E__,_ -F__,_")
|
cImport(Project_Path, recurse = true, dynlib = "Project_LPath", flags = "-f=ast2 -E__,_ -F__,_")
|
||||||
Loading…
Add table
Add a link
Reference in a new issue