I think what that code is doing is to parse a find-like command and running a search on the file list from the ISO. This is not what I want, I don't even want to store the file list anywhere, instead I want to call a functor for each file and directory being read and keep the code as stateless as possible. So delete everything here.
38 lines
1.6 KiB
Meson
38 lines
1.6 KiB
Meson
project('isoinfo', 'c',
|
|
version: '3.0.2',
|
|
default_options: ['c_std=c89']
|
|
)
|
|
|
|
#original link command:
|
|
#gcc -o OBJ/amd-ryzen-7-pro-2700u-w--radeon-vega-mobile-gfx-linux-cc/isoinfo OBJ/amd-ryzen-7-pro-2700u-w--radeon-vega-mobile-gfx-linux-cc/isoinfo.o OBJ/amd-ryzen-7-pro-2700u-w--radeon-vega-mobile-gfx-linux-cc/scsi.o -L../../libs/amd-ryzen-7-pro-2700u-w--radeon-vega-mobile-gfx-linux-cc -L../../libs/amd-ryzen-7-pro-2700u-w--radeon-vega-mobile-gfx-linux-cc -L/opt/schily/lib -Wl,-R/opt/schily/lib -Wl,-R/opt/schily/lib -lsiconv -lscgcmd -lrscg -lscg -lcdrdeflt -ldeflt -lfind -lschily -lacl -lcap
|
|
|
|
#original compile command:
|
|
#gcc -O -DSCHILY_BUILD -IOBJ/amd-ryzen-7-pro-2700u-w--radeon-vega-mobile-gfx-linux-cc -I../../incs/amd-ryzen-7-pro-2700u-w--radeon-vega-mobile-gfx-linux-cc -I../../include -DUSE_LIBSCHILY -DUSE_LARGEFILES -DUSE_SCG -I.. -I../../libscg -I../../libscgcmd -I../../libcdrdeflt -DUSE_FIND -DSCHILY_PRINT -DUSE_NLS -DUSE_ICONV -DINS_BASE="/opt/schily" -DTEXT_DOMAIN="SCHILY_cdrtools" -D_GNU_SOURCE -c -o OBJ/amd-ryzen-7-pro-2700u-w--radeon-vega-mobile-gfx-linux-cc/isoinfo.o isoinfo.c
|
|
|
|
add_project_arguments(
|
|
'-DUSE_SCG',
|
|
'-DUSE_ICONV',
|
|
'-DUSE_LIBSCHILY',
|
|
'-DUSE_LARGEFILES',
|
|
'-DSCHILY_PRINT',
|
|
'-DUSER_NLS',
|
|
'-DINS_BASE="/opt/schily"',
|
|
'-DTEXT_DOMAIN="SCHILY_cdrtools"',
|
|
language: 'c'
|
|
)
|
|
|
|
c_compiler = meson.get_compiler('c')
|
|
|
|
cdrdeflt_dep = c_compiler.find_library('cdrdeflt')
|
|
public_inc = include_directories('include')
|
|
|
|
libisoinfo = static_library(meson.project_name(),
|
|
'src/isoinfo.c',
|
|
dependencies: [cdrdeflt_dep],
|
|
install: false,
|
|
)
|
|
|
|
libisoinfo_dep = declare_dependency(
|
|
include_directories: public_inc,
|
|
link_with: libisoinfo
|
|
)
|