diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..760254b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,9 @@ +[submodule "girs"] + path = girs + url = https://github.com/nemequ/vala-girs.git + branch = master +[submodule "extra-vapis"] + path = extra-vapis + url = https://gitlab.gnome.org/GNOME/vala-extra-vapis.git +[submodule "extra-vapis/"] + branch = master diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..61047a4 --- /dev/null +++ b/build.sh @@ -0,0 +1,22 @@ +#!/usr/bin/bash + +#find vapidir +vapidir="/usr/share/vala-`vala --api-version | awk -F. '{ print "0."$$2 }'`/vapi" + +# build and install binaries +meson setup --prefix=/usr/local build +meson compile -C build +sudo meson install -C build + +generator \ + --vapidir=$vapi \ + --vapidir=$(pwd)/extra-vapis/ \ + --vapidir=girs/vala/vapi/ \ + --prefix=stable \ + --target-glib 2.98 \ + --download-images \ + --no-check-certificate \ + --disable-devhelp --skip-existing \ + --doclet=./libdoclet.so \ + glib-2.0 gobject-2.0 gio-2.0 #--all + diff --git a/extra-vapis b/extra-vapis new file mode 160000 index 0000000..a53319e --- /dev/null +++ b/extra-vapis @@ -0,0 +1 @@ +Subproject commit a53319e7cd8564712ddd550867b1a1af9317b75b diff --git a/girs b/girs new file mode 160000 index 0000000..167d367 --- /dev/null +++ b/girs @@ -0,0 +1 @@ +Subproject commit 167d367f42d6d3e218480b87c91fc4f3dcbc4107 diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..f4532a3 --- /dev/null +++ b/meson.build @@ -0,0 +1,9 @@ +project('valadoc-org', 'vala', 'c') + +libgee_dep = dependency('gee-0.8') +valadoc_dep = dependency('valadoc-0.56') +gio_dep = dependency('gio-2.0') +glib_dep = dependency('glib-2.0') +gobject_dep = dependency('gobject-2.0') + +subdir('src') diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 0000000..8fe3fdf --- /dev/null +++ b/src/meson.build @@ -0,0 +1,51 @@ +standard_deps = [glib_dep, gobject_dep] +doclet_deps = standard_deps + [libgee_dep, valadoc_dep] +generator_deps = doclet_deps + [gio_dep] + +valadoc_example_gen_sources = [ + 'valadoc-example-parser.vala', + 'valadoc-example-gen.vala', +] +valadoc_example_gen = executable('valadoc-example-gen', valadoc_example_gen_sources, + dependencies: standard_deps, + install: true, +) + +valadoc_example_tester_sources = [ + 'valadoc-example-parser.vala', + 'valadoc-example-tester.vala', +] +valadoc_example_tester = executable('valadoc-example-tester', valadoc_example_tester_sources, + dependencies: standard_deps, + install: true, +) + +libdoclet_sources = [ + 'doclet.vala', + 'linkhelper.vala', +] +libdoclet = shared_library('doclet', libdoclet_sources, + dependencies: doclet_deps, + install: true, + install_dir: meson.source_root(), +) + +generator_sources = [ + 'doclet.vala', + 'linkhelper.vala', + 'generator.vala', +] +generator = executable('generator', generator_sources, + dependencies: generator_deps, + install: true, +) + +configgen_sources = [ + 'configgen.vala', +] +configgen = executable('configgen', configgen_sources, + dependencies: standard_deps + [meson.get_compiler('vala').find_library('config', dirs: meson.current_source_dir())], + c_args: ['-D', 'datadir="' + get_option('datadir') + '"'], + install: true, +) +