Skip to content

Commit

Permalink
Move src/keycodemapdb -> subprojects/keycodemapdb
Browse files Browse the repository at this point in the history
Follow better meson build system conventions. This allows to find
keymap-gen or CSV without explicitly setting the paths.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
  • Loading branch information
elmarco authored and zippy2 committed Apr 17, 2023
1 parent c4ec51e commit 883b427
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "keycodemapdb"]
path = src/keycodemapdb
path = subprojects/keycodemapdb
url = https://gitlab.com/keycodemap/keycodemapdb.git
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2028,6 +2028,7 @@ runutf8 = [ 'LC_ALL=', 'LANG=C', 'LC_CTYPE=en_US.UTF-8' ]

top_inc_dir = include_directories('.')

keycodemapdb = subproject('keycodemapdb')

# include remaining subdirs

Expand Down
4 changes: 2 additions & 2 deletions src/util/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ keyname_list = [
'win32',
]

keymap_gen_prog = find_program('keymap-gen', dirs: [meson.project_source_root() / 'src' / 'keycodemapdb' / 'tools' ])
keymap_src_file = '@0@/src/keycodemapdb/data/keymaps.csv'.format(meson.project_source_root())
keymap_gen_prog = find_program('keymap-gen')
keymap_src_file = keycodemapdb.get_variable('keymaps_csv')

foreach name : keycode_list
keycode_gen_sources += custom_target(
Expand Down
Submodule keycodemapdb updated from 000000 to 22b899

0 comments on commit 883b427

Please sign in to comment.