summaryrefslogtreecommitdiff
path: root/src/third_party/pcre.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/pcre.py')
-rw-r--r--src/third_party/pcre.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/third_party/pcre.py b/src/third_party/pcre.py
new file mode 100644
index 00000000000..f33a71fe726
--- /dev/null
+++ b/src/third_party/pcre.py
@@ -0,0 +1,42 @@
+
+import os
+
+root = "src/third_party/pcre-7.4"
+
+def getFiles():
+
+ def pcreFilter(x):
+ if x.endswith( "dftables.c" ):
+ return False
+ if x.endswith( "pcredemo.c" ):
+ return False
+ if x.endswith( "pcretest.c" ):
+ return False
+ if x.endswith( "unittest.cc" ):
+ return False
+ if x.endswith( "pcregrep.c" ):
+ return False
+ return x.endswith( ".c" ) or x.endswith( ".cc" )
+
+ files = [ root + "/" + x for x in filter( pcreFilter , os.listdir( root ) ) ]
+
+ return files
+
+def configure( env , fileLists , options ):
+ #fileLists = { "serverOnlyFiles" : [] }
+
+ env.Prepend( CPPPATH=["./" + root + "/"] )
+
+ myenv = env.Clone()
+ myenv.Append( CPPDEFINES=["HAVE_CONFIG_H"] )
+ fileLists["commonFiles"] += [ myenv.Object(f) for f in getFiles() ]
+ fileLists["moduleFiles"]["pcre"] = [ myenv.Object(f) for f in getFiles() ]
+
+def configureSystem( env , fileLists , options ):
+
+ env.Append( LIBS=[ "pcrecpp" ] )
+
+
+if __name__ == "__main__":
+ for x in getFiles():
+ print( x )