public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [crypt - a crypt library based on musl crypto code] branch master, updated. crypt-2_1-release-1-gafff301
@ 2017-12-22  1:12 yselkowitz
  0 siblings, 0 replies; only message in thread
From: yselkowitz @ 2017-12-22  1:12 UTC (permalink / raw)
  To: cygwin-apps-cvs




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/crypt.git;h=afff3016486857657c68bea93b5f803392ecf471

commit afff3016486857657c68bea93b5f803392ecf471
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date:   Thu Dec 21 19:12:38 2017 -0600

    Add meson build infrastructure


Diff:
---
 meson.build       |   35 +++++++++++++++++++++++++++++++++++
 meson_options.txt |    2 ++
 2 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..b100f2b
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,35 @@
+project('crypt', 'c',
+        version: '2.1')
+
+cflags = ['-D_GNU_SOURCE', '-Wno-missing-braces']
+
+libcrypt_sources = files(
+    'crypt.c',
+    'crypt_blowfish.c',
+    'crypt_des.c',
+    'crypt_md5.c',
+    'crypt_r.c',
+    'crypt_sha256.c',
+    'crypt_sha512.c',
+    'encrypt.c'
+)
+
+if not get_option('shared') and not get_option('static')
+error('At least one of "shared" or "static" must be enabled.')
+endif
+
+if get_option('shared')
+libcrypt_so = shared_library('crypt', libcrypt_sources,
+                             c_args: cflags,
+                             soversion: '0',
+                             vs_module_defs: 'crypt.def',
+                             install: true)
+endif
+
+if get_option('static')
+libcrypt_a = static_library('crypt', libcrypt_sources,
+                            c_args: cflags,
+                            install: true)
+endif
+
+install_headers('crypt.h')
diff --git a/meson_options.txt b/meson_options.txt
new file mode 100644
index 0000000..8287708
--- /dev/null
+++ b/meson_options.txt
@@ -0,0 +1,2 @@
+option('shared', type: 'boolean', value: 'true')
+option('static', type: 'boolean', value: 'true')


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-22  1:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-22  1:12 [crypt - a crypt library based on musl crypto code] branch master, updated. crypt-2_1-release-1-gafff301 yselkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).