summary refs log tree commit diff stats
path: root/noprefix.nim
blob: e7ec26c560520baa267284cda4b8817d833bfcd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# strip those silly GTK/ATK prefixes...

import
  expandimportc, os

const
  filelist = [
    ("sdl/sdl", "sdl"),
    ("sdl/sdl_net", "sdl"),
    ("sdl/sdl_gfx", "sdl"),
    ("sdl/sdl_image", "sdl"),
    ("sdl/sdl_mixer_nosmpeg", "sdl"),
    ("sdl/sdl_mixer", "sdl"),
    ("sdl/sdl_ttf", "sdl"),
    ("sdl/smpeg", "sdl"),
    
    ("libcurl", "curl"),
    ("mysql", "mysql"),
    ("postgres", ""),
    ("sqlite3", "sqlite3"),
    ("tcl", "tcl"),
    ("cairo/cairo", "cairo"),
    ("cairo/cairoft", "cairo"),
    ("cairo/cairowin32", "cairo"),
    ("cairo/cairoxlib", "cairo"),
    
    ("gtk/atk", "atk"),
    ("gtk/gdk2", "gdk"),
    ("gtk/gdk2pixbuf", "gdk"),
    ("gtk/gdkglext", "gdk"),
    ("gtk/glib2", ""),
    ("gtk/gtk2", "gtk"),
    ("gtk/gtkglext", "gtk"),
    ("gtk/gtkhtml", "gtk"),
    ("gtk/libglade2", "glade"),
    ("gtk/pango", "pango"),
    ("gtk/pangoutils", "pango"),
    
    ("lua/lua", "lua"),
    ("lua/lauxlib", "luaL"),
    ("lua/lualib", "lua"),
    
    ("opengl/gl", ""),
    ("opengl/glext", ""),
    ("opengl/wingl", ""),
    ("opengl/glu", ""),
    ("opengl/glut", ""),
    ("opengl/glx", ""),
    
    ("pcre/pcre", "pcre")
  ]

proc createDirs =
  createDir("lib/newwrap/sdl")
  createDir("lib/newwrap/cairo")
  createDir("lib/newwrap/gtk")
  createDir("lib/newwrap/lua")
  createDir("lib/newwrap/opengl")
  createDir("lib/newwrap/pcre")

for filename, prefix in items(filelist):
  var f = addFileExt(filename, "nim")
  main("lib/wrappers" / f, "lib/newwrap" / f, prefix)