summaryrefslogtreecommitdiff
path: root/desktop/meson.build
blob: 13e38de7c7a677e1d78d8ff9008de0cb906cd231 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
deploymentmisc_lib = shared_library('deploymentmisc',
  'source/deployment/misc/dp_dependencies.cxx',
  'source/deployment/misc/dp_descriptioninfoset.cxx',
  'source/deployment/misc/dp_identifier.cxx',
  'source/deployment/misc/dp_interact.cxx',
  'source/deployment/misc/dp_misc.cxx',
  'source/deployment/misc/dp_platform.cxx',
  'source/deployment/misc/dp_resource.cxx',
  'source/deployment/misc/dp_ucb.cxx',
  'source/deployment/misc/dp_update.cxx',
  'source/deployment/misc/dp_version.cxx',
  'source/deployment/misc/lockfile.cxx',
  udk_fake_h, off_fake_h,
  cpp_args: ['-DESKTOP_DEPLOYMENTMISC_DLLIMPLEMENTATION',
             '-DLIBO_INTERNAL_ONLY'],
  include_directories: [main_inc, udkh_inc, offapi_inc, 'inc', 'source/deployment/inc'],
  link_with: [comphelper_lib, cppuhelper_lib, cppu_lib, sal_lib, tl_lib, ucbhelper_lib, utl_lib, vcl_lib, xmlscript_lib, i18nlangtag_lib],
  dependencies: [],
  install: true,
)

crashreport_lib = shared_library('crashlib',
  'source/app/crashreport.cxx',
  'source/minidump/minidump.cxx',
   udk_fake_h, off_fake_h,
  cpp_args: ['-DLIBO_INTERNAL_ONLY',
             '-DCRASHREPORT_DLLIMPLEMENTATION'],
  include_directories: [main_inc, udkh_inc, offapi_inc],
  link_with: [],
  dependencies: [curl_dep],
  install: true,
)

unopkgapp_lib = shared_library('unopkgapp',
  'source/pkgchk/unopkg/unopkg_app.cxx',
  'source/pkgchk/unopkg/unopkg_cmdenv.cxx',
  'source/pkgchk/unopkg/unopkg_misc.cxx',

  udk_fake_h, off_fake_h,
  cpp_args: ['-DLIBO_INTERNAL_ONLY',
             '-DDESKTOP_DLLIMPLEMENTATION'],
  include_directories: [main_inc, udkh_inc, offapi_inc, 'inc', 'source/deployment/inc'],
  link_with: [comphelper_lib,
    cppu_lib,
    cppuhelper_lib,
    deploymentmisc_lib,
    sal_lib,
    tl_lib,
    ucbhelper_lib,
    utl_lib,
    vcl_lib,
    i18nlangtag_lib,
  ],
  dependencies: [],
  install: true,
)

sofficeapp_lib = shared_library('sofficeapp',
  'source/app/app.cxx',
  'source/app/appinit.cxx',
  'source/app/check_ext_deps.cxx',
  'source/app/cmdlineargs.cxx',
  'source/app/cmdlinehelp.cxx',
  'source/app/desktopcontext.cxx',
  'source/app/dispatchwatcher.cxx',
  'source/app/langselect.cxx',
  'source/app/lockfile2.cxx',
  'source/app/officeipcthread.cxx',
  'source/app/opencl.cxx',
  'source/app/sofficemain.cxx',
  'source/app/userinstall.cxx',
  'source/migration/migration.cxx',
  udk_fake_h, off_fake_h, setup_hxx, common_hxx, linguistic_hxx, update_hxx, calc_hxx,
  cpp_args: ['-DLIBO_INTERNAL_ONLY'],
  include_directories: [main_inc, udkh_inc, offapi_inc, 'inc', 'source/deployment/inc', setup_inc],
  link_with: [glxtest_lib, comphelper_lib, cppuhelper_lib, cppu_lib, deploymentmisc_lib, editeng_lib, i18nlangtag_lib, sal_lib, salhelper_lib, sb_lib, sfx_lib, svl_lib, svx_lib, svxcore_lib, svt_lib, tk_lib, tl_lib, ucbhelper_lib, utl_lib, vcl_lib],
  dependencies: [dbus_dep],
  install: true,
)

