vkdot/badwolf/config.ninja

109 lines
6.1 KiB
Text
Raw Normal View History

2025-03-02 03:05:35 -05:00
# Autogenerated by ./configure
rule gen_config
command = ./configure ""
generator = 1
build config.ninja: gen_config configure
PREFIX = /usr/local
PKGCONFIG = pkg-config
MSGFMT = msgfmt
INKSCAPE = inkscape
CC = cc
CFLAGS = -g -O2 -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wconversion -Wsign-conversion -Werror=implicit-function-declaration -Werror=implicit-int -Werror=vla
LDFLAGS =
ED = ed
MANDOC = mandoc
XGETTEXT = xgettext
MSGMERGE = msgmerge
SHELLCHECK = true
FLAWFINDER = true
REUSE = true
DEPS_cflags = -pthread -I/usr/include/libxml2 -I/usr/include/webkitgtk-4.1 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libsoup-3.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/webkitgtk-4.1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
DEPS_libs = -lxml2 -lwebkit2gtk-4.1 -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lsoup-3.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgio-2.0 -ljavascriptcoregtk-4.1 -lgobject-2.0 -lglib-2.0
GETTEXT_OPTS = --copyright-holder="Badwolf Authors <https://hacktivis.me/projects/badwolf>" --package-name="Badwolf" --package-version="1.3.0" --msgid-bugs-address="contact+badwolf-msgid@hacktivis.me"
rule xgettext
command = $XGETTEXT --keyword=_ --language=C --from-code=UTF-8 -o $out --add-comments --sort-output --foreign-user --no-location --no-wrap $GETTEXT_OPTS $in && ed -s $out <po/pot_license.ed
rule msgmerge
# touch: msgmerge doesn't always updates timestamps
command = $MSGMERGE --update --backup=off $out $in && touch $out
rule xgettext_man
command = if test -e $out; $
then po4a-updatepo --format man -M utf-8 --master $in $GETTEXT_OPTS --po $out && ed -s $out <po/pot_license.ed;$
else po4a-gettextize --format man -M utf-8 --master $in $GETTEXT_OPTS --po $out && ed -s $out <po/pot_license.ed;$
fi
rule cc_exe
command = $CC -std=c11 $CFLAGS -include configure.h $DEPS_cflags -o $out $in $LDFLAGS $DEPS_libs
rule cc_obj
command = $CC -std=c11 $CFLAGS -include configure.h $DEPS_cflags -c -o $out $in
build po/messages.pot: xgettext bookmarks.c userscripts.c fmt.c fmt_test.c uri.c uri_test.c keybindings.c downloads.c badwolf.c | po/pot_license.ed
build badwolf: cc_exe bookmarks.o userscripts.o fmt.o uri.o keybindings.o downloads.o badwolf.o
build bookmarks.o: cc_obj bookmarks.c | bookmarks.h badwolf.h config.h
build userscripts.o: cc_obj userscripts.c | userscripts.h badwolf.h config.h
build fmt.o: cc_obj fmt.c | fmt.h
build uri.o: cc_obj uri.c | uri.h
build keybindings.o: cc_obj keybindings.c | keybindings.h badwolf.h
build downloads.o: cc_obj downloads.c | downloads.h badwolf.h config.h
build badwolf.o: cc_obj badwolf.c | badwolf.h bookmarks.h config.h downloads.h fmt.h keybindings.h uri.h userscripts.h
build po/fr.po: msgmerge po/messages.pot
build locale/fr/LC_MESSAGES/Badwolf.mo: po2mo po/fr.po
build po/pt_BR.po: msgmerge po/messages.pot
build locale/pt_BR/LC_MESSAGES/Badwolf.mo: po2mo po/pt_BR.po
build po/tr.po: msgmerge po/messages.pot
build locale/tr/LC_MESSAGES/Badwolf.mo: po2mo po/tr.po
build po/de.po: msgmerge po/messages.pot
build locale/de/LC_MESSAGES/Badwolf.mo: po2mo po/de.po
build po/vi.po: msgmerge po/messages.pot
build locale/vi/LC_MESSAGES/Badwolf.mo: po2mo po/vi.po
build po/de_man.po: xgettext_man badwolf.1
build badwolf.de.1: translate_manpage po/de_man.po
build po/fr_man.po: xgettext_man badwolf.1
build badwolf.fr.1: translate_manpage po/fr_man.po
build po/tr_man.po: xgettext_man badwolf.1
build badwolf.tr.1: translate_manpage po/tr_man.po
build po/vi_man.po: xgettext_man badwolf.1
build badwolf.vi.1: translate_manpage po/vi_man.po
build icons/hicolor/24x24/apps/badwolf.png: gen_icon icons/hicolor/scalable/apps/badwolf.svg
width = 24
height = 24
build icons/hicolor/32x32/apps/badwolf.png: gen_icon icons/hicolor/scalable/apps/badwolf.svg
width = 32
height = 32
build icons/hicolor/48x48/apps/badwolf.png: gen_icon icons/hicolor/scalable/apps/badwolf.svg
width = 48
height = 48
build icons/hicolor/64x64/apps/badwolf.png: gen_icon icons/hicolor/scalable/apps/badwolf.svg
width = 64
height = 64
build icons/hicolor/128x128/apps/badwolf.png: gen_icon icons/hicolor/scalable/apps/badwolf.svg
width = 128
height = 128
build icons/hicolor/256x256/apps/badwolf.png: gen_icon icons/hicolor/scalable/apps/badwolf.svg
width = 256
height = 256
build icons: phony | icons/hicolor/24x24/apps/badwolf.png icons/hicolor/32x32/apps/badwolf.png icons/hicolor/48x48/apps/badwolf.png icons/hicolor/64x64/apps/badwolf.png icons/hicolor/128x128/apps/badwolf.png icons/hicolor/256x256/apps/badwolf.png
build trans_man: phony | badwolf.de.1 badwolf.fr.1 badwolf.tr.1 badwolf.vi.1
build bundled: phony | icons trans_man
default badwolf locale/fr/LC_MESSAGES/Badwolf.mo locale/pt_BR/LC_MESSAGES/Badwolf.mo locale/tr/LC_MESSAGES/Badwolf.mo locale/de/LC_MESSAGES/Badwolf.mo locale/vi/LC_MESSAGES/Badwolf.mo
rule remove
command = rm -fr ${in} ${foo}
build install: install | badwolf locale/fr/LC_MESSAGES/Badwolf.mo locale/pt_BR/LC_MESSAGES/Badwolf.mo locale/tr/LC_MESSAGES/Badwolf.mo locale/de/LC_MESSAGES/Badwolf.mo locale/vi/LC_MESSAGES/Badwolf.mo
build clean: remove
foo = badwolf locale/fr/LC_MESSAGES/Badwolf.mo locale/pt_BR/LC_MESSAGES/Badwolf.mo locale/tr/LC_MESSAGES/Badwolf.mo locale/de/LC_MESSAGES/Badwolf.mo locale/vi/LC_MESSAGES/Badwolf.mo bookmarks.o userscripts.o fmt.o uri.o keybindings.o downloads.o badwolf.o fmt_test.o uri_test.o bookmarks_test.o
build distclean: remove | clean
foo = config.ninja configure.h install.sh
build fullclean: remove | distclean
foo = badwolf.de.1 badwolf.fr.1 badwolf.tr.1 badwolf.vi.1 icons/hicolor/24x24 icons/hicolor/32x32 icons/hicolor/48x48 icons/hicolor/64x64 icons/hicolor/128x128 icons/hicolor/256x256