OSDN Git Service

remove reference to the removed opengl component from the scripts
authorIvailo Monev <xakepa10@laimg.moc>
Wed, 26 Apr 2017 13:10:13 +0000 (13:10 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Wed, 26 Apr 2017 13:10:13 +0000 (13:10 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
scripts/genmap.py
scripts/updatetranslations.py

index 73bf196..450094e 100755 (executable)
@@ -16,7 +16,6 @@ components = {
     'ScriptTools': 'Q_SCRIPTTOOLS_EXPORT',
     'Test': 'Q_TEST_EXPORT',
     'UiTools': 'Q_UITOOLS_EXPORT',
-    'OpenGL': 'Q_OPENGL_EXPORT',
 }
 mapoutput = 'src/shared/qclass_lib_map.h'
 classcount = -1
@@ -25,7 +24,7 @@ mapdata = '// Automatically generated by genmap.py, DO NOT EDIT!\n\n'
 mapdata += '#ifndef QT_CLASS_MAP_H\n#define QT_CLASS_MAP_H\n\n'
 mapdata += 'static const ClassInfoEntry qclass_lib_map[] = {\n'
 
-def exportscan(sdir, keyword, component):
+def exportscan(sdir, pattern, component):
     dirmap = ''
     global classcount
     for sroot, sdir, lfiles in os.walk(sdir):
@@ -36,7 +35,7 @@ def exportscan(sdir, keyword, component):
             with open(sfull, 'rb') as f:
                 scontent = f.read()
             scontent = scontent.decode('utf-8')
-            for match in re.findall('(?:class|struct) (?:%s) (\w+)' % keyword, scontent):
+            for match in re.findall('(?:class|struct) (?:%s) (\w+)' % pattern, scontent):
                 if match in mappedclasses:
                     continue
                 mappedclasses.append(match)
@@ -45,8 +44,8 @@ def exportscan(sdir, keyword, component):
     return dirmap
 
 for component in components:
-    keyword = components[component]
-    mapdata += exportscan('src/%s' % component.lower(), keyword, 'Qt%s' % component)
+    pattern = components[component]
+    mapdata += exportscan('src/%s' % component.lower(), pattern, 'Qt%s' % component)
 
 mapdata += '};\n'
 mapdata += 'static const int qclass_lib_count = %d;\n\n' % classcount
index c165975..94cece5 100755 (executable)
@@ -2,8 +2,8 @@
 
 import os, glob, subprocess, shlex
 
-components = ('core', 'dbus', 'declarative', 'gui', 'network', 'opengl',
-    'plugins', 'script', 'scripttools', 'sql', 'svg', 'test', 'uitools', 'xml')
+components = ('core', 'dbus', 'declarative', 'gui', 'network', 'plugins',
+    'script', 'scripttools', 'sql', 'svg', 'test', 'uitools', 'xml')
 cfiles = []
 tfiles = []