summaryrefslogtreecommitdiff
path: root/cppu/meson.build
blob: 3bbd1fba57ccbbfd69f4d561593c5c3a3213dbae (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
cppu_lib = shared_library('uno_cppu',
  'source/cppu/compat.cxx',
  'source/cppu/cppu_opt.cxx',
  'source/threadpool/current.cxx',
  'source/threadpool/jobqueue.cxx',
  'source/threadpool/thread.cxx',
  'source/threadpool/threadident.cxx',
  'source/threadpool/threadpool.cxx',
  'source/typelib/static_types.cxx',
  'source/typelib/typelib.cxx',
  'source/uno/any.cxx',
  'source/uno/cascade_mapping.cxx',
  'source/uno/check.cxx',
  'source/uno/data.cxx',
  'source/uno/EnvDcp.cxx',
  'source/uno/EnvStack.cxx',
  'source/uno/IdentityMapping.cxx',
  'source/uno/lbenv.cxx',
  'source/uno/lbmap.cxx',
  'source/uno/loadmodule.cxx',
  'source/uno/sequence.cxx',
  udk_fake_h,
  include_directories: [main_inc, udkh_inc],
  cpp_args: [
    '-DCPPU_DLLIMPLEMENTATION',
    '-DLIBO_INTERNAL_ONLY',
  ],
  link_with: [
    sal_lib,
    salhelper_lib,
  ],
  soversion : '3',
  gnu_symbol_visibility: 'hidden',
  install: true,
)

test_unotype = shared_library('test_unotype',
  'qa/test_unotype.cxx',
  udk_fake_h,
  cpp_args: ['-DLIBO_INTERNAL_ONLY'],
  include_directories: [main_inc, udkh_inc],
  link_with: [cppu_lib, sal_lib],
  dependencies: [cppunit_dep],
)

test('unotype', unittester,
  args: [test_unotype])

test_anyexternal = shared_library('test_anyexternal',
  'qa/any-external.cxx',
  udk_fake_h,
  include_directories: [main_inc, udkh_inc],
  link_with: [cppu_lib, sal_lib],
  dependencies: [cppunit_dep],
)

test('unotype', unittester,
  args: [test_anyexternal])

#test_cppumaker = shared_library('test_cppumaker',
#  'qa/cppumaker/test_cppumaker.cxx',
#  udk_fake_h,
#  include_directories: [main_inc, udkh_inc],
#  link_with: [cppu_lib, sal_lib],
#  dependencies: [cppunit_dep],
#)

#test('cppumaker', unittester,
#  args: [test_cppumaker])