summaryrefslogtreecommitdiffstats
path: root/tests/windows/Makefile.am
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:33:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:33:12 +0000
commit36082a2fe36ecd800d784ae44c14f1f18c66a7e9 (patch)
tree6c68e0c0097987aff85a01dabddd34b862309a7c /tests/windows/Makefile.am
parentInitial commit. (diff)
downloadgnutls28-36082a2fe36ecd800d784ae44c14f1f18c66a7e9.tar.xz
gnutls28-36082a2fe36ecd800d784ae44c14f1f18c66a7e9.zip
Adding upstream version 3.7.9.upstream/3.7.9upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/windows/Makefile.am')
-rw-r--r--tests/windows/Makefile.am77
1 files changed, 77 insertions, 0 deletions
diff --git a/tests/windows/Makefile.am b/tests/windows/Makefile.am
new file mode 100644
index 0000000..34e5112
--- /dev/null
+++ b/tests/windows/Makefile.am
@@ -0,0 +1,77 @@
+## Process this file with automake to produce Makefile.in
+# Copyright (C) 2015 Red Hat, Inc.
+#
+# This file is part of GnuTLS.
+#
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this file; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
+AM_CPPFLAGS = -I$(top_srcdir)/lib/includes \
+ -I$(top_builddir)/lib/includes \
+ -I$(top_srcdir)/tests/ \
+ -I$(top_srcdir)/lib \
+ -I$(top_builddir)/gl \
+ -I$(top_srcdir)/gl \
+ -I.
+
+if ENABLE_MINITASN1
+AM_CPPFLAGS += -I$(top_builddir)/lib/minitasn1
+endif
+
+EXTRA_DIST = ncrypt-int.h check-output
+
+AM_LDFLAGS = -no-install
+LDADD = $(top_builddir)/tests/libutils.la \
+ $(top_builddir)/gl/libgnu.la \
+ $(top_builddir)/lib/libgnutls.la $(LIBSOCKET)
+
+ctests =
+
+if WINDOWS
+check_LTLIBRARIES = ncrypt.la crypt32.la
+
+ncrypt_la_SOURCES = ncrypt.c
+crypt32_la_SOURCES = crypt32.c
+
+ncrypt_la_LIBADD = ../../gl/libgnu.la ../../lib/libgnutls.la -lmsvcrt -lkernel32 -luser32
+crypt32_la_LIBADD = ../../gl/libgnu.la ../../lib/libgnutls.la -lmsvcrt -lkernel32 -luser32
+ncrypt_la_LDFLAGS = -module -no-undefined -avoid-version -Wl,--add-stdcall-alias
+crypt32_la_LDFLAGS = -module -no-undefined -avoid-version -Wl,--add-stdcall-alias
+
+
+cng_windows_DEPENDENCIES = ncrypt.la crypt32.la
+cng_windows_CPPFLAGS = $(AM_CPPFLAGS)
+
+LOG_COMPILER = $(srcdir)/check-output
+
+endif
+
+ctests += cng-windows
+
+check_PROGRAMS = $(ctests)
+dist_check_SCRIPTS =
+
+
+TESTS = $(ctests) $(dist_check_SCRIPTS)
+
+TESTS_ENVIRONMENT = \
+ WINEDLLOVERRIDES="crypt32=n,ncrypt=n" \
+ LC_ALL="C" \
+ GNUTLS_TEST_SUITE_RUN=1 \
+ EXEEXT=$(EXEEXT) \
+ GNUTLS_SYSTEM_PRIORITY_FILE=$(abs_top_srcdir)/tests/system.prio \
+ top_builddir="$(top_builddir)" \
+ abs_top_builddir="$(abs_top_builddir)" \
+ srcdir="$(srcdir)"