Skip to content

Commit

Permalink
Add meson build support
Browse files Browse the repository at this point in the history
  • Loading branch information
a-andre committed Jul 15, 2024
1 parent 33067f0 commit 6157241
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
project(
'Data-Sample',
license : 'EPL-2.0',
version : '1.3.0',
)

data = [
'afiro.mps',
'app0110.cor',
'app0110.stoch',
'app0110.time',
'app0110R.cor',
'app0110R.stoch',
'app0110R.time',
'atm_5_10_1.block',
'atm_5_10_1.mps',
'block_milp.dec',
'block_milp.lp',
'brandy.mps',
'bug.cor',
'bug.stoch',
'bug.time',
'conic.mps',
'e226.mps',
'exmip1.5.mps',
'exmip1.lp',
'exmip1.mps',
'finnis.mps',
'galenet.mps',
'galenetbnds.mps',
'hello.mps',
'input.130',
'lseu.mps',
'nw460.mps',
'p0033.mps',
'p0201.mps',
'p0548.mps',
'pack1.mps',
'retail3.block',
'retail3.mps',
'scOneInt.mps',
'share2qp.mps',
'spec_sections.mps',
'tp3.mps',
'tp4.mps',
'tp5.mps',
'wedding_16.block',
'wedding_16.mps',
]

datadir = get_option('prefix') / get_option('datadir') / 'coin/Data/Sample'
coindatasample_dep = declare_dependency(variables : {'datadir': datadir})

install_data(data, install_dir : datadir)

pkg = import('pkgconfig')
pkg.generate(
name : 'Sample',
description : 'Sample models',
url : 'https://github.com/coin-or-tools/Data-Sample',
filebase : 'coindatasample',
variables : [ 'datadir=' + join_paths('${prefix}', get_option('datadir'), 'coin/Data/Sample') ],
dataonly : true,
)

0 comments on commit 6157241

Please sign in to comment.