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')
|
|
|
|
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
|
|
|
|
)
|