Skip to content

Commit

Permalink
Add ability to build with meson
Browse files Browse the repository at this point in the history
  • Loading branch information
xiota committed Apr 28, 2024
1 parent 2b897dc commit 6efe0f6
Show file tree
Hide file tree
Showing 276 changed files with 2,599 additions and 1 deletion.
1 change: 1 addition & 0 deletions addons/makefile
45 changes: 45 additions & 0 deletions addons/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
project(
'geany-addons',
'c',
license : 'GPL-2.0-or-later',
)

plugin_name = 'addons'

subdir('po')
subdir('meson_config')

geany_dep = dependency('geany')

library(
plugin_name,
sources: [
'src/addons.c',
'src/ao_blanklines.c',
'src/ao_bookmarklist.c',
'src/ao_colortip.c',
'src/ao_copyfilepath.c',
'src/ao_doclist.c',
'src/ao_markword.c',
'src/ao_openuri.c',
'src/ao_systray.c',
'src/ao_tasks.c',
'src/ao_wrapwords.c',
'src/ao_xmltagging.c',
],
dependencies: [config_dep, geany_dep],
name_prefix: '',
install: true,
install_dir: plugin_path,
)

install_data(
sources: [
'AUTHORS',
'COPYING',
'ChangeLog',
'NEWS',
'README',
],
install_dir: plugin_docdir,
)
1 change: 1 addition & 0 deletions addons/meson_config/config.h.in
1 change: 1 addition & 0 deletions addons/meson_config/meson.build
1 change: 1 addition & 0 deletions addons/po
1 change: 1 addition & 0 deletions autoclose/makefile
34 changes: 34 additions & 0 deletions autoclose/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
project(
'geany-autoclose',
'c',
license : 'GPL-2.0-or-later',
)

plugin_name = 'autoclose'

subdir('po')
subdir('meson_config')

geany_dep = dependency('geany')

library(
plugin_name,
sources: [
'src/autoclose.c',
],
dependencies: [config_dep, geany_dep],
name_prefix: '',
install: true,
install_dir: plugin_path,
)

install_data(
sources: [
'AUTHORS',
'COPYING',
'ChangeLog',
'NEWS',
'README',
],
install_dir: plugin_docdir,
)
1 change: 1 addition & 0 deletions autoclose/meson_config/config.h.in
1 change: 1 addition & 0 deletions autoclose/meson_config/meson.build
1 change: 1 addition & 0 deletions autoclose/po
1 change: 1 addition & 0 deletions automark/makefile
34 changes: 34 additions & 0 deletions automark/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
project(
'geany-automark',
'c',
license : 'GPL-2.0-or-later',
)

plugin_name = 'automark'

subdir('po')
subdir('meson_config')

geany_dep = dependency('geany')

library(
plugin_name,
sources: [
'src/automark.c',
],
dependencies: [config_dep, geany_dep],
name_prefix: '',
install: true,
install_dir: plugin_path,
)

install_data(
sources: [
'AUTHORS',
'COPYING',
'ChangeLog',
'NEWS',
'README',
],
install_dir: plugin_docdir,
)
1 change: 1 addition & 0 deletions automark/meson_config/config.h.in
1 change: 1 addition & 0 deletions automark/meson_config/meson.build
1 change: 1 addition & 0 deletions automark/po
1 change: 1 addition & 0 deletions codenav/makefile
37 changes: 37 additions & 0 deletions codenav/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
project(
'geany-codenav',
'c',
license : 'GPL-2.0-or-later',
)

plugin_name = 'codenav'

subdir('po')
subdir('meson_config')

geany_dep = dependency('geany')

library(
plugin_name,
sources: [
'src/codenavigation.c',
'src/goto_file.c',
'src/switch_head_impl.c',
'src/utils.c',
],
dependencies: [config_dep, geany_dep],
name_prefix: '',
install: true,
install_dir: plugin_path,
)

install_data(
sources: [
'AUTHORS',
'COPYING',
'ChangeLog',
'NEWS',
'README',
],
install_dir: plugin_docdir,
)
1 change: 1 addition & 0 deletions codenav/meson_config/config.h.in
1 change: 1 addition & 0 deletions codenav/meson_config/meson.build
1 change: 1 addition & 0 deletions codenav/po
1 change: 1 addition & 0 deletions commander/makefile
34 changes: 34 additions & 0 deletions commander/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
project(
'geany-commander',
'c',
license : 'GPL-3.0-or-later',
)

