From cbbb43b7d44ea0fbe2d8efd03d741c6d20bb931b Mon Sep 17 00:00:00 2001 From: darealshinji Date: Sun, 10 Apr 2016 07:02:01 +0200 Subject: djvulibre test program --- src/djvulibre-test.c | 17 +++++++++++++++++ src/djvulibre.mk | 8 +++++++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/djvulibre-test.c diff --git a/src/djvulibre-test.c b/src/djvulibre-test.c new file mode 100644 index 0000000..51889a2 --- /dev/null +++ b/src/djvulibre-test.c @@ -0,0 +1,17 @@ +/* + * This file is part of MXE. + * See index.html for further information. + */ + +#include + +int main(int argc, char *argv[]) +{ + ddjvu_context_t *djvu_test; + (void)argc; + + djvu_test = ddjvu_context_create(argv[0]); + ddjvu_context_release(djvu_test); + + return 0; +} diff --git a/src/djvulibre.mk b/src/djvulibre.mk index 0b3f43e..8827123 100644 --- a/src/djvulibre.mk +++ b/src/djvulibre.mk @@ -22,7 +22,13 @@ define $(PKG)_BUILD $(MXE_CONFIGURE_OPTS) \ --disable-desktopfiles $(MAKE) -C '$(1)' -j '$(JOBS)' - $(MAKE) -C '$(1)' -j 1 install + $(MAKE) -C '$(1)/libdjvu' -j 1 install-lib \ + install-include install-pkgconfig + + '$(TARGET)-g++' \ + -W -Wall -Werror -pedantic -DDLL_EXPORT \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + `'$(TARGET)-pkg-config' ddjvuapi --libs` endef $(PKG)_BUILD_SHARED = -- cgit v0.12