This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nim c -d:yaraGit yara.nim | |
# nim c -d:yaraGit -d:yaraStatic yara.nim | |
import os | |
import nimterop/[build, cimport] | |
const | |
baseDir = getProjectCacheDir("nimyara") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nim c -d:flecsGit -r flecs.nim | |
import os | |
import nimterop/[cimport, build] | |
const | |
baseDir = getProjectCacheDir("nimflecs") | |
getHeader( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import strutils | |
import nimterop/[build, cimport] | |
const | |
baseDir = getProjectCacheDir("meow") | |
static: | |
gitPull( | |
"https://github.com/cmuratori/meow_hash", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nimterop/cimport | |
const | |
baseDir = "/usr/include/freetype2" | |
cDefine("FT_UInt32", "unsigned int32") | |
cIncludeDir(baseDir) | |
cImport( | |
filename = "ft.h", | |
recurse = true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nimterop/[cimport] | |
cIncludeDir(@[ | |
"/usr/include/gtk-3.0", | |
"/usr/include/glib-2.0", | |
"/usr/lib/x86_64-linux-gnu/glib-2.0/include", | |
"/usr/include/pango-1.0", | |
"/usr/include/cairo", | |
"/usr/include/gdk-pixbuf-2.0", | |
"/usr/include/atk-1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nim c -d:FLAGS pkcs.nim | |
# | |
# FLAGS | |
# -d:pkcs7Std | -d:pkcs7Conan | -d:pkcs7JBB | |
# -d:pkcs7Static | |
import strutils | |
import nimterop/[build, cimport] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nimterop/cimport | |
cPlugin: | |
import strutils | |
proc onSymbol(sym: var Symbol) {.exportc, dynlib.} = | |
# Get rid of some problematic symbols | |
if sym.name.contains("CSET"): | |
sym.name = "" | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nim c -d:FLAGS tensorflow.nim | |
# | |
# FLAGS | |
# -d:capiDL | |
# -d:capiSetVer= | |
import os | |
import nimterop/[build, cimport] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nim c -d:FLAGS quickjs.nim | |
# | |
# FLAGS | |
# -d:quickjsGit | |
# -d:quickjsSetVer= | |
# -d:quickjsStatic | |
import os | |
import nimterop/[build, cimport] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nim c -d:FLAGS nghttp2.nim | |
# | |
# FLAGS | |
# -d:nghttp2Git | -d:nghttp2DL | -d:nghttp2Conan | -d:nghttp2JBB | |
# -d:nghttp2SetVer=v0.4 | |
# -d:nghttp2Static | |
import os | |
import nimterop/[build, cimport] |
NewerOlder