diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2019-10-27 21:51:02 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2019-10-27 21:51:02 +0200 |
| commit | d2004b1f05ef0d17f14728837dbb1d061eea563d (patch) | |
| tree | 7b9fb0c834486c4e1dc62b2709f9ba0751d2c691 | |
| parent | 53978c1878176ae21856e6b111d76dd1a80ecbca (diff) | |
| download | nimraylib-d2004b1f05ef0d17f14728837dbb1d061eea563d.tar.gz nimraylib-d2004b1f05ef0d17f14728837dbb1d061eea563d.zip | |
Make dynlib load path work
| -rw-r--r-- | examples/config.nims | 1 | ||||
| -rw-r--r-- | raylib.cfg | 11 | ||||
| -rw-r--r-- | raylib.nimble | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/examples/config.nims b/examples/config.nims new file mode 100644 index 0000000..cc72fca --- /dev/null +++ b/examples/config.nims @@ -0,0 +1 @@ +switch("path", "$projectDir/..") @@ -9,7 +9,7 @@ execute-lin = "tar -C raylib --strip-components=1 -x -f raylib/raylib-2.5.0-Linu raylib/include [raylib.h] -dynlib-lin = "${output}/lib/libraylib.so" +dynlib-lin = "lib/libraylib.so" preprocess = true defines = true @@ -21,8 +21,13 @@ search.settracelogcallback = "RLAPI void SetTraceLogCallback" prepend.settracelogcallback = "//" [raylib.nim] -search.header = "/include/.h" -replace.header = "/include/raylib.h" +search.libpath = "{.passC" +prepend.libpath = """ +const dynlibraylibFullPath = sourcePath & "/" & dynlibraylib +""" + +search.dy = "dynlib: dynlibraylib" +replace.dy = "dynlib: dynlibraylibFullPath" search.music = "Music* = ptr MusicData" prepend.music = """MusicData* = object diff --git a/raylib.nimble b/raylib.nimble index bff40ad..a9e0f00 100644 --- a/raylib.nimble +++ b/raylib.nimble @@ -3,6 +3,8 @@ author = "Oskari Timperi" description = "A new awesome nimble package" license = "Zlib" +skipDirs = @["examples"] + requires "nim >= 1.0.2" requires "nimgen >= 0.5.1" |
