aboutsummaryrefslogtreecommitdiff
path: root/lib/pluginloader/meson.build
blob: 1b68c8cc6238a0dd40494e56d7569a0c0aa8bb31 (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
python = import('python')
python3 = python.find_installation('python3')

private_pem = meson.build_root() / get_option('ssl_private_pem')
public_pem = meson.build_root() / get_option('ssl_public_pem')

publicKey_h = custom_target('publicKey_h',
  output: 'publicKey.h',
  command: [python3, meson.source_root() / 'tools/ssl-keygen.py',
    '--private=' + private_pem, '--public=' + public_pem,
    '--output=@OUTPUT@', '--array-name=publicKey_pem']
)

pluginloader_moc = mod_qt5.preprocess(
    moc_headers: ['pluginloader.h'],
    dependencies: dep_qt5
)

dep_pluginloader = declare_dependency(
    include_directories: include_directories('.'),
    link_with: static_library('plugin', 
        ['pluginloader.cpp', pluginloader_moc, publicKey_h],
        include_directories: include_directories('.'),
        dependencies: [dep_qt5])
)