2020-03-03 10:55:06 +00:00
|
|
|
project('isoinfo', 'c',
|
|
|
|
version: '3.0.2',
|
2020-03-03 12:58:26 +00:00
|
|
|
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',
|
2020-03-03 15:10:11 +00:00
|
|
|
'-DUSE_NLS',
|
2020-03-03 12:58:26 +00:00
|
|
|
'-DINS_BASE="/opt/schily"',
|
|
|
|
'-DTEXT_DOMAIN="SCHILY_cdrtools"',
|
|
|
|
language: 'c'
|
2020-03-03 10:55:06 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
c_compiler = meson.get_compiler('c')
|
|
|
|
|
|
|
|
cdrdeflt_dep = c_compiler.find_library('cdrdeflt')
|
2020-03-04 00:05:50 +00:00
|
|
|
scgcmd_dep = c_compiler.find_library('scgcmd')
|
|
|
|
schily_dep = c_compiler.find_library('schily')
|
|
|
|
scg_dep = c_compiler.find_library('scg')
|
|
|
|
siconv_dep = c_compiler.find_library('siconv')
|
2020-03-03 10:55:06 +00:00
|
|
|
|
|
|
|
libisoinfo = static_library(meson.project_name(),
|
|
|
|
'src/isoinfo.c',
|
2020-03-03 15:43:35 +00:00
|
|
|
'src/scsi.c',
|
2020-03-04 00:05:50 +00:00
|
|
|
dependencies: [cdrdeflt_dep, scgcmd_dep, schily_dep, scg_dep, siconv_dep],
|
2020-03-03 10:55:06 +00:00
|
|
|
install: false,
|
|
|
|
)
|
|
|
|
|
|
|
|
libisoinfo_dep = declare_dependency(
|
2020-03-04 01:36:30 +00:00
|
|
|
#include_directories: public_inc,
|
2020-03-03 10:55:06 +00:00
|
|
|
link_with: libisoinfo
|
|
|
|
)
|