xref: /aoo42x/main/solenv/gbuild/platform/macosx.mk (revision e53b81a8)
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
24GUI := UNX
25#COM := S5ABI
26COMID := s5abi
27
28# Darwin mktemp -t expects a prefix, not a pattern
29gb_MKTEMP ?= /usr/bin/mktemp -t gbuild.
30
31gb_CC := cc
32gb_CXX := g++
33gb_GCCP := gcc
34gb_AR := ar
35gb_AWK := awk
36gb_CLASSPATHSEP := :
37
38# use CC/CXX if they are nondefaults
39ifneq ($(origin CC),default)
40gb_CC := $(CC)
41gb_GCCP := $(CC)
42endif
43ifneq ($(origin CXX),default)
44gb_CXX := $(CXX)
45endif
46
47gb_OSDEFS := \
48	-D$(OS) \
49	-D_PTHREADS \
50	-DUNIX \
51	-DUNX \
52	-D_REENTRANT \
53	-DNO_PTHREAD_PRIORITY \
54	-DQUARTZ \
55	$(EXTRA_CDEFS) \
56
57gb_COMPILERDEFS := \
58	-D$(COM) \
59	-DHAVE_GCC_VISIBILITY_FEATURE \
60	-DCPPU_ENV=$(COMNAME) \
61
62gb_CPUDEFS := -D$(ALIGN) -D$(CPUNAME)
63ifeq ($(CPUNAME),POWERPC)
64gb_CPUDEFS += -DPOWERPC -DPPC
65else ifeq ($(CPUNAME),INTEL)
66gb_CPUDEFS += -DX86
67endif
68
69ifeq ($(strip $(SYSBASE)),)
70	gb_SDKDIR := $(MACOSX_SDK_PATH)
71else
72	gb_SDKDIR := $(SYSBASE)/MacOSX$(MACOSX_DEPLOYMENT_TARGET).sdk
73endif
74
75
76gb_CFLAGS := \
77	-isysroot $(gb_SDKDIR) \
78	-Wall \
79	-Wendif-labels \
80	-Wextra \
81	-Wshadow \
82	-fPIC \
83	-fmessage-length=0 \
84	-fno-common \
85	-fno-strict-aliasing \
86	-pipe \
87
88gb_CXXFLAGS := \
89	-isysroot $(gb_SDKDIR) \
90	-Wall \
91	-Wendif-labels \
92	-Wextra \
93	-Wno-ctor-dtor-privacy \
94	-Wno-non-virtual-dtor \
95	-fPIC \
96	-fmessage-length=0 \
97	-fno-common \
98	-fno-strict-aliasing \
99	-fsigned-char \
100	-pipe
101
102ifneq ($(COM),GCC)
103	gb_CXXFLAGS += -DHAVE_STL_INCLUDE_PATH -I../v1/
104endif
105
106ifeq ($(MACOSX_DEPLOYMENT_TARGET),$(filter $(MACOSX_DEPLOYMENT_TARGET), 10.7 10.8))
107	gb_CXXFLAGS += -std=c++11 -stdlib=libc++
108	gb_macos_LDFLAGS := -std=c++11 -stdlib=libc++
109endif
110
111# these are to get g++ to switch to Objective-C++ mode
112# (see toolkit module for a case where it is necessary to do it this way)
113gb_OBJCFLAGS := -x objective-c -fobjc-exceptions
114gb_OBJCXXFLAGS := -x objective-c++ -fobjc-exceptions
115
116ifneq ($(MACOSX_DEPLOYMENT_TARGET),)
117	gb_CXXFLAGS += -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_$(subst .,_,$(MACOSX_DEPLOYMENT_TARGET))
118endif
119
120ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
121gb_CFLAGS_WERROR := -Werror -Wno-error=deprecated
122gb_CXXFLAGS_WERROR := -Werror -Wno-error=deprecated
123endif
124
125gb_LinkTarget_EXCEPTIONFLAGS := \
126	-DEXCEPTIONS_ON \
127	-fexceptions
128
129ifeq ($(COM),GCC)
130    gb_LinkTarget_EXCEPTIONFLAGS += -fno-enforce-eh-specs
131endif
132
133gb_LinkTarget_NOEXCEPTIONFLAGS := \
134	-DEXCEPTIONS_OFF \
135	-fno-exceptions
136
137gb_LinkTarget_LDFLAGS := \
138	-Wl,-syslibroot,$(gb_SDKDIR) \
139	$(subst -L../lib , ,$(SOLARLIB)) \
140#man ld says: obsolete	-Wl,-multiply_defined,suppress \
141
142ifeq ($(ENABLE_SYMBOLS),SMALL)
143gb_DEBUG_CFLAGS := -g1
144else
145gb_DEBUG_CFLAGS := -g3
146endif
147
148ifeq ($(gb_DEBUGLEVEL),2)
149gb_COMPILEROPTFLAGS := -O0
150gb_COMPILEROPT1FLAGS := -O0
151else
152gb_COMPILEROPTFLAGS := -O2
153gb_COMPILEROPT1FLAGS := -O1
154endif
155
156gb_COMPILERNOOPTFLAGS := -O0
157
158# Helper class
159
160gb_Helper_abbreviate_dirs_native = $(gb_Helper_abbreviate_dirs)
161
162# convert parametters filesystem root to native notation
163# does some real work only on windows, make sure not to
164# break the dummy implementations on unx*
165define gb_Helper_convert_native
166$(1)
167endef
168
169# convert parametters filesystem root to native notation
170# does some real work only on windows, make sure not to
171# break the dummy implementations on unx*
172define gb_Helper_convert_native
173$(1)
174endef
175
176
177# AsmObject class
178
179gb_AsmObject_EXT := .s
180
181define gb_AsmObject__command
182$(call gb_Output_announce,$(2),$(true),ASM,3)
183$(call gb_Helper_abbreviate_dirs,\
184	mkdir -p $(dir $(1)) && \
185	$(gb_CC) \
186		$(DEFS) \
187		$(T_CFLAGS) \
188		$(CFLAGS) \
189		-c $(3) \
190		-o $(1) \
191		-MT $(1) \
192		-I$(dir $(3)) \
193		$(INCLUDE))
194endef
195
196# CObject class
197
198define gb_CObject__command
199$(call gb_Output_announce,$(2),$(true),C  ,3)
200$(call gb_Helper_abbreviate_dirs,\
201	mkdir -p $(dir $(1)) $(dir $(4)) && \
202	$(gb_CC) \
203		$(DEFS) \
204		$(T_CFLAGS) \
205		$(CFLAGS) \
206		-c $(3) \
207		-o $(1) \
208		-MMD -MT $(1) \
209		-MF $(4) \
210		-I$(dir $(3)) \
211		$(INCLUDE))
212endef
213
214
215# CxxObject class
216
217# N.B: $(CXXFLAGS) may contain -x objective-c++, which must come before -c
218define gb_CxxObject__command
219$(call gb_Output_announce,$(2),$(true),CXX,3)
220$(call gb_Helper_abbreviate_dirs,\
221	mkdir -p $(dir $(1)) $(dir $(4)) && \
222	$(gb_CXX) \
223		$(DEFS) \
224		$(T_CXXFLAGS) \
225		$(CXXFLAGS) \
226		-c $(3) \
227		-o $(1) \
228		-MMD -MT $(1) \
229		-MF $(4) \
230		-I$(dir $(3)) \
231		$(INCLUDE_STL) $(INCLUDE))
232endef
233
234
235# ObjCObject class
236
237define gb_ObjCObject__command
238$(call gb_Output_announce,$(2),$(true),OC,3)
239$(call gb_Helper_abbreviate_dirs,\
240	mkdir -p $(dir $(1)) $(dir $(4)) && \
241	$(gb_CC) \
242		$(DEFS) \
243		$(T_OBJCFLAGS) \
244		$(OBJCFLAGS) \
245		-c $(3) \
246		-o $(1) \
247		-MMD -MT $(1) \
248		-MF $(4) \
249		-I$(dir $(3)) \
250		$(INCLUDE_STL) $(INCLUDE))
251endef
252
253
254# ObjCxxObject class
255
256define gb_ObjCxxObject__command
257$(call gb_Output_announce,$(2),$(true),OCX,3)
258$(call gb_Helper_abbreviate_dirs,\
259	mkdir -p $(dir $(1)) $(dir $(4)) && \
260	$(gb_CXX) \
261		$(DEFS) \
262		$(T_OBJCXXFLAGS) \
263		$(OBJCXXFLAGS) \
264		-c $(3) \
265		-o $(1) \
266		-MMD -MT $(1) \
267		-MF $(4) \
268		-I$(dir $(3)) \
269		$(INCLUDE_STL) $(INCLUDE))
270endef
271
272
273# LinkTarget class
274
275define gb_LinkTarget__get_rpath_for_layer
276$(patsubst $(1):%,%,$(filter $(1):%,$(gb_LinkTarget__RPATHS)))
277endef
278
279gb_LinkTarget__RPATHS := \
280	URELIB:@_______URELIB/ \
281	UREBIN: \
282	OOO:@_______OOO/ \
283	BRAND: \
284	SDKBIN: \
285	NONEBIN: \
286
287define gb_LinkTarget__get_installname
288$(if $(2),-install_name '$(2)$(1)',)
289endef
290
291gb_LinkTarget_CFLAGS := $(gb_CFLAGS) $(gb_CFLAGS_WERROR)
292gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) $(gb_CXXFLAGS_WERROR)
293gb_LinkTarget_OBJCFLAGS := $(gb_CFLAGS) $(gb_CFLAGS_WERROR) $(gb_OBJCFLAGS)
294gb_LinkTarget_OBJCXXFLAGS := $(gb_CXXFLAGS) $(gb_CXXFLAGS_WERROR) $(gb_OBJCXXFLAGS)
295
296gb_LinkTarget_INCLUDE := $(filter-out %/stl, $(subst -I. , ,$(SOLARINC)))
297gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC)))
298
299# FIXME framework handling very hackish
300define gb_LinkTarget__get_liblinkflags
301$(patsubst lib%.dylib,-l%,$(foreach lib,$(filter-out $(gb_Library__FRAMEWORKS),$(1)),$(call gb_Library_get_filename,$(lib)))) \
302$(addprefix -framework ,$(filter $(gb_Library__FRAMEWORKS),$(1)))
303endef
304
305define gb_LinkTarget__get_layer
306$(if $(filter Executable,$(1)),\
307	$$(call gb_Executable_get_layer,$(2)),\
308	$$(call gb_Library_get_layer,$(2)))
309endef
310
311# FIXME the DYLIB_FILE mess is only necessary because
312# solver layout is different from installation layout
313define gb_LinkTarget__command_dynamiclink
314$(call gb_Helper_abbreviate_dirs,\
315	mkdir -p $(dir $(1)) && \
316	DYLIB_FILE=`$(gb_MKTEMP)` && \
317	$(PERL) $(SOLARENV)/bin/macosx-dylib-link-list.pl \
318		$(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \
319		$(if $(filter Library,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
320		$(subst \d,$$,$(RPATH)) \
321		$(T_LDFLAGS) \
322		$(patsubst lib%.dylib,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \
323		$(patsubst %,-l%,$(EXTERNAL_LIBS)) \
324		> $${DYLIB_FILE} && \
325	$(gb_CXX) \
326		$(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \
327		$(if $(filter Library,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
328		$(subst \d,$$,$(RPATH)) \
329		$(T_LDFLAGS) $(gb_macos_LDFLAGS) \
330		$(call gb_LinkTarget__get_liblinkflags,$(LINKED_LIBS)) \
331		$(foreach object,$(ASMOBJECTS),$(call gb_AsmObject_get_target,$(object))) \
332		$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
333		$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
334		$(foreach object,$(OBJCOBJECTS),$(call gb_ObjCObject_get_target,$(object))) \
335		$(foreach object,$(OBJCXXOBJECTS),$(call gb_ObjCxxObject_get_target,$(object))) \
336		$(foreach object,$(GENCOBJECTS),$(call gb_GenCObject_get_target,$(object))) \
337		$(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
338		$(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \
339		$(LIBS) \
340		-o $(1) \
341		`cat $${DYLIB_FILE}` && \
342	$(if $(filter Library,$(TARGETTYPE)),\
343		$(PERL) $(SOLARENV)/bin/macosx-change-install-names.pl Library $(LAYER) $(1) && \
344		$(if $(filter %.dylib,$(1)),ln -shf $(1) $(patsubst %.dylib,%.jnilib,$(1)) &&)) \
345	rm -f $${DYLIB_FILE})
346endef
347
348# parameters: 1-linktarget 2-cobjects 3-cxxobjects
349define gb_LinkTarget__command_staticlink
350$(call gb_Helper_abbreviate_dirs,\
351	mkdir -p $(dir $(1)) && \
352	$(gb_AR) -rsu $(1) \
353		$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
354		$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
355		$(foreach object,$(OBJCOBJECTS),$(call gb_ObjCObject_get_target,$(object))) \
356		$(foreach object,$(OBJCXXOBJECTS),$(call gb_ObjCxxObject_get_target,$(object))) \
357		$(foreach object,$(GENCOBJECTS),$(call gb_GenCObject_get_target,$(object))) \
358		$(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
359		2> /dev/null)
360endef
361
362define gb_LinkTarget__command
363$(call gb_Output_announce,$(2),$(true),LNK,4)
364$(if $(filter Library GoogleTest Executable,$(TARGETTYPE)),$(call gb_LinkTarget__command_dynamiclink,$(1),$(2)))
365$(if $(filter StaticLibrary,$(TARGETTYPE)),$(call gb_LinkTarget__command_staticlink,$(1)))
366endef
367
368
369# Library class
370
371gb_Library_DEFS :=
372gb_Library_TARGETTYPEFLAGS := -dynamiclib -single_module
373gb_Library_SYSPRE := lib
374gb_Library_UNOVERPRE := $(gb_Library_SYSPRE)uno_
375gb_Library_PLAINEXT := .dylib
376gb_Library_RTEXT := $(COMID)$(gb_Library_PLAINEXT)
377
378gb_Library_OOOEXT := $(gb_Library_PLAINEXT)
379gb_Library_UNOEXT := .uno$(gb_Library_PLAINEXT)
380
381gb_Library__FRAMEWORKS := \
382	Cocoa \
383
384gb_Library_PLAINLIBS_NONE += \
385	Cocoa \
386	objc \
387	m \
388	pthread
389
390gb_Library_FILENAMES := \
391	$(foreach lib,$(gb_Library_OOOLIBS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_OOOEXT)) \
392	$(foreach lib,$(gb_Library_PLAINLIBS_NONE),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_PLAINEXT)) \
393	$(foreach lib,$(gb_Library_PLAINLIBS_URE),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_PLAINEXT)) \
394	$(foreach lib,$(gb_Library_PLAINLIBS_OOO),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_PLAINEXT)) \
395	$(foreach lib,$(gb_Library_RTLIBS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_RTEXT)) \
396	$(foreach lib,$(gb_Library_RTVERLIBS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_RTEXT)) \
397	$(foreach lib,$(gb_Library_STLLIBS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_STLEXT)) \
398	$(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):$(lib)$(gb_Library_UNOEXT)) \
399	$(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):$(lib)$(gb_Library_UNOEXT)) \
400	$(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):$(gb_Library_UNOVERPRE)$(lib)$(gb_Library_PLAINEXT)) \
401
402
403gb_Library_LAYER := \
404	$(foreach lib,$(gb_Library_OOOLIBS),$(lib):OOO) \
405	$(foreach lib,$(gb_Library_PLAINLIBS_URE),$(lib):URELIB) \
406	$(foreach lib,$(gb_Library_PLAINLIBS_OOO),$(lib):OOO) \
407	$(foreach lib,$(gb_Library_RTLIBS),$(lib):OOO) \
408	$(foreach lib,$(gb_Library_RTVERLIBS),$(lib):URELIB) \
409	$(foreach lib,$(gb_Library_STLLIBS),$(lib):URELIB) \
410	$(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):URELIB) \
411	$(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):OOO) \
412	$(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):URELIB) \
413
414define gb_Library_get_rpath
415$(call gb_LinkTarget__get_installname,$(call gb_Library_get_filename,$(1)),$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Library_get_layer,$(1))))
416endef
417
418define gb_Library_Library_platform
419$(call gb_LinkTarget_get_target,$(2)) : RPATH := $(call gb_Library_get_rpath,$(1))
420$(call gb_LinkTarget_get_target,$(2)) : LAYER := $(call gb_Library_get_layer,$(1))
421$(call gb_Library_get_target,$(1)) \
422$(call gb_Library_get_clean_target,$(1)) : AUXTARGETS += \
423	$(patsubst %.dylib,%.jnilib,$(call gb_Library_get_target,$(1)))
424
425endef
426
427
428# StaticLibrary class
429
430gb_StaticLibrary_DEFS :=
431gb_StaticLibrary_SYSPRE := lib
432gb_StaticLibrary_PLAINEXT := .a
433gb_StaticLibrary_JPEGEXT := lib$(gb_StaticLibrary_PLAINEXT)
434
435gb_StaticLibrary_FILENAMES := \
436	$(foreach lib,$(gb_StaticLibrary_JPEGLIBS),$(lib):$(gb_StaticLibrary_SYSPRE)$(lib)$(gb_StaticLibrary_JPEGEXT)) \
437	$(foreach lib,$(gb_StaticLibrary_PLAINLIBS),$(lib):$(gb_StaticLibrary_SYSPRE)$(lib)$(gb_StaticLibrary_PLAINEXT)) \
438
439gb_StaticLibrary_StaticLibrary_platform =
440
441
442# Executable class
443
444gb_Executable_EXT :=
445gb_Executable_TARGETTYPEFLAGS := -bind_at_load
446
447gb_InBuild_Library_Path := $(OUTDIR)/lib
448gb_Augment_Library_Path := DYLD_LIBRARY_PATH=$(gb_InBuild_Library_Path)
449
450gb_Executable_LAYER := \
451	$(foreach exe,$(gb_Executable_UREBIN),$(exe):UREBIN) \
452	$(foreach exe,$(gb_Executable_SDK),$(exe):SDKBIN) \
453	$(foreach exe,$(gb_Executable_OOO),$(exe):OOO) \
454	$(foreach exe,$(gb_Executable_BRAND),$(exe):BRAND) \
455	$(foreach exe,$(gb_Executable_NONE),$(exe):NONEBIN) \
456
457
458define gb_Executable_get_rpath
459$(call gb_LinkTarget__get_installname,$(1),$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Executable_get_layer,$(1))))
460endef
461
462define gb_Executable_Executable_platform
463$(call gb_LinkTarget_get_target,$(2)) : RPATH := $(call gb_Executable_get_rpath,$(1))
464$(call gb_LinkTarget_get_target,$(2)) : LAYER := $(call gb_Executable_get_layer,$(1))
465
466endef
467
468
469# GoogleTest class
470
471gb_GoogleTest_GTESTPRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib
472gb_GoogleTest_get_filename = $(1)$(gb_Executable_EXT)
473
474define gb_GoogleTest_GoogleTest_platform
475$(call gb_LinkTarget_get_target,$(2)) : RPATH :=
476endef
477
478# JunitTest class
479
480define gb_JunitTest_JunitTest_platform
481$(call gb_JunitTest_get_target,$(1)) : DEFS := \
482	-Dorg.openoffice.test.arg.soffice="$$$${OOO_TEST_SOFFICE:-path:$(SRCDIR)/instsetoo_native/$(INPATH)/Apache_OpenOffice/installed/install/en-US/openoffice4/program/soffice}" \
483    -Dorg.openoffice.test.arg.env=DYLD_LIBRARY_PATH \
484    -Dorg.openoffice.test.arg.user=file://$(call gb_JunitTest_get_userdir,$(1)) \
485
486endef
487
488
489# Ant class
490
491define gb_Ant_add_dependencies
492__ant_out:=$(shell $(gb_Ant_ANTCOMMAND) -v -Ddependencies.outfile=$(WORKDIR)/Ant/$(1)/deps -f $(2) dependencies)
493$$(eval $(foreach dep,$(shell cat $(WORKDIR)/Ant/$(1)/deps),$$(call gb_Ant_add_dependency,$(call gb_Ant_get_target,$(1)),$(dep))))
494
495endef
496
497
498# SdiTarget class
499
500gb_SdiTarget_SVIDLPRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib
501
502# SrsPartMergeTarget
503
504gb_SrsPartMergeTarget_TRANSEXPRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib
505
506# SrsPartTarget class
507
508gb_SrsPartTarget_RSCTARGET := $(OUTDIR)/bin/rsc
509gb_SrsPartTarget_RSCCOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_SrsPartTarget_RSCTARGET)
510
511define gb_SrsPartTarget__command_dep
512$(call gb_Helper_abbreviate_dirs,\
513	$(gb_GCCP) \
514		-MM -MT $(call gb_SrsPartTarget_get_target,$(1)) \
515		$(INCLUDE) \
516		$(DEFS) \
517		-c -x c++-header $(2) \
518		-o $(call gb_SrsPartTarget_get_dep_target,$(1)))
519endef
520
521
522# ComponentTarget
523
524gb_XSLTPROCPRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib
525gb_Library_COMPONENTPREFIXES := \
526    OOO:vnd.sun.star.expand:\dOOO_BASE_DIR/program/ \
527    URELIB:vnd.sun.star.expand:\dURE_INTERNAL_LIB_DIR/ \
528    NONE:vnd.sun.star.expand:\dOOO_INBUILD_SHAREDLIB_DIR/ \
529
530# UnoApiTarget
531
532gb_UnoApiTarget_IDLCTARGET := $(OUTDIR)/bin/idlc
533gb_UnoApiTarget_IDLCCOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_IDLCTARGET)
534gb_UnoApiTarget_REGMERGETARGET := $(OUTDIR)/bin/regmerge
535gb_UnoApiTarget_REGMERGECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_REGMERGETARGET)
536gb_UnoApiTarget_REGCOMPARETARGET := $(OUTDIR)/bin/regcompare
537gb_UnoApiTarget_REGCOMPARECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_REGCOMPARETARGET)
538gb_UnoApiTarget_CPPUMAKERTARGET := $(OUTDIR)/bin/cppumaker
539gb_UnoApiTarget_CPPUMAKERCOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_CPPUMAKERTARGET)
540gb_UnoApiTarget_REGVIEWTARGET := $(OUTDIR)/bin/regview
541gb_UnoApiTarget_REGVIEWCOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_REGVIEWTARGET)
542
543
544# vim: set noet sw=4 ts=4:
545