djvulibre test program

This commit is contained in:
darealshinji 2016-04-10 07:02:01 +02:00
parent 330cef19f6
commit cbbb43b7d4
2 changed files with 24 additions and 1 deletions

17
src/djvulibre-test.c Normal file
View File

@ -0,0 +1,17 @@
/*
* This file is part of MXE.
* See index.html for further information.
*/
#include <libdjvu/ddjvuapi.h>
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;
}

View File

@ -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 =