Files
loongoffice/Repository.mk
Stephan Bergmann 359472b2b5 Remove *_Test product, so cppunittester can be NONE again
...as per #libreoffice-dev IRC:

Sep 19 10:32:24 <mst__> sberg, moggi  why the hell is that thing named
  "cppunit/cppunittester" and inside a subdir?  it's obstructing my attempt to
  put it in $(INSTDIR)/program
Sep 19 10:33:28 <mst__> (... and if you wonder "wtf does it have to do with
  INSTDIR" you have never heard of awesome LibreOffice_Test installset.... not
  that i would know who needs it :)
Sep 19 10:36:36 <sberg> mst__, it is in a subdir of solver/*/bin so that on
  Windows it would not accidentally have picked DLLs next to itself instead of
  the module-local DLLs it was supposed to test (back when we had module-local
  output trees)
Sep 19 10:37:02 <mst__> sberg, ahh hysteric reasons then, /me renames it
Sep 19 10:37:55 <tml> mst__, if nobody you know uses LibreOffice_Test, just kill
  it?
Sep 19 10:38:59 <sberg> mst__, tml, LibreOffice_Test was conceived by pmladek
  and/or kendy, IIRC
Sep 19 10:40:31 * kendy does not remember anything about it :-)
Sep 19 10:42:17 <sberg> wasn't that something so users (or QA people?) could
  easily run the smoketest against an installation, to see whether the
  installation is any good at all, by installing that LibreOffice_Test alongside
  the installation proper?
Sep 19 10:43:26 <sberg> mst__, ...and I'd unscientifically vote to kill it
Sep 19 11:34:23 <pmladek> mst__, sberg: I have created the LibreOffice_Test
  package for one QA guy. He does not longer work on LO. I am not sure if anyone
  else started to use it. So, I think that it can be killed.

Oct 17 18:18:07 <tml_> sberg: have you ever noticed that when you try to
  actually run instdir/unxmacxi/LibreOfficeDev.app , the system actually tries
  to run cppunittester inside the app bundle (it says so in the crash report)
  (it crashes because cppunittester requires a specialized DYLIB_LIBRARY_PATH
  apparently)
Oct 17 18:19:29 <tml_> I suspect that the system when cppunittester as part of
  the build process is run from inside instdir (i.e. inside an app bundle) the
  system "caches" this false knowledge, and thinks that the executable of the
  app bundle is cppunittester...
Oct 17 18:19:36 <sberg> tml_, no, never noticed; with "run
  instdir/unxmacxi/LibreOfficeDev.app" you mean calling "open
  instdir/unxmacxi/LibreOfficeDev.app"?  (I always call
  .app/Contenst/MacOS/program explicitly)
Oct 17 18:19:52 <tml_> yes, I mean "open instdir/..."
Oct 17 18:20:53 <tml_> some googling tells me that at least years ago, the
  CFBundleExecutable key in the Info.plist is ignored if it is manually changed,
  so I guess similar caching of mapping between an app bundle and which
  executable to actually run happens in this case
Oct 17 18:23:17 <tml_> and last year somebody even claims "And while on Mountain
  Lion, CFBundleExecutable seems to be a no-op", which would be odd, surely
  there must be widely used apps that have several executables inside the MacOS
  directory; how would the system know which one to run when the app is run?
Oct 17 18:24:38 <tml_> hmm, apparently the code that handles this might be open
  source even, http://www.opensource.apple.com/source/CF/CF-744.18/CFBundle.c
Oct 17 18:25:52 <tml_> some mention of "caches" there yes, my guesses might be
  right
Oct 17 18:27:05 <tml_> if I cp -R instdir/unxmacxi/LibreOffice.app foo.app and
  open foo.app, it works fine
Oct 17 18:28:33 <tml_> anyway, I guess it would be cleaner to have cppunittester
  somewhere else even without this problem
Oct 17 18:37:09 <sberg> tml_, yes, IIRC having cppunittester in instdir was a
  misguided mst decision, because that odd LibreOffice_Test product (that
  pmladek said nobody needs any longer anyway) includes it; I think consensus
  was to kill LibreOffice_Test and move cppunittester where all the other NONE
  executables are, but looks like nobody executed
Oct 17 18:37:55 <tml_> ah ok, so mst should know what needs to be done? good, no
  need for me to try to hack this now then
Oct 17 18:38:19 <sberg> tml_, I'll do the cleanup tomorrow, unless somebody
  beats me

This removes smoketest/losmoketest et al along with the *_Test product, as they
seem to not make sense without it anyway.  smoketest/Executable_libtest.mk
appears to be a test that could also be run during the build, and only ended up
in the *_Test product by accident, so I left it untouched for now.

Change-Id: I8024472c909fe0a885eb08ef4d3777f8a9e1f7c8
2013-10-18 14:44:47 +02:00

736 lines
14 KiB
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
$(eval $(call gb_Helper_register_executables,NONE, \
HelpIndexer \
HelpLinker \
bestreversemap \
cfgex \
concat-deps \
cpp \
cppunittester \
$(if $(filter MSC,$(COM)), \
gcc-wrapper \
g++-wrapper \
) \
gencoll_rule \
genconv_dict \
gendict \
genindex_data \
helpex \
idxdict \
langsupport \
$(if $(ENABLE_TELEPATHY),liboapprover) \
$(if $(filter IOS,$(OS)),LibreOffice) \
libtest \
lngconvex \
localize \
makedepend \
mork_helper \
osl_process_child \
pdf2xml \
pdfunzip \
pocheck \
propex \
regsvrex \
rsc \
saxparser \
sp2bv \
svg2odf \
svidl \
stringex \
transex3 \
treex \
uiex \
ulfex \
unoidl-check \
unoidl-read \
unoidl-write \
xrmex \
))
$(eval $(call gb_Helper_register_executables_for_install,SDK,sdk, \
$(if $(filter MSC,$(COM)),climaker) \
cppumaker \
idlc \
javamaker \
regcompare \
$(if $(filter UCPP,$(BUILD_TYPE)),ucpp) \
$(if $(filter ODK,$(BUILD_TYPE)),unoapploader) \
$(if $(filter ODK,$(BUILD_TYPE)),uno-skeletonmaker) \
))
$(eval $(call gb_Helper_register_executables_for_install,OOO,ooo, \
gengal \
))
$(eval $(call gb_Helper_register_executables,OOO, \
$(call gb_Helper_optional,CRASHREP,crashrep) \
gnome-open-url.bin \
$(if $(ENABLE_NPAPI_INTO_BROWSER),nsplugin) \
$(if $(filter-out ANDROID IOS MACOSX WNT,$(OS)),oosplash) \
$(if $(ENABLE_NPAPI_FROM_BROWSER),pluginapp.bin) \
soffice_bin \
spadmin.bin \
$(if $(filter $(GUIBASE)$(ENABLE_GTK),unxTRUE), \
xid-fullscreen-on-all-monitors \
) \
$(if $(filter $(GUIBASE)$(ENABLE_TDE),unxTRUE), \
tdefilepicker \
) \
uri-encode \
$(if $(filter $(GUIBASE)$(ENABLE_KDE),unxTRUE), \
kdefilepicker \
) \
ui-previewer \
$(if $(filter DESKTOP,$(BUILD_TYPE)),unopkg_bin) \
xpdfimport \
$(if $(filter WNT,$(OS)), \
crashrep_com \
odbcconfig \
python \
quickstart \
sbase \
scalc \
sdraw \
senddoc \
simpress \
soffice \
smath \
sweb \
swriter \
unoinfo \
unopkg \
unopkg_com \
) \
))
$(eval $(call gb_Helper_register_executables_for_install,UREBIN,ure,\
$(if $(and $(ENABLE_JAVA),$(filter-out MACOSX WNT,$(OS)),$(filter DESKTOP,$(BUILD_TYPE))),javaldx) \
regmerge \
regview \
$(if $(filter DESKTOP,$(BUILD_TYPE)),uno) \
))
ifeq ($(ENABLE_NPAPI_INTO_BROWSER),TRUE)
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
npsoplugin \
))
endif
ifeq ($(OS),MACOSX)
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_NONE, \
OOoSpotlightImporter \
))
endif
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,base, \
abp \
dbp \
dbu \
))
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,calc, \
analysis \
calc \
date \
pricing \
sc \
scd \
scfilt \
scui \
solver \
$(if $(ENABLE_OPENCL),scopencl) \
$(if $(DISABLE_SCRIPTING),,vbaobj) \
$(if $(ENABLE_TELEPATHY),tubes) \
))
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,graphicfilter, \
svgfilter \
flash \
wpftdraw \
graphicfilter \
))
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,tde, \
$(if $(ENABLE_TDE),tdebe1) \
))
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,impress, \
animcore \
placeware \
PresenterScreen \
PresentationMinimizer \
))
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,onlineupdate, \
updatecheckui \
updchk \
))
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,gnome, \
$(if $(ENABLE_EVOAB2),evoab) \
$(if $(ENABLE_GTK),vclplug_gtk) \
$(if $(ENABLE_GTK3),vclplug_gtk3) \
$(if $(ENABLE_GCONF),gconfbe1) \
$(if $(ENABLE_SYSTRAY_GTK),qstart_gtk) \
$(if $(ENABLE_GIO),losessioninstall) \
$(if $(ENABLE_GIO),ucpgio1) \
$(if $(ENABLE_GNOMEVFS),ucpgvfs1) \
))
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,kde, \
$(if $(ENABLE_KDE),kdebe1) \
$(if $(ENABLE_KDE4),kde4be1) \
))
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,math, \
sm \
smd \
))
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ooo, \
acc \
avmedia \
$(if $(DISABLE_SCRIPTING),,basctl) \
$(if $(DISABLE_SCRIPTING),,basprov) \
basegfx \
bib \
$(if $(ENABLE_CAIRO_CANVAS),cairocanvas) \
canvasfactory \
canvastools \
chartcore \
chartcontroller \
$(if $(filter $(OS),WNT),,cmdmail) \
cppcanvas \
configmgr \
ctl \
cui \
dba \
dbase \
dbmm \
$(if $(DISABLE_DBCONNECTIVITY),,dbtools) \
dbaxml \
deploymentmisc \
$(if $(filter-out MACOSX WNT,$(OS)),desktopbe1) \
$(if $(filter unx,$(GUIBASE)),desktop_detector) \
$(if $(DISABLE_SCRIPTING),,dlgprov) \
$(if $(ENABLE_DIRECTX),directx9canvas) \
$(if $(ENABLE_OPENGL_CANVAS),oglcanvas) \
drawinglayer \
editeng \
egi \
eme \
$(if $(filter WNT,$(OS)),$(if $(DISABLE_ATL),,emser)) \
epb \
epg \
epp \
eps \
ept \
era \
eti \
evtatt \
exp \
expwrap \
fastsax \
flat \
file \
filterconfig \
$(if $(filter $(ENABLE_FIREBIRD_SDBC),TRUE),firebird_sdbc) \
fpicker \
fps_office \
for \
forui \
frm \
fsstorage \
fwe \
fwi \
fwk \
fwl \
fwm \
$(if $(ENABLE_DIRECTX),gdipluscanvas) \
guesslang \
$(if $(filter DESKTOP,$(BUILD_TYPE)),helplinker) \
i18npool \
i18nsearch \
hatchwindowfactory \
hyphen \
icd \
icg \
idx \
ime \
ipb \
ipd \
ips \
ipt \
ipx \
ira \
itg \
iti \
$(if $(ENABLE_JAVA),jdbc) \
$(if $(ENABLE_KAB),kab1) \
$(if $(ENABLE_KAB),kabdrv1) \
ldapbe2 \
localebe1 \
log \
lng \
lnth \
$(if $(filter $(OS),MACOSX),macbe1) \
$(if $(MERGELIBS),merged) \
migrationoo2 \
migrationoo3 \
msfilter \
$(if $(DISABLE_SCRIPTING),,msforms) \
mtfrenderer \
mysql \
odbc \
odbcbase \
odfflatxml \
offacc \
passwordcontainer \
pcr \
$(if $(ENABLE_NPAPI_FROM_BROWSER),pl) \
pdffilter \
$(if $(DISABLE_SCRIPTING),,protocolhandler) \
res \
sax \
sb \
sdbt \
scn \
sd \
sdd \
sdfilt \
sdui \
sfx \
simplecanvas \
slideshow \
sot \
spell \
$(if $(ENABLE_HEADLESS),,spl) \
$(if $(DISABLE_SCRIPTING),,stringresource) \
svgio \
svl \
svt \
svx \
svxcore \
sw \
syssh \
$(if $(ENABLE_TDEAB),tdeab1) \
$(if $(ENABLE_TDEAB),tdeabdrv1) \
textconversiondlgs \
textfd \
tk \
tl \
ucpexpand1 \
ucpext \
ucpcmis1 \
ucptdoc1 \
unordf \
unoxml \
updatefeed \
utl \
uui \
$(if $(DISABLE_SCRIPTING),,vbaevents) \
$(if $(DISABLE_SCRIPTING),,vbahelper) \
vcl \
vclcanvas \
$(if $(and $(filter unx,$(GUIBASE)),$(filter-out MACOSX,$(OS))),vclplug_gen) \
xmlscript \
xmlfa \
xmlfd \
xo \
xof \
xsltdlg \
xsltfilter \
$(if $(filter $(OS),WNT), \
ado \
$(if $(DISABLE_ATL),,oleautobridge) \
smplmail \
wininetbe1 \
$(if $(filter YES,$(WITH_MOZAB4WIN)), \
mozab2 \
mozabdrv \
) \
$(if $(filter NO,$(WITH_MOZAB4WIN)),mozbootstrap) \
) \
$(if $(filter $(OS),WNT),, \
mork \
mozbootstrap \
) \
$(if $(filter $(OS),MACOSX), \
$(if $(ENABLE_MACOSX_SANDBOX),, \
AppleRemote \
) \
fps_aqua \
MacOSXSpell \
) \
))
$(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,writer, \
hwp \
$(if $(ENABLE_LWP),lwpft) \
msword \
swd \
swui \
t602filter \
$(if $(DISABLE_SCRIPTING),,vbaswobj) \
wpftwriter \
writerfilter \
))
$(eval $(call gb_Helper_register_libraries,OOOLIBS, \
adabas \
adabasui \
agg \
$(if $(filter $(OS),ANDROID),, \
basebmp \
) \
communi \
oox \
ooxml \
sdbc \
avmediaQuickTime \
filtertracer \
rpt \
rptui \
rptxml \
simplecm \
spa \
sts \
vclplug_tde \
vclplug_kde \
vclplug_kde4 \
vclplug_svp \
))
ifneq (,$(filter ANDROID IOS,$(OS)))
$(eval $(call gb_Helper_register_libraries,OOOLIBS, \
libotouch \
))
endif
ifeq ($(filter MACOSX WNT,$(OS)),)
$(eval $(call gb_Helper_register_libraries,OOOLIBS, \
spl_unx \
))
endif
# these libraries are packaged in the "Test" instset, in the "program" dir :-/
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
smoketest \
test \
unobootstrapprotector \
unoexceptionprotector \
unotest \
))
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_NONE, \
subsequenttest \
testtools_cppobj \
testtools_bridgetest \
testtools_constructors \
scqahelper \
unowinreg \
))
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_URE,ure, \
affine_uno_uno \
$(if $(ENABLE_JAVA),java_uno) \
$(if $(ENABLE_JAVA),juh) \
$(if $(ENABLE_JAVA),juhx) \
log_uno_uno \
unsafe_uno_uno \
$(if $(URELIBS),urelibs) \
$(if $(filter MSC,$(COM)),$(if $(filter INTEL,$(CPUNAME)),msci,mscx),gcc3)_uno \
$(if $(filter $(OS),WNT), \
uwinapi \
) \
))
$(eval $(call gb_Helper_register_libraries_for_install,PRIVATELIBS_URE,ure, \
acceptor \
binaryurp \
bootstrap \
connector \
introspection \
invocadapt \
invocation \
$(if $(ENABLE_JAVA),javaloader) \
$(if $(ENABLE_JAVA),javavm) \
$(if $(ENABLE_JAVA),jvmaccess) \
$(if $(ENABLE_JAVA),jvmfwk) \
namingservice \
proxyfac \
reflection \
reg \
sal_textenc \
stocservices \
store \
streams \
$(if $(ENABLE_JAVA),sunjavaplugin) \
textinstream \
textoutstream \
unoidl \
uuresolver \
xmlreader \
))
# FIXME fdo#69601
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_NONE, \
$(if $(filter MSC,$(COM)),cli_cppuhelper) \
))
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_URE, \
$(if $(filter MSC,$(COM)),cli_uno) \
getuid \
jpipe \
$(if $(filter WNT,$(OS)),jpipx) \
))
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo, \
$(if $(ENABLE_VLC),avmediavlc) \
$(if $(ENABLE_GSTREAMER),avmediagst) \
$(if $(ENABLE_GSTREAMER_0_10),avmediagst_0_10) \
$(if $(ENABLE_DIRECTX),avmediawin) \
cached1 \
collator_data \
comphelper \
dbpool2 \
deployment \
deploymentgui \
dict_ja \
dict_zh \
embobj \
$(if $(ENABLE_JAVA),hsqldb) \
i18nlangtag \
i18nutil \
index_data \
localedata_en \
localedata_es \
localedata_euro \
localedata_others \
mcnttype \
$(if $(ENABLE_JAVA), \
$(if $(filter $(OS),MACOSX),,officebean) \
) \
$(if $(filter WNT-TRUE,$(OS)-$(DISABLE_ATL)),,emboleobj) \
package2 \
$(if $(DISABLE_SCRIPTING),,scriptframe) \
sdbc2 \
sofficeapp \
srtrs1 \
textconv_dict \
tvhlp1 \
ucb1 \
ucbhelper \
ucpfile1 \
ucpftp1 \
ucpchelp1 \
ucphier1 \
ucppkg1 \
unopkgapp \
xmlsecurity \
xsec_fw \
xstor \
$(if $(filter $(OS),MACOSX), \
macab1 \
macabdrv1 \
) \
$(if $(filter WNT,$(OS)), \
dnd \
dtrans \
fps \
ftransl \
$(if $(ENABLE_JAVA),java_uno_accessbridge) \
$(if $(DISABLE_ATL),,\
inprocserv \
) \
) \
))
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
bluez_bluetooth \
libreoffice \
pyuno \
pyuno_wrapper \
recentfile \
ucpdav1 \
xsec_xmlsec \
$(if $(filter $(OS),ANDROID), \
lo-bootstrap \
) \
))
ifeq ($(OS),WNT)
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,activexbinarytable, \
$(if $(DISABLE_ACTIVEX),,\
regactivex \
) \
))
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooobinarytable, \
$(if $(WINDOWS_SDK_HOME),\
instooofiltmsi \
qslnkmsi \
reg4allmsdoc \
sdqsmsi \
sellangmsi \
sn_tools \
) \
))
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,winexplorerextbinarytable, \
shlxtmsi \
))
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_SHLXTHDL, \
ooofilt \
ooofilt_x64 \
propertyhdl \
propertyhdl_x64 \
shlxthdl \
shlxthdl_x64 \
))
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
fop \
jfregca \
regpatchactivex \
so_activex \
so_activex_x64 \
sysdtrans \
thidxmsi \
))
endif
$(eval $(call gb_Helper_register_libraries,RTVERLIBS, \
cppuhelper \
purpenvhelper \
salhelper \
))
$(eval $(call gb_Helper_register_libraries,OOOLIBS, \
OGLTrans \
pdfimport \
postgresql-sdbc \
postgresql-sdbc-impl \
pythonloader \
))
$(eval $(call gb_Helper_register_libraries,UNOVERLIBS, \
cppu \
sal \
))
$(eval $(call gb_Helper_register_libraries,EXTENSIONLIBS, \
mysqlc \
passive_native \
))
ifeq ($(OS),WNT)
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
xmlsec1 \
))
ifeq ($(COM),MSC)
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
xmlsec1-mscrypto \
))
else
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
xmlsec1-nss \
))
endif
endif
$(eval $(call gb_Helper_register_jars,URE, \
java_uno \
juh \
jurt \
ridl \
testComponent \
unoloader \
))
$(eval $(call gb_Helper_register_jars,OOO, \
ConnectivityTools \
ScriptFramework \
ScriptProviderForBeanShell \
ScriptProviderForJava \
ScriptProviderForJavaScript \
XMergeBridge \
XSLTFilter \
XSLTValidate \
commonwizards \
agenda \
aportisdoc \
fax \
form \
htmlsoff \
java_uno_accessbridge \
letter \
officebean \
pexcel \
pocketword \
query \
report \
reportbuilder \
reportbuilderwizard \
sdbc_hsqldb \
smoketest \
table \
unoil \
web \
xmerge \
))
$(eval $(call gb_Helper_register_jars,OXT, \
EvolutionarySolver \
mediawiki \
nlpsolver \
passive_java \
))
$(eval $(call gb_Helper_register_jars,NONE,\
HelloWorld \
Highlight \
MemoryUsage \
OOoRunner \
OOoRunnerLight \
TestExtension \
test \
test-tools \
))
# External executables
$(eval $(call gb_ExternalExecutable_register_executables,\
genbrk \
genccode \
gencmn \
python \
xmllint \
xsltproc \
))
# vim: set noet sw=4 ts=4: