summaryrefslogtreecommitdiffstats
path: root/test cases/windows/20 vs install static lib with generated obj deps/meson.build
blob: bc61772b1ba1cf63b3b686c3eb95f17bbfb55aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
project('test', 'c')

generated_c = custom_target(
  'generated.c',
  input : files('generated_source.c', 'copyfile.py'),
  output : 'generated.c',
  command : ['python', '@INPUT1@', '@INPUT0@', '@OUTPUT@'],
)

static_lib = static_library(
    'static_lib',
    [files('static_lib_source.c'), generated_c],
)

both_lib = both_libraries(
    'both_lib',
    [files('both_lib_source.c')],
    link_with : [static_lib],
    install : true,
)