Commit 371bbfb6 authored by Moritz Lipp's avatar Moritz Lipp

Update meson build files

parent 8c970c64
Pipeline #162 failed with stage
in 0 seconds
......@@ -8,7 +8,7 @@ import os
# -- General configuration ------------------------------------------------
extensions = [
extensions = [
'sphinx.ext.todo',
'hawkmoth'
]
......@@ -40,4 +40,4 @@ htmlhelp_basename = 'libzathuradoc'
cautodoc_root = os.path.abspath('../')
cautodoc_compat = 'javadoc-basic'
cautodoc_clang = "-DWITH_CAIRO"
......@@ -2,10 +2,13 @@
#
# See LICENSE file for license and copyright information
import os
# -- General configuration ------------------------------------------------
extensions = ['hawkmoth']
source_suffix = '.rst'
master_doc = 'libzathura.1'
master_doc = 'libzathura.3'
templates_path = ['_templates']
# -- Project configuration ------------------------------------------------
......@@ -18,5 +21,11 @@ release = '0.0.1'
# -- Options for manual page output ---------------------------------------
man_pages = [
# ('libzathura.3', 'libzathura', 'a document library', ['pwmt.org'], 3)
('libzathura.3', 'libzathura', 'a document library', ['pwmt.org'], 3)
]
# -- Options for hawkmoth -------------------------------------------------
cautodoc_root = os.path.abspath('../../')
cautodoc_compat = 'javadoc-basic'
cautodoc_clang = "-DWITH_CAIRO"
Manpage
=======
Synopsis
--------
::
#include <libzathura/libzathura.h>
API
---
.. c:autodoc:: libzathura/*.h
sphinx = find_program('sphinx-build')
if sphinx.found()
doc_sources = [
'index.rst',
'installation.rst',
'usage/index.rst',
'api/index.rst',
'api/document.rst',
'api/options.rst',
'api/overview.rst',
'api/plugin-manager.rst',
'api/error.rst',
'api/actions.rst',
'api/actions/action-launch.rst',
'api/actions/action-sound.rst',
'api/actions/action-hide-annotations.rst',
'api/actions/action-rendition.rst',
'api/actions/action-goto-remote.rst',
'api/actions/action-goto-embedded.rst',
'api/actions/action-named.rst',
'api/actions/action-set-ocg-state.rst',
'api/actions/action-uri.rst',
'api/actions/action-goto-3d-view.rst',
'api/actions/action-movie.rst',
'api/actions/action-transition.rst',
'api/actions/action-thread.rst',
'api/actions/action-goto.rst',
'api/annotations.rst',
'api/annotations/annotation-rubber-stamp.rst',
'api/annotations/annotation-polygon-and-polyline.rst',
'api/annotations/annotation-file-attachment.rst',
'api/annotations/annotation-movie.rst',
'api/annotations/annotation-popup.rst',
'api/annotations/annotation-trap-network.rst',
'api/annotations/annotation-text-markup.rst',
'api/annotations/annotation-watermark.rst',
'api/annotations/annotation-caret.rst',
'api/annotations/annotation-markup.rst',
'api/annotations/annotation-sound.rst',
'api/annotations/annotation-line.rst',
'api/annotations/annotation-link.rst',
'api/annotations/annotation-text.rst',
'api/annotations/annotation-printers-mark.rst',
'api/annotations/annotation-square-and-circle.rst',
'api/annotations/annotation-screen.rst',
'api/annotations/annotation-ink.rst',
'api/annotations/annotation-free-text.rst',
'api/annotations/annotation-widget.rst',
'api/form-fields.rst',
'api/form-fields/form-field-button.rst',
'api/form-fields/form-field-signature.rst',
'api/form-fields/form-field-text.rst',
'api/form-fields/form-field-choice.rst',
'plugins/index.rst',
'plugins/plugin-api.rst',
'plugins/plugin-manager.rst',
'plugins/plugin.rst',
'development/index.rst',
'development/contributing.rst',
]
custom_target('html',
command: [
sphinx,
......@@ -8,11 +66,12 @@ if sphinx.found()
'-D', 'version=' + version,
'-D', 'release=' + version,
meson.current_source_dir(),
meson.current_build_dir()],
output: ['index.html'],
'@OUTDIR@/html'
],
output: ['html'],
input: [
'conf.py',
],
] + doc_sources,
build_by_default: true,
install: false,
)
......@@ -24,10 +83,12 @@ if sphinx.found()
'-D', 'version=' + version,
'-D', 'release=' + version,
join_paths(meson.current_source_dir(), 'man'),
meson.current_build_dir()],
output: ['libzathura.3'],
'@OUTDIR@/man'
],
output: ['man'],
input: [
'man/conf.py',
'man/libzathura.3.rst',
],
build_by_default: true,
install: true,
......
......@@ -6,6 +6,10 @@
#include <fiu.h>
#include <fiu-control.h>
#if HAVE_CAIRO
#include <cairo.h>
#endif
#include <libzathura/error.h>
#include <libzathura/macros.h>
#include <libzathura/plugin.h>
......
# See LICENSE file for license and copyright information
include ../../config.mk
include ../../common.mk
include ../../colors.mk
include config.mk
PROJECT = plugin
SOURCE = $(wildcard *.c)
OBJECTS = ${SOURCE:.c=.o}
ifneq (${WITH_CAIRO},0)
INCS += ${CAIRO_INC}
LIBS += ${CAIRO_LIB}
CPPFLAGS += -DHAVE_CAIRO
endif
all: options ${PROJECT}.so
options:
${ECHO} ${PROJECT}.so build options:
${ECHO} "CFLAGS = ${CFLAGS}"
${ECHO} "LDFLAGS = ${LDFLAGS}"
${ECHO} "LIBS = ${LIBS}"
${ECHO} "CC = ${CC}"
%.o: %.c
$(ECHO) CC $<
@mkdir -p .depend/$(dir $@)
$(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} -o $@ $< -MMD -MF .depend/$@.dep
${PROJECT}.so: options ${OBJECTS}
$(ECHO) LD $@
$(QUIET)${CC} -shared ${LDFLAGS} -o $@ $(OBJECTS) ${LIBS}
${OBJECTS}: ../../config.mk config.mk
clean:
$(QUIET)rm -rf ${PROJECT}.so ${OBJECTS} .depend ${PROJECT}.gcda ${PROJECT}.gcno
.PHONY: all options clean debug run
-include $(wildcard .depend/*.dep)
# See LICENSE file for license and copyright information
INCS += -I../../
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment