getopt: Import OpenBSD getopt implementation for MSVC.
[mesa.git] / src / getopt / SConscript
diff --git a/src/getopt/SConscript b/src/getopt/SConscript
new file mode 100644 (file)
index 0000000..0fbaab4
--- /dev/null
@@ -0,0 +1,13 @@
+Import('*')
+
+if not env['msvc']:
+    Return()
+
+env = env.Clone()
+
+getopt = env.ConvenienceLibrary(
+    target = 'getopt',
+    source = ['getopt_long.c'],
+)
+
+Export('getopt')