2020-09-05 16:02:16 -04:00
|
|
|
if conf_data.get('CONFIG_BOOKMARKS')
|
|
|
|
subdir('bookmarks')
|
|
|
|
endif
|
|
|
|
if conf_data.get('CONFIG_COOKIES')
|
|
|
|
subdir('cookies')
|
|
|
|
endif
|
|
|
|
if conf_data.get('CONFIG_DOM')
|
|
|
|
subdir('dom')
|
|
|
|
endif
|
|
|
|
if conf_data.get('CONFIG_ECMASCRIPT')
|
|
|
|
subdir('ecmascript')
|
|
|
|
endif
|
|
|
|
if conf_data.get('CONFIG_FORMHIST')
|
|
|
|
subdir('formhist')
|
|
|
|
endif
|
|
|
|
if conf_data.get('CONFIG_GLOBHIST')
|
|
|
|
subdir('globhist')
|
|
|
|
endif
|
|
|
|
if conf_data.get('CONFIG_SCRIPTING')
|
|
|
|
subdir('scripting')
|
|
|
|
endif
|
|
|
|
|
|
|
|
subdir('bfu')
|
|
|
|
subdir('cache')
|
|
|
|
subdir('config')
|
|
|
|
subdir('dialogs')
|
|
|
|
subdir('document')
|
|
|
|
subdir('encoding')
|
|
|
|
subdir('intl')
|
|
|
|
subdir('main')
|
|
|
|
subdir('mime')
|
|
|
|
subdir('network')
|
|
|
|
subdir('osdep')
|
|
|
|
subdir('protocol')
|
|
|
|
subdir('session')
|
|
|
|
subdir('terminal')
|
|
|
|
subdir('util')
|
|
|
|
subdir('viewer')
|
|
|
|
|
|
|
|
srcs += files('vernum.c')
|
|
|
|
|
2020-09-06 05:30:57 -04:00
|
|
|
incs = include_directories('..', '.')
|
2020-09-05 16:02:16 -04:00
|
|
|
|
2022-06-20 10:01:30 -04:00
|
|
|
extra_args = ['-DHAVE_CONFIG_H', '-fno-strict-aliasing', '-Wno-address']
|
|
|
|
|
|
|
|
if compiler.has_argument('-Wno-builtin-declaration-mismatch')
|
|
|
|
extra_args += ['-Wno-builtin-declaration-mismatch']
|
|
|
|
endif
|
|
|
|
|
2022-07-31 10:44:11 -04:00
|
|
|
extra_cpp_args = extra_args
|
|
|
|
extra_cpp_args += extracppflags
|
|
|
|
|
2020-09-05 16:02:16 -04:00
|
|
|
elinks = executable(
|
|
|
|
'elinks', srcs,
|
|
|
|
include_directories: incs,
|
|
|
|
dependencies: deps,
|
2022-09-02 11:46:53 -04:00
|
|
|
c_args: extra_args + extracflags,
|
2022-07-31 10:44:11 -04:00
|
|
|
cpp_args: extra_cpp_args,
|
2020-09-17 12:39:53 -04:00
|
|
|
install: true
|
2020-09-06 05:30:57 -04:00
|
|
|
)
|