psp2name/subprojects/isoinfo/meson.build
2020-03-04 02:55:03 +01:00

42 lines
1.8 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',
'-DUSE_NLS',
'-DINS_BASE="/opt/schily"',
'-DTEXT_DOMAIN="SCHILY_cdrtools"',
language: 'c'
)
c_compiler = meson.get_compiler('c')
cdrdeflt_dep = c_compiler.find_library('cdrdeflt')
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')
libisoinfo = static_library(meson.project_name(),
'src/isoinfo.c',
'src/scsi.c',
dependencies: [cdrdeflt_dep, scgcmd_dep, schily_dep, scg_dep, siconv_dep],
install: false,
)
libisoinfo_dep = declare_dependency(
#include_directories: public_inc,
link_with: libisoinfo
)