xref: /aoo42x/main/bridges/Library_cpp_uno.mk (revision 4691efef)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24$(eval $(call gb_Library_Library,$(COMNAME)_uno))
25
26$(eval $(call gb_Library_add_precompiled_header,$(COMNAME)_uno,$(SRCDIR)/bridges/inc/pch/precompiled_bridges))
27
28$(eval $(call gb_Library_set_include,$(COMNAME)_uno,\
29	$$(INCLUDE) \
30	-I$(SRCDIR) \
31	-I$(SRCDIR)/bridges/inc \
32	-I$(SRCDIR)/bridges/inc/pch \
33	-I$(OUTDIR)/inc \
34))
35
36$(eval $(call gb_Library_set_private_extract_of_public_api,$(COMNAME)_uno,$(OUTDIR)/bin/udkapi.rdb,\
37	com.sun.star.uno.XInterface \
38	com.sun.star.uno.TypeClass \
39))
40
41#$(eval $(call gb_Library_add_api,$(COMNAME)_uno, \
42#        udkapi \
43#	offapi \
44#))
45
46$(eval $(call gb_Library_set_versionmap,$(COMNAME)_uno,$(SRCDIR)/bridges/source/bridge_exports.map))
47
48$(eval $(call gb_Library_add_linked_libs,$(COMNAME)_uno,\
49	cppu \
50	sal \
51	stl \
52	$(gb_STDLIBS) \
53))
54
55$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
56	bridges/source/cpp_uno/shared/bridge \
57	bridges/source/cpp_uno/shared/component \
58	bridges/source/cpp_uno/shared/cppinterfaceproxy \
59	bridges/source/cpp_uno/shared/types \
60	bridges/source/cpp_uno/shared/unointerfaceproxy \
61	bridges/source/cpp_uno/shared/vtablefactory \
62	bridges/source/cpp_uno/shared/vtables \
63))
64
65# Disable optimization for cppinterfaceproxy.cxx -
66# attribute constructor / destructor do not get called otherwise.
67ifeq ($(COM),GCC)
68$(eval $(call gb_LinkTarget_set_cxx_optimization, \
69	bridges/source/cpp_uno/shared/cppinterfaceproxy, $(gb_COMPILERNOOPTFLAGS) \
70))
71endif
72
73
74###################################################
75ifeq ($(OS)-$(CPUNAME)-$(COMNAME),FREEBSD-ARM-gcc3)
76###################################################
77
78$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
79	bridges/source/cpp_uno/gcc3_freebsd_arm/except \
80	bridges/source/cpp_uno/gcc3_freebsd_arm/cpp2uno \
81	bridges/source/cpp_uno/gcc3_freebsd_arm/uno2cpp \
82))
83
84$(eval $(call gb_LinkTarget_set_cxx_optimization, \
85	bridges/source/cpp_uno/gcc3_freebsd_arm/except \
86	bridges/source/cpp_uno/gcc3_freebsd_arm/cpp2uno \
87	bridges/source/cpp_uno/gcc3_freebsd_arm/uno2cpp \
88, $(gb_COMPILERNOOPTFLAGS) \
89))
90
91$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
92	bridges/source/cpp_uno/gcc3_freebsd_arm/armhelper \
93))
94
95##########################################################
96else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),FREEBSD-INTEL-gcc3)
97##########################################################
98
99$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
100	bridges/source/cpp_uno/gcc3_freebsd_intel/except \
101	bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno \
102	bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp \
103))
104
105$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
106	bridges/source/cpp_uno/gcc3_freebsd_intel/call \
107))
108
109############################################################
110else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),FREEBSD-POWERPC-gcc3)
111############################################################
112
113$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
114        bridges/source/cpp_uno/gcc3_freebsd_powerpc/except \
115        bridges/source/cpp_uno/gcc3_freebsd_powerpc/cpp2uno \
116        bridges/source/cpp_uno/gcc3_freebsd_powerpc/uno2cpp \
117))
118
119$(eval $(call gb_LinkTarget_set_cxx_optimization, \
120        bridges/source/cpp_uno/gcc3_freebsd_powerpc/uno2cpp \
121, $(gb_COMPILERNOOPTFLAGS) \
122))
123
124##############################################################
125else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),FREEBSD-POWERPC64-gcc3)
126##############################################################
127
128$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
129        bridges/source/cpp_uno/gcc3_freebsd_powerpc64/except \
130        bridges/source/cpp_uno/gcc3_freebsd_powerpc64/cpp2uno \
131        bridges/source/cpp_uno/gcc3_freebsd_powerpc64/uno2cpp \
132))
133
134$(eval $(call gb_LinkTarget_set_cxx_optimization, \
135        bridges/source/cpp_uno/gcc3_freebsd_powerpc64/cpp2uno \
136        bridges/source/cpp_uno/gcc3_freebsd_powerpc64/uno2cpp \
137, $(gb_COMPILERNOOPTFLAGS) \
138))
139
140###########################################################
141else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),FREEBSD-X86_64-gcc3)
142###########################################################
143
144$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
145	bridges/source/cpp_uno/gcc3_freebsd_x86-64/abi \
146	bridges/source/cpp_uno/gcc3_freebsd_x86-64/except \
147	bridges/source/cpp_uno/gcc3_freebsd_x86-64/cpp2uno \
148	bridges/source/cpp_uno/gcc3_freebsd_x86-64/uno2cpp \
149))
150
151$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
152	bridges/source/cpp_uno/gcc3_freebsd_x86-64/call \
153))
154
155#########################################################
156else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-ALPHA_-gcc3)
157#########################################################
158
159$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
160        bridges/source/cpp_uno/gcc3_linux_alpha/except \
161        bridges/source/cpp_uno/gcc3_linux_alpha/cpp2uno \
162        bridges/source/cpp_uno/gcc3_linux_alpha/uno2cpp \
163))
164
165$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
166	-ldl \
167))
168
169######################################################
170else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-ARM-gcc3)
171######################################################
172
173$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
174	bridges/source/cpp_uno/gcc3_linux_arm/except \
175	bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno \
176	bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp \
177))
178
179$(eval $(call gb_LinkTarget_set_cxx_optimization, \
180	bridges/source/cpp_uno/gcc3_linux_arm/except \
181	bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno \
182	bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp \
183, $(gb_COMPILERNOOPTFLAGS) \
184))
185
186$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
187	bridges/source/cpp_uno/gcc3_linux_arm/armhelper \
188))
189
190$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
191	-ldl \
192))
193
194#######################################################
195else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-HPPA-gcc3)
196#######################################################
197
198$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
199	bridges/source/cpp_uno/gcc3_linux_hppa/call \
200	bridges/source/cpp_uno/gcc3_linux_hppa/except \
201	bridges/source/cpp_uno/gcc3_linux_hppa/cpp2uno \
202	bridges/source/cpp_uno/gcc3_linux_hppa/uno2cpp \
203))
204
205$(eval $(call gb_LinkTarget_set_cxx_optimization, \
206	bridges/source/cpp_uno/gcc3_linux_hppa/call \
207	bridges/source/cpp_uno/gcc3_linux_hppa/except \
208	bridges/source/cpp_uno/gcc3_linux_hppa/cpp2uno \
209	bridges/source/cpp_uno/gcc3_linux_hppa/uno2cpp \
210, $(gb_COMPILERNOOPTFLAGS) \
211))
212
213$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
214	-ldl \
215))
216
217#######################################################
218else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-IA64-gcc3)
219#######################################################
220
221$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
222	bridges/source/cpp_uno/gcc3_linux_ia64/except \
223	bridges/source/cpp_uno/gcc3_linux_ia64/cpp2uno \
224	bridges/source/cpp_uno/gcc3_linux_ia64/uno2cpp \
225))
226
227$(eval $(call gb_LinkTarget_set_cxx_optimization, \
228	bridges/source/cpp_uno/gcc3_linux_ia64/cpp2uno \
229	bridges/source/cpp_uno/gcc3_linux_ia64/uno2cpp \
230, $(gb_COMPILERNOOPTFLAGS) \
231))
232
233$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
234	bridges/source/cpp_uno/gcc3_linux_ia64/call \
235))
236
237$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
238	-ldl \
239))
240
241########################################################
242else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-INTEL-gcc3)
243########################################################
244
245$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
246	bridges/source/cpp_uno/gcc3_linux_intel/abi \
247	bridges/source/cpp_uno/gcc3_linux_intel/except \
248	bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno \
249	bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp \
250))
251
252$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
253	bridges/source/cpp_uno/gcc3_linux_intel/call \
254))
255
256
257$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
258	-ldl \
259))
260
261#######################################################
262else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-M68K-gcc3)
263#######################################################
264
265$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
266	bridges/source/cpp_uno/gcc3_linux_m68k/except \
267	bridges/source/cpp_uno/gcc3_linux_m68k/cpp2uno \
268	bridges/source/cpp_uno/gcc3_linux_m68k/uno2cpp \
269))
270
271$(eval $(call gb_LinkTarget_set_cxx_optimization, \
272	bridges/source/cpp_uno/gcc3_linux_m68k/except \
273	bridges/source/cpp_uno/gcc3_linux_m68k/cpp2uno \
274	bridges/source/cpp_uno/gcc3_linux_m68k/uno2cpp \
275, $(gb_COMPILERNOOPTFLAGS) \
276))
277
278
279$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
280	-ldl \
281))
282
283#########################################################
284# It's a MIPS, apparently...
285else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-GODSON-gcc3)
286#########################################################
287
288$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
289	bridges/source/cpp_uno/gcc3_linux_mips/except \
290	bridges/source/cpp_uno/gcc3_linux_mips/cpp2uno \
291	bridges/source/cpp_uno/gcc3_linux_mips/uno2cpp \
292))
293
294$(eval $(call gb_LinkTarget_set_cxx_optimization, \
295	bridges/source/cpp_uno/gcc3_linux_mips/cpp2uno \
296	bridges/source/cpp_uno/gcc3_linux_mips/uno2cpp \
297, $(gb_COMPILERNOOPTFLAGS) \
298))
299
300
301$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
302	-ldl \
303))
304
305##########################################################
306else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-POWERPC-gcc3)
307##########################################################
308
309$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
310	bridges/source/cpp_uno/gcc3_linux_powerpc/except \
311	bridges/source/cpp_uno/gcc3_linux_powerpc/cpp2uno \
312	bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp \
313))
314
315$(eval $(call gb_LinkTarget_set_cxx_optimization, \
316	bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp \
317, $(gb_COMPILERNOOPTFLAGS) \
318))
319
320
321$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
322	-ldl \
323))
324
325############################################################
326else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-POWERPC64-gcc3)
327############################################################
328
329$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
330	bridges/source/cpp_uno/gcc3_linux_powerpc64/except \
331	bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno \
332	bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp \
333))
334
335$(eval $(call gb_LinkTarget_set_cxx_optimization, \
336	bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno \
337	bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp \
338, $(gb_COMPILERNOOPTFLAGS) \
339))
340
341
342$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
343	-ldl \
344))
345
346#######################################################
347else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-S390-gcc3)
348#######################################################
349
350$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
351	bridges/source/cpp_uno/gcc3_linux_s390/except \
352	bridges/source/cpp_uno/gcc3_linux_s390/cpp2uno \
353	bridges/source/cpp_uno/gcc3_linux_s390/uno2cpp \
354))
355
356
357$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
358	-ldl \
359))
360
361########################################################
362else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-S390X-gcc3)
363########################################################
364
365$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
366	bridges/source/cpp_uno/gcc3_linux_s390x/except \
367	bridges/source/cpp_uno/gcc3_linux_s390x/cpp2uno \
368	bridges/source/cpp_uno/gcc3_linux_s390x/uno2cpp \
369))
370
371
372$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
373	-ldl \
374))
375
376########################################################
377else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-SPARC-gcc3)
378########################################################
379
380$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
381	bridges/source/cpp_uno/gcc3_linux_sparc/except \
382	bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno \
383	bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp \
384))
385
386$(eval $(call gb_LinkTarget_set_cxx_optimization, \
387	bridges/source/cpp_uno/gcc3_linux_sparc/cpp2uno \
388	bridges/source/cpp_uno/gcc3_linux_sparc/uno2cpp \
389, $(gb_COMPILERNOOPTFLAGS) \
390))
391
392$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
393	bridges/source/cpp_uno/gcc3_linux_sparc/call \
394))
395
396$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
397	-ldl \
398))
399
400#########################################################
401else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),LINUX-X86_64-gcc3)
402#########################################################
403
404$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
405	bridges/source/cpp_uno/gcc3_linux_x86-64/abi \
406	bridges/source/cpp_uno/gcc3_linux_x86-64/except \
407	bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno \
408	bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp \
409))
410
411$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
412	bridges/source/cpp_uno/gcc3_linux_x86-64/call \
413))
414
415$(eval $(call gb_Library_add_libs,$(COMNAME)_uno,\
416	-ldl \
417))
418
419#########################################################
420else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),MACOSX-INTEL-gcc3)
421#########################################################
422
423$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
424	bridges/source/cpp_uno/gcc3_macosx_intel/except \
425	bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno \
426	bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp \
427))
428
429$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
430	bridges/source/cpp_uno/gcc3_macosx_intel/call \
431))
432
433###########################################################
434else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),MACOSX-POWERPC-gcc3)
435###########################################################
436
437$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
438	bridges/source/cpp_uno/gcc3_macosx_powerpc/except \
439	bridges/source/cpp_uno/gcc3_macosx_powerpc/cpp2uno \
440	bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp \
441))
442
443$(eval $(call gb_LinkTarget_set_cxx_optimization, \
444	bridges/source/cpp_uno/gcc3_macosx_powerpc/uno2cpp \
445, $(gb_COMPILERNOOPTFLAGS) \
446))
447
448$(eval $(call gb_Library_add_linked_libs,$(COMNAME)_uno,\
449        dl \
450))
451
452###########################################################
453else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),MACOSX-X86_64-gcc3)
454###########################################################
455
456$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
457	bridges/source/cpp_uno/gcc3_macosx_x86-64/abi \
458	bridges/source/cpp_uno/gcc3_macosx_x86-64/except \
459	bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno \
460	bridges/source/cpp_uno/gcc3_macosx_x86-64/uno2cpp \
461))
462
463#########################################################
464else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),NETBSD-INTEL-gcc3)
465#########################################################
466
467$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
468	bridges/source/cpp_uno/gcc3_netbsd_intel/except \
469	bridges/source/cpp_uno/gcc3_netbsd_intel/cpp2uno \
470	bridges/source/cpp_uno/gcc3_netbsd_intel/uno2cpp \
471))
472
473#########################################################
474else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),OS2-INTEL-gcc3)
475#########################################################
476
477$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
478	bridges/source/cpp_uno/gcc3_os2_intel/except \
479	bridges/source/cpp_uno/gcc3_os2_intel/cpp2uno \
480	bridges/source/cpp_uno/gcc3_os2_intel/uno2cpp \
481))
482
483#########################################################
484else ifeq ($(OS)-$(CPUNAME)-$(COM),SOLARIS-INTEL-C50)
485#########################################################
486
487$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
488	bridges/source/cpp_uno/cc50_solaris_intel/except \
489	bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno \
490	bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp \
491))
492
493$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
494	bridges/source/cpp_uno/cc50_solaris_intel/call \
495))
496
497#########################################################
498else ifeq ($(OS)-$(CPUNAME)-$(COM),SOLARIS-INTEL-C52)
499#########################################################
500
501$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
502	bridges/source/cpp_uno/cc50_solaris_intel/except \
503	bridges/source/cpp_uno/cc50_solaris_intel/cpp2uno \
504	bridges/source/cpp_uno/cc50_solaris_intel/uno2cpp \
505))
506
507$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
508	bridges/source/cpp_uno/cc50_solaris_intel/call \
509))
510
511##########################################################
512else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),SOLARIS-INTEL-gcc3)
513##########################################################
514
515$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
516	bridges/source/cpp_uno/gcc3_solaris_intel/except \
517	bridges/source/cpp_uno/gcc3_solaris_intel/cpp2uno \
518	bridges/source/cpp_uno/gcc3_solaris_intel/uno2cpp \
519))
520
521#########################################################
522else ifeq ($(OS)-$(CPUNAME)-$(COM),SOLARIS-SPARC-C52)
523#########################################################
524
525$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
526	bridges/source/cpp_uno/cc50_solaris_sparc/except \
527	bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno \
528	bridges/source/cpp_uno/cc50_solaris_sparc/uno2cpp \
529))
530
531$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
532	bridges/source/cpp_uno/cc50_solaris_sparc/call \
533))
534
535##########################################################
536else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),SOLARIS-SPARC-gcc3)
537##########################################################
538
539$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
540	bridges/source/cpp_uno/gcc3_solaris_sparc/except \
541	bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno \
542	bridges/source/cpp_uno/gcc3_solaris_sparc/uno2cpp \
543))
544
545$(eval $(call gb_LinkTarget_set_cxx_optimization, \
546	bridges/source/cpp_uno/gcc3_solaris_sparc/cpp2uno \
547	bridges/source/cpp_uno/gcc3_solaris_sparc/uno2cpp \
548, $(gb_COMPILERNOOPTFLAGS) \
549))
550
551#########################################################
552else ifeq ($(OS)-$(CPUNAME)-$(COM),SOLARIS-SPARC64-C52)
553#########################################################
554
555$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
556	bridges/source/cpp_uno/cc5_solaris_sparc64/cpp2uno \
557	bridges/source/cpp_uno/cc5_solaris_sparc64/exceptions \
558	bridges/source/cpp_uno/cc5_solaris_sparc64/isdirectreturntype \
559	bridges/source/cpp_uno/cc5_solaris_sparc64/uno2cpp \
560))
561
562$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
563	bridges/source/cpp_uno/cc5_solaris_sparc64/callvirtualmethod \
564	bridges/source/cpp_uno/cc5_solaris_sparc64/fp \
565	bridges/source/cpp_uno/cc5_solaris_sparc64/vtableslotcall \
566))
567
568#########################################################
569else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),WNT-INTEL-msci)
570#########################################################
571
572$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
573	bridges/source/cpp_uno/msvc_win32_intel/cpp2uno \
574	bridges/source/cpp_uno/msvc_win32_intel/dllinit \
575	bridges/source/cpp_uno/msvc_win32_intel/except \
576	bridges/source/cpp_uno/msvc_win32_intel/uno2cpp \
577))
578
579$(eval $(call gb_LinkTarget_set_cxx_optimization, \
580	bridges/source/cpp_uno/msvc_win32_intel/except \
581, $(gb_COMPILERNOOPTFLAGS) \
582))
583
584#########################################################
585else ifeq ($(OS)-$(CPUNAME)-$(COMNAME),WNT-INTEL-gcc3)
586#########################################################
587
588$(eval $(call gb_Library_add_exception_objects,$(COMNAME)_uno,\
589	bridges/source/cpp_uno/mingw_intel/cpp2uno \
590	bridges/source/cpp_uno/mingw_intel/dllinit \
591	bridges/source/cpp_uno/mingw_intel/except \
592	bridges/source/cpp_uno/mingw_intel/smallstruct \
593	bridges/source/cpp_uno/mingw_intel/uno2cpp \
594))
595
596$(eval $(call gb_LinkTarget_set_cxx_optimization, \
597	bridges/source/cpp_uno/msvc_win32_intel/uno2cpp \
598, $(gb_COMPILERNOOPTFLAGS) \
599))
600
601$(eval $(call gb_Library_add_asmobjects,$(COMNAME)_uno,\
602	bridges/source/cpp_uno/mingw_intel/call \
603))
604
605ifeq ($(EXCEPTIONS),sjlj)
606$(eval $(call gb_Library_add_defs,$(COMNAME)_uno,\
607	-DBROKEN_ALLOCA \
608))
609endif
610
611#####################################
612else
613#####################################
614
615$(call gb_Output_error,Unsupported OS-platform-ABI $(OS)-$(CPUNAME)-$(COMNAME) - please add a bridge under main/bridges/source/cpp_uno)
616
617#####################################
618endif
619#####################################
620
621
622# vim: set noet sw=4 ts=4:
623
624