xref: /aoo42x/main/solenv/gbuild/platform/os2.mk (revision 64c5c8b7)
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
22GUI := OS2
23COM := GCC
24
25# set tmpdir to some mixed case path, suitable for native tools
26#gb_TMPDIR:=$(if $(TMPDIR),$(shell cygpath -m $(TMPDIR)),$(shell cygpath -m /tmp))
27#gb_MKTEMP := mktemp --tmpdir=$(gb_TMPDIR) gbuild.XXXXXX
28gb_MKTEMP := mktemp -t gbuild.XXXXXX
29
30gb_CC := gcc
31gb_CXX := g++
32gb_GCCP := gcc
33gb_LINK := gcc
34gb_AR := emxomfar
35gb_AWK := awk
36gb_CLASSPATHSEP := ;
37gb_RC := wrc
38
39# use CC/CXX if they are nondefaults
40ifneq ($(origin CC),default)
41gb_CC := $(CC)
42gb_GCCP := $(CC)
43endif
44ifneq ($(origin CXX),default)
45gb_CXX := $(CXX)
46endif
47
48# until we get a solution to libc ticket#251, use dmik's -q option.
49EMXOMFOPT = -q
50export EMXOMFOPT
51
52gb_OSDEFS := \
53	-D$(OS) \
54	-D_PTHREADS \
55	-DOS2 \
56	$(PTHREAD_CFLAGS) \
57
58ifeq ($(GXX_INCLUDE_PATH),)
59GXX_INCLUDE_PATH=$(COMPATH)/include/c++/$(shell gcc -dumpversion)
60endif
61
62gb_COMPILERDEFS := \
63	-D$(COM) \
64	-DHAVE_GCC_VISIBILITY_FEATURE \
65	-DCPPU_ENV=gcc3 \
66	-DGXX_INCLUDE_PATH=$(GXX_INCLUDE_PATH) \
67
68gb_CPUDEFS := -DINTEL -D_X86_=1 -DX86
69
70gb_RCDEFS := \
71	-DOS2 \
72	-bt=os2 \
73	-i$(PATH_EMXPGCC)\include \
74
75gb_RCFLAGS := \
76     -V
77
78gb_CFLAGS := \
79	-Zomf \
80	-Wall \
81	-Wendif-labels \
82	-Wextra \
83	-Wshadow \
84	-fmessage-length=0 \
85	-fno-common \
86	-fno-strict-aliasing \
87	-I$(JAVA_HOME)/include \
88	-I$(JAVA_HOME)/include/os2
89
90gb_CXXFLAGS := \
91	-Zomf \
92	-Wall \
93	-Wendif-labels \
94	-Wextra \
95	-Wno-ctor-dtor-privacy \
96	-Wno-non-virtual-dtor \
97	-Wshadow \
98	-fmessage-length=0 \
99	-fno-common \
100	-fno-strict-aliasing \
101	-fno-use-cxa-atexit \
102	-I$(JAVA_HOME)/include \
103	-I$(JAVA_HOME)/include/os2
104
105gb_STDLIBS = \
106	z \
107	stdc++
108
109ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
110gb_CFLAGS_WERROR := -Werror
111gb_CXXFLAGS_WERROR := -Werror
112endif
113
114gb_LinkTarget_EXCEPTIONFLAGS := \
115	-DEXCEPTIONS_ON \
116	-fexceptions \
117	-fno-enforce-eh-specs \
118
119gb_PrecompiledHeader_EXCEPTIONFLAGS := $(gb_LinkTarget_EXCEPTIONFLAGS)
120
121gb_LinkTarget_NOEXCEPTIONFLAGS := \
122	-DEXCEPTIONS_OFF \
123	-fno-exceptions \
124
125gb_NoexPrecompiledHeader_NOEXCEPTIONFLAGS := $(gb_LinkTarget_NOEXCEPTIONFLAGS)
126
127
128gb_LinkTarget_LDFLAGS := \
129	-g -Zomf \
130	-Zhigh-mem \
131	-Zlinker "DISABLE 1121" \
132	-Zmap \
133	$(patsubst %,-LIBPATH:%,$(filter-out .,$(subst ;, ,$(subst \,/,$(ILIB))))) \
134	$(subst -L../lib , ,$(SOLARLIB)) \
135
136ifneq ($(ENABLE_CRASHDUMP),)
137gb_LinkTarget_LDFLAGS += -DEBUG
138gb_CFLAGS+=-Zi
139gb_CXXFLAGS+=-Zi
140endif
141
142ifeq ($(gb_DEBUGLEVEL),2)
143gb_COMPILEROPTFLAGS := -O0
144#gb_LinkTarget_LDFLAGS += -DEBUG
145else
146gb_COMPILEROPTFLAGS := -Os
147endif
148
149gb_COMPILERNOOPTFLAGS := -O0
150
151
152# Helper class
153
154gb_Helper_abbreviate_dirs_native = $(gb_Helper_abbreviate_dirs)
155
156# convert parametters filesystem root to native notation
157# does some real work only on windows, make sure not to
158# break the dummy implementations on unx*
159define gb_Helper_convert_native
160$(1)
161endef
162
163
164# CObject class
165
166# $(call gb_CObject__command,object,relative-source,source,dep-file)
167define gb_CObject__command
168$(call gb_Output_announce,$(2),$(true),C  ,3)
169$(call gb_Helper_abbreviate_dirs,\
170	mkdir -p $(dir $(1)) $(dir $(4)) && \
171	$(gb_CC) \
172		$(DEFS) \
173		$(T_CFLAGS) \
174		-c $(3) \
175		-o $(1) \
176		-MMD -MT $(1) \
177		-MF $(4) \
178		-I$(dir $(3)) \
179		$(INCLUDE))
180endef
181
182
183# CxxObject class
184
185# $(call gb_CxxObject__command,object,relative-source,source,dep-file)
186define gb_CxxObject__command
187$(call gb_Output_announce,$(2),$(true),CXX,3)
188$(call gb_Helper_abbreviate_dirs,\
189	mkdir -p $(dir $(1)) $(dir $(4)) && \
190	$(gb_CXX) \
191		$(DEFS) \
192		$(T_CXXFLAGS) \
193		-c $(3) \
194		-o $(1) \
195		-MMD -MT $(1) \
196		-MF $(4) \
197		-I$(dir $(3)) \
198		$(INCLUDE_STL) $(INCLUDE))
199endef
200
201
202# PrecompiledHeader class
203
204gb_PrecompiledHeader_get_enableflags = -DPRECOMPILED_HEADERS -Yu$(1).hxx \
205									   -Fp$(call gb_PrecompiledHeader_get_target,$(1))
206
207ifeq ($(gb_FULLDEPS),$(true))
208define gb_PrecompiledHeader__command_deponcompile
209$(call gb_Helper_abbreviate_dirs_native,\
210	$(OUTDIR)/bin/makedepend$(gb_Executable_EXT) \
211		$(4) $(5) \
212		-I$(dir $(3)) \
213		$(filter-out -I$(COMPATH)% -I$(JAVA_HOME)%,$(6)) \
214		$(3) \
215		-f - \
216	| $(gb_AWK) -f $(GBUILDDIR)/processdeps.awk \
217		-v OBJECTFILE=$(1) \
218		-v OUTDIR=$(OUTDIR)/ \
219		-v WORKDIR=$(WORKDIR)/ \
220		-v SRCDIR=$(SRCDIR)/ \
221		-v REPODIR=$(REPODIR)/ \
222	> $(call gb_PrecompiledHeader_get_dep_target,$(2)))
223endef
224else
225gb_PrecompiledHeader__command_deponcompile =
226endif
227
228
229define gb_PrecompiledHeader__command
230$(call gb_Output_announce,$(2),$(true),PCH,1)
231$(call gb_Helper_abbreviate_dirs_native,\
232	mkdir -p $(dir $(1)) $(dir $(call gb_PrecompiledHeader_get_dep_target,$(2))) && \
233	unset INCLUDE && \
234	$(gb_CXX) \
235		$(4) $(5) -Fd$(PDBFILE) \
236		-I$(dir $(3)) \
237		$(6) \
238		-c $(3) \
239		-DPRECOMPILED_HEADERS \
240		-Yc$(notdir $(patsubst %.cxx,%.hxx,$(3))) -Fp$(1) -Fo$(1).obj)
241$(call gb_PrecompiledHeader__command_deponcompile,$(1),$(2),$(3),$(4),$(5),$(6))
242endef
243
244# NoexPrecompiledHeader class
245
246gb_NoexPrecompiledHeader_get_enableflags = -Yu$(1).hxx \
247										   -Fp$(call gb_NoexPrecompiledHeader_get_target,$(1))
248
249ifeq ($(gb_FULLDEPS),$(true))
250define gb_NoexPrecompiledHeader__command_deponcompile
251$(call gb_Helper_abbreviate_dirs_native,\
252	$(OUTDIR)/bin/makedepend$(gb_Executable_EXT) \
253		$(4) $(5) \
254		-I$(dir $(3)) \
255		$(filter-out -I$(COMPATH)% -I$(JAVA_HOME)%,$(6)) \
256		$(3) \
257		-f - \
258	| $(gb_AWK) -f $(GBUILDDIR)/processdeps.awk \
259		-v OBJECTFILE=$(1) \
260		-v OUTDIR=$(OUTDIR)/ \
261		-v WORKDIR=$(WORKDIR)/ \
262		-v SRCDIR=$(SRCDIR)/ \
263		-v REPODIR=$(REPODIR)/ \
264	> $(call gb_NoexPrecompiledHeader_get_dep_target,$(2)))
265endef
266else
267gb_NoexPrecompiledHeader__command_deponcompile =
268endif
269
270
271define gb_NoexPrecompiledHeader__command
272$(call gb_Output_announce,$(2),$(true),PCH,1)
273$(call gb_Helper_abbreviate_dirs_native,\
274	mkdir -p $(dir $(1)) $(dir $(call gb_NoexPrecompiledHeader_get_dep_target,$(2))) && \
275	unset INCLUDE && \
276	$(gb_CXX) \
277		$(4) $(5) -Fd$(PDBFILE) \
278		-I$(dir $(3)) \
279		$(6) \
280		-c $(3) \
281		-DPRECOMPILED_HEADERS \
282		-Yc$(notdir $(patsubst %.cxx,%.hxx,$(3))) -Fp$(1) -Fo$(1).obj)
283$(call gb_NoexPrecompiledHeader__command_deponcompile,$(1),$(2),$(3),$(4),$(5),$(6))
284endef
285
286# LinkTarget class
287
288gb_LinkTarget_CFLAGS := $(gb_CFLAGS) $(gb_CFLAGS_WERROR)
289gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) $(gb_CXXFLAGS_WERROR)
290gb_DEBUG_CFLAGS := -g
291
292gb_LinkTarget_INCLUDE :=\
293	$(filter-out %/stl, $(subst -I. , ,$(SOLARINC))) \
294	$(foreach inc,$(subst ;, ,$(JDKINC)),-I$(inc)) \
295
296gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC)))
297
298gb_LinkTarget_get_pdbfile = $(call gb_LinkTarget_get_target,)pdb/$(1).pdb
299
300DLLBASE = $(notdir $(DLLTARGET:.dll=))
301DLLDEF = $(dir $(DLLTARGET))$(DLLBASE).def
302
303define gb_LinkTarget__command_dynamiclinkexecutable
304$(call gb_Output_announce,$(2),$(true),LNK,4)
305$(call gb_Helper_abbreviate_dirs_native,\
306	mkdir -p $(dir $(1)) && \
307	rm -f $(1) && \
308	$(if $(DLLTARGET), echo LIBRARY	$(DLLBASE) INITINSTANCE TERMINSTANCE > $(DLLDEF) &&) \
309	$(if $(DLLTARGET), echo DATA MULTIPLE >> $(DLLDEF) &&) \
310	RESPONSEFILE=$(call var2filecr,$(shell $(gb_MKTEMP)),1, \
311	    $(call gb_Helper_convert_native,$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
312		$(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
313		$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
314		$(PCHOBJS))) && \
315	$(if $(DLLTARGET), echo EXPORTS >> $(DLLDEF) &&) \
316	$(if $(DLLTARGET), emxexp @$${RESPONSEFILE} | fix_exp_file | sort | uniq | fix_def_ord >> $(DLLDEF) &&) \
317	$(gb_LINK) \
318		$(if $(filter Library,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
319		$(if $(filter StaticLibrary,$(TARGETTYPE)),$(gb_StaticLibrary_TARGETTYPEFLAGS)) \
320		$(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \
321		$(T_LDFLAGS) \
322		@$${RESPONSEFILE} \
323		$(if $(DLLTARGET), $(DLLDEF)) \
324		$(NATIVERES) \
325		$(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \
326		$(patsubst %.lib,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \
327		$(patsubst %,-l%,$(EXTERNAL_LIBS)) \
328		$(LIBS) \
329		$(if $(DLLTARGET),-o $(DLLTARGET), -o $(1) ); \
330		RC=$$?; rm $${RESPONSEFILE} \
331	$(if $(DLLTARGET),; emximp -p2048 -o $(1) $(DLLDEF) ) \
332	$(if $(DLLTARGET),; if [ ! -f $(DLLTARGET) ]; then rm -f $(1) && false; fi) ; exit $$RC)
333endef
334
335
336define gb_LinkTarget__command_staticlinklibrary
337$(call gb_Helper_abbreviate_dirs_native,\
338	mkdir -p $(dir $(1)) && \
339	RESPONSEFILE=`$(gb_MKTEMP)` && \
340	echo "$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
341		$(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
342		$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) " > $${RESPONSEFILE} && \
343	$(gb_AR) cru\
344		$(1) \
345		@$${RESPONSEFILE})
346endef
347
348define gb_LinkTarget__command
349$(call gb_Output_announce,$(2),$(true),LNK,4)
350$(if $(filter GoogleTest Executable,$(TARGETTYPE)),$(call gb_LinkTarget__command_dynamiclinkexecutable,$(1),$(2)))
351$(if $(filter Library,$(TARGETTYPE)),$(call gb_LinkTarget__command_dynamiclinkexecutable,$(1),$(2)))
352$(if $(filter StaticLibrary,$(TARGETTYPE)),$(call gb_LinkTarget__command_staticlinklibrary,$(1)))
353endef
354
355
356# Library class
357
358gb_Library_DEFS := -D_DLL_
359gb_Library_TARGETTYPEFLAGS := -Zdll
360gb_Library_get_rpath :=
361
362gb_Library_SYSPRE :=
363gb_Library_PLAINEXT := .lib
364
365gb_Library_PLAINLIBS_NONE += \
366	stdc++ \
367	ft2lib \
368	dl \
369	freetype \
370	m \
371	pthread
372
373gb_Library_LAYER := \
374	$(foreach lib,$(gb_Library_OOOLIBS),$(lib):OOO) \
375	$(foreach lib,$(gb_Library_PLAINLIBS_NONE),$(lib):OOO) \
376	$(foreach lib,$(gb_Library_PLAINLIBS_URE),$(lib):OOO) \
377	$(foreach lib,$(gb_Library_PLAINLIBS_OOO),$(lib):OOO) \
378	$(foreach lib,$(gb_Library_RTLIBS),$(lib):OOO) \
379	$(foreach lib,$(gb_Library_RTVERLIBS),$(lib):OOO) \
380	$(foreach lib,$(gb_Library_STLLIBS),$(lib):OOO) \
381	$(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):OOO) \
382	$(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):OOO) \
383	$(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):OOO) \
384
385gb_Library_FILENAMES :=\
386	$(foreach lib,$(gb_Library_TARGETS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_PLAINEXT))
387
388
389gb_Library_DLLEXT := .dll
390gb_Library_MAJORVER :=
391gb_Library_RTEXT := $(gb_Library_DLLEXT)
392ifeq ($(gb_PRODUCT),$(true))
393gb_Library_STLEXT := stdc++$(gb_Library_DLLEXT)
394else
395gb_Library_STLEXT := stlp45_stldebug$(gb_Library_DLLEXT)
396endif
397gb_Library_OOOEXT := $(gb_Library_DLLEXT)
398gb_Library_UNOEXT := .uno$(gb_Library_DLLEXT)
399gb_Library_UNOVEREXT := $(gb_Library_MAJORVER)$(gb_Library_DLLEXT)
400gb_Library_RTVEREXT := $(gb_Library_MAJORVER)$(gb_Library_RTEXT)
401
402gb_Library_DLLFILENAMES :=\
403	$(foreach lib,$(gb_Library_OOOLIBS),$(lib):$(lib)$(gb_Library_OOOEXT)) \
404	$(foreach lib,$(gb_Library_PLAINLIBS_NONE),$(lib):$(lib)$(gb_Library_DLLEXT)) \
405	$(foreach lib,$(gb_Library_PLAINLIBS_URE),$(lib):$(lib)$(gb_Library_DLLEXT)) \
406	$(foreach lib,$(gb_Library_PLAINLIBS_OOO),$(lib):$(lib)$(gb_Library_DLLEXT)) \
407	$(foreach lib,$(gb_Library_RTLIBS),$(lib):$(lib)$(gb_Library_RTEXT)) \
408	$(foreach lib,$(gb_Library_RTVERLIBS),$(lib):$(lib)$(gb_Library_RTVEREXT)) \
409	$(foreach lib,$(gb_Library_STLLIBS),$(lib):$(lib)$(gb_Library_STLEXT)) \
410	$(foreach lib,$(gb_Library_UNOLIBS_URE),$(lib):$(lib)$(gb_Library_UNOEXT)) \
411	$(foreach lib,$(gb_Library_UNOLIBS_OOO),$(lib):$(lib)$(gb_Library_UNOEXT)) \
412	$(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):$(lib)$(gb_Library_UNOVEREXT)) \
413
414define gb_Library_Library_platform
415$(call gb_LinkTarget_set_dlltarget,$(2),$(3))
416
417#$(call gb_LinkTarget_set_auxtargets,$(2),\
418	$(patsubst %.lib,%.exp,$(call gb_LinkTarget_get_target,$(2))) \
419	$(3).manifest \
420	$(call gb_LinkTarget_get_pdbfile,$(2)) \
421	$(patsubst %.dll,%.pdb,$(3)) \
422	$(patsubst %.dll,%.ilk,$(3)) \
423)
424
425$(call gb_Library_get_target,$(1)) \
426$(call gb_Library_get_clean_target,$(1)) : AUXTARGETS := $(OUTDIR)/bin/$(notdir $(3))
427
428ifneq ($(ENABLE_CRASHDUMP),)
429$(call gb_Library_get_target,$(1)) \
430$(call gb_Library_get_clean_target,$(1)) : AUXTARGETS +=  \
431		$(OUTDIR)/bin/$(notdir $(patsubst %.dll,%.pdb,$(3))) \
432		$(OUTDIR)/bin/$(notdir $(patsubst %.dll,%.ilk,$(3))) \
433
434$(call gb_Deliver_add_deliverable,$(OUTDIR)/bin/$(notdir $(patsubst %.dll,%.pdb,$(3))),$(patsubst %.dll,%.pdb,$(3)),$(1))
435$(call gb_Deliver_add_deliverable,$(OUTDIR)/bin/$(notdir $(patsubst %.dll,%.ilk,$(3))),$(patsubst %.dll,%.ilk,$(3)),$(1))
436endif
437
438$(call gb_Deliver_add_deliverable,$(OUTDIR)/bin/$(notdir $(3)),$(3),$(1))
439
440$(call gb_LinkTarget_get_target,$(2)) \
441$(call gb_LinkTarget_get_headers_target,$(2)) : PDBFILE = $(call gb_LinkTarget_get_pdbfile,$(2))
442
443endef
444
445define gb_Library_add_default_nativeres_DISABLED
446$(call gb_WinResTarget_WinResTarget_init,$(1)/$(2))
447$(call gb_WinResTarget_add_file,$(1)/$(2),solenv/inc/shlinfo)
448$(call gb_WinResTarget_set_defs,$(1)/$(2),\
449        $$(DEFS) \
450		-DADDITIONAL_VERINFO1 \
451		-DADDITIONAL_VERINFO2 \
452		-DADDITIONAL_VERINFO3 \
453)
454$(call gb_Library_add_nativeres,$(1),$(2))
455$(call gb_Library_get_clean_target,$(1)) : $(call gb_WinResTarget_get_clean_target,$(1)/$(2))
456
457endef
458
459define gb_Library_add_nativeres
460$(call gb_LinkTarget_get_target,$(call gb_Library__get_linktargetname,$(1))) : $(call gb_WinResTarget_get_target,$(1)/$(2))
461$(call gb_LinkTarget_get_target,$(call gb_Library__get_linktargetname,$(1))) : NATIVERES += $(call gb_WinResTarget_get_target,$(1)/$(2))
462
463endef
464
465define gb_Library_get_dllname
466$(patsubst $(1):%,%,$(filter $(1):%,$(gb_Library_DLLFILENAMES)))
467endef
468
469
470# StaticLibrary class
471
472gb_StaticLibrary_DEFS :=
473gb_StaticLibrary_SYSPRE :=
474gb_StaticLibrary_PLAINEXT := .lib
475gb_StaticLibrary_JPEGEXT := lib$(gb_StaticLibrary_PLAINEXT)
476
477gb_StaticLibrary_FILENAMES := \
478	$(foreach lib,$(gb_StaticLibrary_JPEGLIBS),$(lib):$(gb_StaticLibrary_SYSPRE)$(lib)$(gb_StaticLibrary_JPEGEXT)) \
479	$(foreach lib,$(gb_StaticLibrary_PLAINLIBS),$(lib):$(gb_StaticLibrary_SYSPRE)$(lib)$(gb_StaticLibrary_PLAINEXT)) \
480
481gb_StaticLibrary_StaticLibrary_platform =
482
483
484# Executable class
485
486gb_Executable_EXT := .exe
487gb_Executable_TARGETTYPEFLAGS :=
488#-RELEASE -BASE:0x1b000000 -OPT:NOREF -INCREMENTAL:NO -DEBUG
489gb_Executable_get_rpath :=
490
491define gb_Executable_Executable_platform
492#$(call gb_LinkTarget_set_auxtargets,$(2),\
493#	$(patsubst %.exe,%.pdb,$(call gb_LinkTarget_get_target,$(2))) \
494#	$(call gb_LinkTarget_get_pdbfile,$(2)) \
495#	$(call gb_LinkTarget_get_target,$(2)).manifest \
496#)
497
498#$(call gb_Executable_get_target,$(1)) \
499#$(call gb_Executable_get_clean_target,$(1)) : AUXTARGETS := $(call gb_Executable_get_target,$(1)).manifest
500#$(call gb_Deliver_add_deliverable,$(call gb_Executable_get_target,$(1)).manifest,$(call gb_LinkTarget_get_target,$(2)).manifest,$(1))
501
502#$(call gb_LinkTarget_get_target,$(2)) \
503#$(call gb_LinkTarget_get_headers_target,$(2)) : PDBFILE = $(call gb_LinkTarget_get_pdbfile,$(2))
504
505endef
506
507# GoogleTest class
508
509gb_GoogleTest_GTESTPRECOMMAND := PATH="$${PATH}:$(OUTDIR)/bin"
510gb_GoogleTest_get_filename = $(1)$(gb_Executable_EXT)
511
512define gb_GoogleTest_GoogleTest_platform
513endef
514
515# JunitTest class
516
517define gb_JunitTest_JunitTest_platform
518$(call gb_JunitTest_get_target,$(1)) : DEFS := \
519	-Dorg.openoffice.test.arg.soffice="$$$${OOO_TEST_SOFFICE:-path:$(SRCDIR)/instsetoo_native/$(INPATH)/Apache_OpenOffice/installed/install/en-US/OpenOffice 4/program/soffice.exe}" \
520    -Dorg.openoffice.test.arg.env=PATH \
521    -Dorg.openoffice.test.arg.user=file:///$(call gb_JunitTest_get_userdir,$(1)) \
522
523endef
524
525
526# SdiTarget class
527
528gb_SdiTarget_SVIDLPRECOMMAND := PATH="$${PATH}:$(OUTDIR)/bin"
529
530# SrsPartMergeTarget
531
532gb_SrsPartMergeTarget_TRANSEXPRECOMMAND := PATH="$${PATH}:$(OUTDIR)/bin"
533
534# SrsPartTarget class
535
536gb_SrsPartTarget_RSCTARGET := $(OUTDIR)/bin/rsc.exe
537gb_SrsPartTarget_RSCCOMMAND := SOLARBINDIR=$(OUTDIR)/bin $(gb_SrsPartTarget_RSCTARGET)
538
539ifeq ($(gb_FULLDEPS),$(true))
540define gb_SrsPartTarget__command_dep
541$(call gb_Helper_abbreviate_dirs_native,\
542	$(OUTDIR)/bin/makedepend$(gb_Executable_EXT) \
543		$(INCLUDE) \
544		$(DEFS) \
545		$(2) \
546		-f - \
547	| $(gb_AWK) -f $(GBUILDDIR)/processdeps.awk \
548		-v OBJECTFILE=$(call gb_SrsPartTarget_get_target,$(1)) \
549		-v OUTDIR=$(OUTDIR)/ \
550		-v WORKDIR=$(WORKDIR)/ \
551		-v SRCDIR=$(SRCDIR)/ \
552		-v REPODIR=$(REPODIR)/ \
553	> $(call gb_SrsPartTarget_get_dep_target,$(1)))
554endef
555else
556gb_SrsPartTarget__command_dep =
557endif
558
559# WinResTarget class
560
561gb_WinResTarget_POSTFIX :=.res
562
563define gb_WinResTarget__command
564$(call gb_Output_announce,$(2),$(true),RES,3)
565$(call gb_Helper_abbreviate_dirs_native,\
566	mkdir -p $(dir $(1)) && \
567	$(gb_RC) \
568		$(DEFS) $(FLAGS) \
569		-I$(dir $(3)) \
570		$(INCLUDE) \
571		-fo=$(1) \
572        -r $(RCFILE) )
573endef
574
575$(eval $(call gb_Helper_make_dep_targets,\
576	WinResTarget \
577))
578
579ifeq ($(gb_FULLDEPS),$(true))
580define gb_WinResTarget__command_dep
581$(call gb_Helper_abbreviate_dirs_native,\
582	$(OUTDIR)/bin/makedepend$(gb_Executable_EXT) \
583		$(INCLUDE) \
584		$(DEFS) \
585		$(2) \
586		-f - \
587	| $(gb_AWK) -f $(GBUILDDIR)/processdeps.awk \
588		-v OBJECTFILE=$(call gb_WinResTarget_get_target,$(1)) \
589		-v OUTDIR=$(OUTDIR)/ \
590		-v WORKDIR=$(WORKDIR)/ \
591		-v SRCDIR=$(SRCDIR)/ \
592		-v REPODIR=$(REPODIR)/ \
593	> $(call gb_WinResTarget_get_dep_target,$(1)))
594endef
595else
596gb_WinResTarget__command_dep =
597endif
598
599# ComponentTarget
600
601gb_XSLTPROCPRECOMMAND := PATH="$${PATH}:$(OUTDIR)/bin"
602gb_Library_COMPONENTPREFIXES := \
603    OOO:vnd.sun.star.expand:\dOOO_BASE_DIR/program/ \
604    URELIB:vnd.sun.star.expand:\dURE_INTERNAL_LIB_DIR/ \
605    NONE:vnd.sun.star.expand:\dOOO_INBUILD_SHAREDLIB_DIR/ \
606
607# UnoApiTarget
608
609gb_UnoApiTarget_IDLCTARGET := $(OUTDIR)/bin/idlc.exe
610gb_UnoApiTarget_IDLCCOMMAND := SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_IDLCTARGET)
611gb_UnoApiTarget_REGMERGETARGET := $(OUTDIR)/bin/regmerge.exe
612gb_UnoApiTarget_REGMERGECOMMAND := SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_REGMERGETARGET)
613gb_UnoApiTarget_REGCOMPARETARGET := $(OUTDIR)/bin/regcompare.exe
614gb_UnoApiTarget_REGCOMPARECOMMAND := SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_REGCOMPARETARGET)
615gb_UnoApiTarget_CPPUMAKERTARGET := $(OUTDIR)/bin/cppumaker.exe
616gb_UnoApiTarget_CPPUMAKERCOMMAND := SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_CPPUMAKERTARGET)
617gb_UnoApiTarget_REGVIEWTARGET := $(OUTDIR)/bin/regview.exe
618gb_UnoApiTarget_REGVIEWCOMMAND := SOLARBINDIR=$(OUTDIR)/bin $(gb_UnoApiTarget_REGVIEWTARGET)
619
620# vim: set noet sw=4 ts=4:
621