soffice_bin = executable('soffice', 'source/app/main.c',
  include_directories: [main_inc],
  link_with: [sofficeapp_lib, sal_lib],
  install: true,
)

minidump_bin = executable('minidump_upload',
  'source/minidump/minidump_upload.cxx',
  include_directories: [main_inc],
  link_with: [crashreport_lib, sal_lib],
  install: true,
)

unopkg_bin = executable('unopkg',
  'source/pkgchk/unopkg/unopkg_main.c',
  include_directories: [main_inc],
  link_with: [sal_lib, comphelper_lib, tl_lib, unopkgapp_lib],
  install: true,
)

oosplash_bin = executable('oosplash',
  'unx/source/args.c',
  'unx/source/file_image_unx.c',
  'unx/source/pagein.c',
  'unx/source/splashx.c',
  'unx/source/start.c',
  include_directories: [main_inc],
  link_with: [sal_lib],
  install: true,
)

spl_lib = shared_library('spllo',
  'source/splash/services_spl.cxx',
  'source/splash/splash.cxx',
  'source/splash/unxsplash.cxx',
  udk_fake_h, off_fake_h,
  cpp_args: ['-DLIBO_INTERNAL_ONLY'],
  include_directories: [main_inc, udkh_inc, offapi_inc],
  link_with: [comphelper_lib,
    cppu_lib,
    cppuhelper_lib,
    sal_lib,
    tl_lib,
    ucbhelper_lib,
    utl_lib,
    vcl_lib,
  ],
  dependencies: [],
  install: true,
)

deployment_lib = shared_library('deployment',
  'source/deployment/dp_log.cxx',
  'source/deployment/dp_persmap.cxx',
  'source/deployment/dp_services.cxx',
  'source/deployment/dp_xml.cxx',
  'source/deployment/manager/dp_activepackages.cxx',
  'source/deployment/manager/dp_commandenvironments.cxx',
  'source/deployment/manager/dp_extensionmanager.cxx',
  'source/deployment/manager/dp_informationprovider.cxx',
  'source/deployment/manager/dp_manager.cxx',
  'source/deployment/manager/dp_managerfac.cxx',
  'source/deployment/manager/dp_properties.cxx',
  'source/deployment/registry/component/dp_compbackenddb.cxx',
  'source/deployment/registry/component/dp_component.cxx',
  'source/deployment/registry/configuration/dp_configuration.cxx',
  'source/deployment/registry/configuration/dp_configurationbackenddb.cxx',
  'source/deployment/registry/dp_backend.cxx',
  'source/deployment/registry/dp_backenddb.cxx',
  'source/deployment/registry/dp_registry.cxx',
  'source/deployment/registry/executable/dp_executable.cxx',
  'source/deployment/registry/executable/dp_executablebackenddb.cxx',
  'source/deployment/registry/help/dp_help.cxx',
  'source/deployment/registry/help/dp_helpbackenddb.cxx',
  'source/deployment/registry/package/dp_extbackenddb.cxx',
  'source/deployment/registry/package/dp_package.cxx',
  'source/deployment/registry/script/dp_lib_container.cxx',
  'source/deployment/registry/script/dp_script.cxx',
  'source/deployment/registry/script/dp_scriptbackenddb.cxx',
  'source/deployment/registry/sfwk/dp_parceldesc.cxx',
  'source/deployment/registry/sfwk/dp_sfwk.cxx',
  udk_fake_h, off_fake_h,
  cpp_args: ['-DLIBO_INTERNAL_ONLY'],
  include_directories: [main_inc, udkh_inc, offapi_inc, 'inc', 'source/deployment/inc', 'source/deployment/registry/inc'],
  link_with: [comphelper_lib,
    cppu_lib,
    cppuhelper_lib,
    deploymentmisc_lib,
    sal_lib,
    svl_lib,
    tl_lib,
    ucbhelper_lib,
    utl_lib,
    vcl_lib,
    xmlscript_lib,
    i18nlangtag_lib,
    helplinker_lib,
  ],
  dependencies: [],
  gnu_symbol_visibility: 'hidden',
  install: true,
)