summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-08-15 05:38:29 +0200
committerBerke Viktor <berkeviktor@aol.com>2011-08-15 05:38:29 +0200
commit08004a1d25dc0c987f87f6a94db20e75444b18d2 (patch)
tree794b679a36fbeff3ae61dc674d2f1bf343f6060c
parentdcb4bb2b305f65efb1a16163b96514063e055a19 (diff)
remove a2lib, use gendef instead
-rw-r--r--build/convert-lib-x64.py30
-rw-r--r--build/convert-lib-x86.py30
2 files changed, 0 insertions, 60 deletions
diff --git a/build/convert-lib-x64.py b/build/convert-lib-x64.py
deleted file mode 100644
index 84bf2403..00000000
--- a/build/convert-lib-x64.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# a2lib script by Mikhail Titov
-# http://live.gnome.org/GTK%2B/Win32/NativeBuildWithOBS
-
-import os,re,sys,shutil
-from os.path import join, getsize
-from subprocess import Popen, PIPE
-os.environ['PATH'] = os.environ['PATH'] + ";C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\bin\\amd64;C:\\mozilla-build\\mingw64\\bin"
-root = "c:\\mozilla-build\\build\\xchat-wdk\\dep-x64"
-
-def gen(dll,lib,d):
-    output = Popen(["nm", lib], stdout=PIPE).communicate()[0]
-    with open(d, "wb") as f:
-        f.write(b"EXPORTS\n")
-        for line in output.split(b"\r\n"):
-            if (re.match(b".* T _|.* I __nm", line)): #|.* I __imp
-                line = re.sub(b"^.* T _|^.* I __nm__", b"", line) #|^.* I _
-                f.write(line + b"\n")
-        f.write(str.encode("LIBRARY %s\n" % dll))
-    p = Popen(["lib", "/MACHINE:X64", "/def:%s" % d]) #, shell = True)
-
-os.chdir(root + "\\lib")
-for root, dirs, files in os.walk(root + "\\bin"):
-    for f in files:
-        if (re.search(".dll", f)):
-            name = re.sub("^lib", "", f)
-            name = re.sub("(?:-\\d).dll", "", name)
-            print("Working on %s\n" % f)
-            d = "%s.def" % name
-            lib = "lib%s.dll.a" % name
-            gen(f, lib, d)
diff --git a/build/convert-lib-x86.py b/build/convert-lib-x86.py
deleted file mode 100644
index bcb8afbf..00000000
--- a/build/convert-lib-x86.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# a2lib script by Mikhail Titov
-# http://live.gnome.org/GTK%2B/Win32/NativeBuildWithOBS
-
-import os,re,sys,shutil
-from os.path import join, getsize
-from subprocess import Popen, PIPE
-os.environ['PATH'] = os.environ['PATH'] + ";C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE;C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\bin;C:\\mozilla-build\\mingw32\\bin"
-root = "c:\\mozilla-build\\build\\xchat-wdk\\dep-x86"
-
-def gen(dll,lib,d):
-    output = Popen(["nm", lib], stdout=PIPE).communicate()[0]
-    with open(d, "wb") as f:
-        f.write(b"EXPORTS\n")
-        for line in output.split(b"\r\n"):
-            if (re.match(b".* T _|.* I __nm", line)): #|.* I __imp
-                line = re.sub(b"^.* T _|^.* I __nm__", b"", line) #|^.* I _
-                f.write(line + b"\n")
-        f.write(str.encode("LIBRARY %s\n" % dll))
-    p = Popen(["lib", "/MACHINE:X86", "/def:%s" % d]) #, shell = True)
-
-os.chdir(root + "\\lib")
-for root, dirs, files in os.walk(root + "\\bin"):
-    for f in files:
-        if (re.search(".dll", f)):
-            name = re.sub("^lib", "", f)
-            name = re.sub("(?:-\\d).dll", "", name)
-            print("Working on %s\n" % f)
-            d = "%s.def" % name
-            lib = "lib%s.dll.a" % name
-            gen(f, lib, d)