2c20a6bda4
../src/config.c: In function 'config_put': ../src/config.c:24: error: 'for' loop initial declaration used outside C99 mode ../src/config.c: In function 'config_get_mnemonic': ../src/config.c:82: error: 'for' loop initial declaration used outside C99 mode ../src/utils.c: In function 'utils_concat': ../src/utils.c:37: error: 'for' loop initial declaration used outside C99 mode ../src/utils.c:44: error: redefinition of 'count' ../src/utils.c:37: error: previous definition of 'count' was here ../src/utils.c:44: error: 'for' loop initial declaration used outside C99 mode ../src/utils.c: In function 'utils_distance': ../src/utils.c:75: error: 'for' loop initial declaration used outside C99 mode ../src/utils.c:78: error: redefinition of 'count' ../src/utils.c:75: error: previous definition of 'count' was here ../src/utils.c:78: error: 'for' loop initial declaration used outside C99 mode ../src/utils.c:83: error: 'for' loop initial declaration used outside C99 mode ../src/utils.c:84: error: 'for' loop initial declaration used outside C99 mode ../modes/drun.c: In function 'get_search_text': ../modes/drun.c:85: error: 'for' loop initial declaration used outside C99 mode ../modes/drun.c: In function 'get_action_text': ../modes/drun.c:132: error: 'for' loop initial declaration used outside C99 mode ../modes/drun.c: In function 'get_action_actions': ../modes/drun.c:152: error: 'for' loop initial declaration used outside C99 mode ../modes/drun.c: In function 'insert_dir': ../modes/drun.c:218: error: 'for' loop initial declaration used outside C99 mode ../modes/drun.c: In function 'wofi_drun_init': ../modes/drun.c:267: error: 'for' loop initial declaration used outside C99 mode ../src/main.c: In function 'wofi_load_css': ../src/main.c:112: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c: In function '_insert_widget': ../src/wofi.c:468: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c:487: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c:509: error: redefinition of 'count' ../src/wofi.c:487: error: previous definition of 'count' was here ../src/wofi.c:509: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c:514: error: redefinition of 'count' ../src/wofi.c:509: error: previous definition of 'count' was here ../src/wofi.c:514: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c: In function 'escape_lf': ../src/wofi.c:541: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c: In function 'remove_escapes': ../src/wofi.c:561: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c: In function 'wofi_create_widget': ../src/wofi.c:739: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c:745: error: redefinition of 'count' ../src/wofi.c:739: error: previous definition of 'count' was here ../src/wofi.c:745: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c: In function 'wofi_term_run': ../src/wofi.c:784: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c: In function 'fuzzy_sort': ../src/wofi.c:856: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c:862: error: redefinition of 'count' ../src/wofi.c:856: error: previous definition of 'count' was here ../src/wofi.c:862: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c:868: error: redefinition of 'count' ../src/wofi.c:862: error: previous definition of 'count' was here ../src/wofi.c:868: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c: In function 'move_pgup': ../src/wofi.c:1026: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c: In function 'move_pgdn': ../src/wofi.c:1033: error: 'for' loop initial declaration used outside C99 mode ../src/wofi.c: In function 'load_mode': ../src/wofi.c:1244: error: 'for' loop initial declaration used outside C99 mode
71 lines
1.7 KiB
Meson
71 lines
1.7 KiB
Meson
project('wofi', 'c', version : 'hg', default_options : ['c_std=c99', 'buildtype=release', 'warning_level=2'])
|
|
cc = meson.get_compiler('c')
|
|
|
|
pkgcfg = import('pkgconfig')
|
|
|
|
inc = include_directories('inc')
|
|
gtk = dependency('gtk+-3.0')
|
|
wayland = dependency('wayland-client')
|
|
dl = cc.find_library('dl')
|
|
|
|
hg = find_program('hg', native : true, required : false)
|
|
|
|
version = meson.project_version()
|
|
|
|
if hg.found()
|
|
version = run_command(hg, 'identify').stdout().strip()
|
|
endif
|
|
|
|
add_project_arguments('-D_GNU_SOURCE', '-DVERSION="' + version + '"', language : 'c')
|
|
add_project_link_arguments('-rdynamic', language : 'c')
|
|
|
|
sources = ['src/config.c',
|
|
'src/main.c',
|
|
'src/map.c',
|
|
'src/property_box.c',
|
|
'src/utils.c',
|
|
'src/wofi.c',
|
|
'proto/wlr-layer-shell-unstable-v1-protocol.c',
|
|
'proto/xdg-output-unstable-v1-protocol.c',
|
|
'proto/xdg-shell-protocol.c']
|
|
|
|
deps = [gtk, wayland, dl]
|
|
|
|
if get_option('enable_run')
|
|
sources += 'modes/run.c'
|
|
endif
|
|
|
|
if get_option('enable_drun')
|
|
sources += 'modes/drun.c'
|
|
deps += dependency('gio-unix-2.0')
|
|
endif
|
|
|
|
if get_option('enable_dmenu')
|
|
sources += 'modes/dmenu.c'
|
|
endif
|
|
|
|
install_man('man/wofi.1',
|
|
'man/wofi.3',
|
|
'man/wofi.5',
|
|
'man/wofi.7',
|
|
'man/wofi-api.3',
|
|
'man/wofi-config.3',
|
|
'man/wofi-keys.7',
|
|
'man/wofi-map.3',
|
|
'man/wofi-utils.3')
|
|
|
|
subdir = 'wofi-1'
|
|
|
|
install_headers('inc/config.h',
|
|
'inc/map.h',
|
|
'inc/utils.h',
|
|
'inc/wofi_api.h',
|
|
subdir : subdir)
|
|
|
|
pkgcfg.generate(name : meson.project_name(),
|
|
description : 'Wofi API for developing modes',
|
|
requires : wayland,
|
|
subdirs : subdir)
|
|
|
|
executable(meson.project_name(), sources, include_directories : inc, dependencies : deps, install : true)
|