mirror of
https://github.com/monero-project/monero-gui
synced 2025-01-19 12:57:26 +01:00
zxcvbn: build tweaks to work on other platforms
This commit is contained in:
parent
03c15af20e
commit
9be29eba58
@ -15,11 +15,12 @@ SONAME = libzxcvbn.so.0
|
|||||||
|
|
||||||
WORDS = words-eng_wiki.txt words-female.txt words-male.txt words-passwd.txt words-surname.txt words-tv_film.txt
|
WORDS = words-eng_wiki.txt words-female.txt words-male.txt words-passwd.txt words-surname.txt words-tv_film.txt
|
||||||
|
|
||||||
all: test-file test-inline test-c++inline test-c++file test-shlib test-statlib
|
#all: test-file test-inline test-c++inline test-c++file test-shlib test-statlib
|
||||||
|
all: test-statlib
|
||||||
|
|
||||||
test-shlib: test.c $(TARGET_LIB)
|
test-shlib: test.c $(TARGET_LIB)
|
||||||
if [ ! -e libzxcvbn.so ]; then ln -s $(TARGET_LIB) libzxcvbn.so; fi
|
if [ ! -e libzxcvbn.so ]; then ln -s $(TARGET_LIB) libzxcvbn.so; fi
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -L. $(LDFLAGS) -lzxcvbn -lm
|
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -L. $(LDFLAGS) libzxcvbn.so -lm
|
||||||
|
|
||||||
$(TARGET_LIB): zxcvbn-inline-pic.o
|
$(TARGET_LIB): zxcvbn-inline-pic.o
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) \
|
$(CC) $(CPPFLAGS) $(CFLAGS) \
|
||||||
|
@ -36,11 +36,6 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <zxcvbn.h>
|
#include <zxcvbn.h>
|
||||||
|
|
||||||
/* For pre-compiled headers under windows */
|
|
||||||
#ifdef _WIN32
|
|
||||||
#include "stdafx.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const char *UsrDict[] =
|
const char *UsrDict[] =
|
||||||
{
|
{
|
||||||
"Onename.Twoname@example.com", "Onename", "Twoname", "example.com", "example",
|
"Onename.Twoname@example.com", "Onename", "Twoname", "example.com", "example",
|
||||||
|
@ -45,11 +45,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* For pre-compiled headers under windows */
|
|
||||||
#ifdef _WIN32
|
|
||||||
#include "stdafx.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Minimum number of characters in a incrementing/decrementing sequence match */
|
/* Minimum number of characters in a incrementing/decrementing sequence match */
|
||||||
#define MIN_SEQUENCE_LEN 3
|
#define MIN_SEQUENCE_LEN 3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user