mirror of https://git.wownero.com/dsc/mxe.git
djvulibre test program
This commit is contained in:
parent
330cef19f6
commit
cbbb43b7d4
|
@ -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;
|
||||
}
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue