Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: redo building #402

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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

1 change: 1 addition & 0 deletions extra-vapis
Submodule extra-vapis added at a53319
1 change: 1 addition & 0 deletions girs
Submodule girs added at 167d36
9 changes: 9 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -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')
51 changes: 51 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -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,
)