public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: yselkowitz@sourceware.org
To: cygwin-apps-cvs@sourceware.org
Subject: [crypt - a crypt library based on musl crypto code] branch master, updated. crypt-2_1-release-1-gafff301
Date: Fri, 22 Dec 2017 01:12:00 -0000	[thread overview]
Message-ID: <20171222011242.20725.qmail@sourceware.org> (raw)




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')


                 reply	other threads:[~2017-12-22  1:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171222011242.20725.qmail@sourceware.org \
    --to=yselkowitz@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).