summaryrefslogtreecommitdiff
path: root/xslt/meson.build
blob: 9615d42879f512754f124ef9af9c630a581a5605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
yelp_tools_xslt_data = [
  'comments.xsl',
  'mal-epub.xsl',
  'mal-files.xsl',
  'mal-license.xsl',
  'mal-rng.xsl',
  'mal-status.xsl',
  'media.xsl',
]

install_data(
  yelp_tools_xslt_data,
  install_dir: join_paths(
    pkgxsltdir,
  )
)

yelp_xslt_in = configuration_data()

yelp_xslt_in.set('XSL_MAL_LINK', join_paths(
  yelp_xslt_dir,
  'mallard',
  'common',
  'mal-link.xsl',
  )
)

yelp_xslt_in.set('XSL_MAL_SORT', join_paths(
  yelp_xslt_dir,
  'mallard',
  'common',
  'mal-sort.xsl',
  )
)

configure_file(
  input: 'mal-ncx.xsl.in',
  output: 'mal-ncx.xsl',
  configuration: yelp_xslt_in,
  install: true,
  install_dir: join_paths(
    pkgxsltdir,
  )
)

configure_file(
  input: 'mal-opf.xsl.in',
  output: 'mal-opf.xsl',
  configuration: yelp_xslt_in,
  install: true,
  install_dir: join_paths(
    pkgxsltdir,
  )
)