xref: /trunk/main/forms/util/makefile.mk (revision fa640925af79b5a9be7c879ba2bddbc09441b03a)
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
24PRJ=..
25PRJNAME=forms
26TARGET=frm
27USE_DEFFILE=TRUE
28
29# --- Settings ----------------------------------
30
31.INCLUDE :  settings.mk
32.INCLUDE: $(PRJ)$/makefile.pmk
33
34# --- Library -----------------------------------
35# --- frm ---------------------------------------
36LIB1TARGET=$(SLB)$/forms.lib
37LIB1FILES=\
38        $(SLB)$/common.lib \
39        $(SLB)$/resource.lib \
40        $(SLB)$/component.lib \
41        $(SLB)$/helper.lib \
42        $(SLB)$/solarcomponent.lib  \
43        $(SLB)$/solarcontrol.lib \
44        $(SLB)$/richtext.lib \
45        $(SLB)$/runtime.lib \
46        $(SLB)$/xforms.lib \
47        $(SLB)$/xformssubmit.lib \
48        $(SLB)$/xformsxpath.lib
49
50SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
51
52.IF "$(OS)$(SYSTEM_LIBXML)"=="MACOSXYES"
53# The macOS shared-library link template (tg_shl.mk) always searches
54# $(SOLARLIB) -- which includes /usr/lib -- before any of this makefile's
55# own libs, and the SDK bundles its own older libxml2 under /usr/lib. A
56# plain "-lxml2" (as pulled in by LIBXML2LIB) resolves to that bundled
57# copy instead of the configured --with-system-libxml one, and it is
58# missing symbols (xmlXPathValuePush, xmlXPathValuePop) that xformsxpath
59# needs. Link the intended libxml2 statically by absolute path so the
60# search order can't shadow it and no dylib needs to be bundled.
61FORMS_LIBXML2LIB:=$(shell xml2-config --prefix)/lib/libxml2.a
62.ELSE
63FORMS_LIBXML2LIB=$(LIBXML2LIB)
64.ENDIF
65
66SHL1STDLIBS= \
67        $(EDITENGLIB) \
68        $(SALLIB) \
69        $(CPPULIB) \
70        $(CPPUHELPERLIB) \
71        $(TOOLSLIB) \
72        $(I18NISOLANGLIB) \
73        $(VCLLIB) \
74        $(SVTOOLLIB) \
75        $(SVLLIB)   \
76        $(TKLIB) \
77        $(SFX2LIB) \
78        $(VOSLIB) \
79        $(UNOTOOLSLIB) \
80        $(COMPHELPERLIB) \
81        $(DBTOOLSLIB) \
82        $(TKLIB) \
83        $(SVXCORELIB) \
84        $(UCBHELPERLIB) \
85        $(FORMS_LIBXML2LIB) \
86        $(ICUUCLIB) \
87        $(ICUINLIB)
88
89SHL1LIBS=$(LIB1TARGET)
90SHL1DEPN=$(LIB1TARGET)  \
91        makefile.mk
92
93
94SHL1VERSIONMAP=$(SOLARENV)/src/component.map
95SHL1DEF=$(MISC)$/$(SHL1TARGET).def
96DEF1NAME=$(SHL1TARGET)
97
98# === .res file ==========================================================
99
100RES1FILELIST=\
101    $(SRS)$/resource.srs \
102
103RESLIB1NAME=$(TARGET)
104RESLIB1SRSFILES=$(RES1FILELIST)
105
106# --- Targets ----------------------------------
107
108.INCLUDE : target.mk
109
110# --- Filter-Datei ---
111
112$(MISC)$/$(SHL1TARGET).flt: makefile.mk
113    @echo ------------------------------
114    @echo __CT                  >$@
115    @echo createRegistryInfo    >>$@
116    @echo queryInterface        >>$@
117    @echo queryAggregation      >>$@
118    @echo NavigationToolBar     >>$@
119    @echo ONavigationBar        >>$@
120
121
122ALLTAR : $(MISC)/frm.component
123
124$(MISC)/frm.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
125        frm.component
126    $(XSLTPROC) --nonet --stringparam uri \
127        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
128        $(SOLARENV)/bin/createcomponent.xslt frm.component
129