plugin_name = 'commander'

subdir('po')
subdir('meson_config')

geany_dep = dependency('geany')

library(
plugin_name,
sources: [
'src/commander-plugin.c',
],
dependencies: [config_dep, geany_dep],
name_prefix: '',
install: true,
install_dir: plugin_path,
)

install_data(
sources: [
'AUTHORS',
'COPYING',
'ChangeLog',
'NEWS',
'README',
],
install_dir: plugin_docdir,
)
1 change: 1 addition & 0 deletions commander/meson_config/config.h.in
1 change: 1 addition & 0 deletions commander/meson_config/meson.build
1 change: 1 addition & 0 deletions commander/po
1 change: 1 addition & 0 deletions debugger/makefile
84 changes: 84 additions & 0 deletions debugger/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
project(
'geany-debugger',
'c',
license : 'GPL-2.0-or-later',
)

plugin_name = 'debugger'

subdir('po')
subdir('meson_config')

geany_dep = dependency('geany')
vte_dep = dependency('vte-2.91')

gp_utils_dep = dependency(
'gp_utils',
fallback: ['utils', 'gp_utils_dep'],
default_options: ['default_library=static'],
)

library(
plugin_name,
sources: [
'src/atree.c',
'src/bptree.c',
'src/breakpoint.c',
'src/breakpoints.c',
'src/btnpanel.c',
'src/callbacks.c',
'src/calltip.c',
'src/dbm_gdb.c',
'src/dconfig.c',
'src/debug.c',
'src/debug_module.c',
'src/dpaned.c',
'src/envtree.c',
'src/gdb_mi.c',
'src/gui.c',
'src/keys.c',
'src/markers.c',
'src/pixbuf.c',
'src/plugin.c',
'src/stree.c',
'src/tabs.c',
'src/tpage.c',
'src/utils.c',
'src/vtree.c',
'src/watch_model.c',
'src/wtree.c',
'src/cell_renderers/cellrendererbreakicon.c',
'src/cell_renderers/cellrendererframeicon.c',
'src/cell_renderers/cellrenderertoggle.c',
],
dependencies: [config_dep, geany_dep, gp_utils_dep, vte_dep],
name_prefix: '',
install: true,
install_dir: plugin_path,
)

install_data(
sources: [
'img/continue.png',
'img/restart.gif',
'img/run.gif',
'img/run_to_cursor.gif',
'img/step_in.png',
'img/step_out.gif',
'img/step_over.gif',
'img/stop.gif',
'img/tabs.gif',
],
install_dir: plugin_datadir,
)

install_data(
sources: [
'AUTHORS',
'COPYING',
'ChangeLog',
'NEWS',
'README',
],
install_dir: plugin_docdir,
)
1 change: 1 addition & 0 deletions debugger/meson_config/config.h.in
1 change: 1 addition & 0 deletions debugger/meson_config/meson.build
1 change: 1 addition & 0 deletions debugger/po
3 changes: 3 additions & 0 deletions debugger/src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

#include <gtk/gtk.h>

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gui.h"

/*
Expand Down
1 change: 1 addition & 0 deletions debugger/subprojects/utils
1 change: 1 addition & 0 deletions defineformat/makefile
34 changes: 34 additions & 0 deletions defineformat/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
project(
'geany-defineformat',
'c',
license : 'GPL-2.0-or-later',
)

plugin_name = 'defineformat'

subdir('po')
subdir('meson_config')

geany_dep = dependency('geany')

library(
plugin_name,
sources: [
'src/defineformat.c',
],
dependencies: [config_dep, geany_dep],
name_prefix: '',
install: true,
install_dir: plugin_path,
)

install_data(
sources: [
'AUTHORS',
'COPYING',
'ChangeLog',
'NEWS',
'README',
],
install_dir: plugin_docdir,
)
1 change: 1 addition & 0 deletions defineformat/meson_config/config.h.in
Loading

0 comments on commit 6efe0f6

Please sign in to comment.