add --with-system-ucpp

Change-Id: Ic322d1be23033049fa3b5cd60c00479bb6cae3ca
This commit is contained in:
Rene Engelhard
2012-09-27 19:51:33 +02:00
parent 4e6907b5d5
commit c0fb5ed758
11 changed files with 48 additions and 7 deletions

View File

@@ -84,7 +84,9 @@ $(eval $(call gb_Module_add_moduledirs,cross_tail_build,\
translations \
) \
ucbhelper \
ucpp \
$(if $(filter UCPP,$(BUILD_TYPE)),\
ucpp \
) \
udkapi \
udm \
unoil \

View File

@@ -187,7 +187,9 @@ $(eval $(call gb_Module_add_moduledirs,tail_end,\
twain \
ucb \
ucbhelper \
ucpp \
$(if $(filter UCPP,$(BUILD_TYPE)),\
ucpp \
) \
udkapi \
udm \
unixODBC \

View File

@@ -62,7 +62,9 @@ $(eval $(call gb_Helper_register_executables,NONE, \
svidl \
transex3 \
typesconfig \
ucpp \
$(if $(filter UCPP,$(BUILD_TYPE)),\
ucpp \
) \
ulfconv \
ulfex \
xml2cmp \

View File

@@ -594,6 +594,7 @@ export THES_SYSTEM_DIR=@THES_SYSTEM_DIR@
@x_Cygwin@ export TMP=@TMP_DIRECTORY@
export TMPDIR=@TEMP_DIRECTORY@
export TYPO_EXTENSION_PACK=@TYPO_EXTENSION_PACK@
export SYSTEM_UCPP=@SYSTEM_UCPP@
export UNIXWRAPPERNAME=@UNIXWRAPPERNAME@
export UPD=@UPD@
export USE_FT_EMBOLDEN=@USE_FT_EMBOLDEN@

View File

@@ -1383,6 +1383,11 @@ AC_ARG_WITH(system-icu,
[Use icu already on system.]),,
[with_system_icu="$with_system_libs"])
AC_ARG_WITH(system-ucpp,
AS_HELP_STRING([--with-system-ucpp],
[Use ucpp already on system.]),,
[])
AC_ARG_WITH(system-openldap,
AS_HELP_STRING([--with-system-openldap],
[Use the OpenLDAP LDAP SDK already on system.]),,
@@ -6313,6 +6318,16 @@ else
fi
AC_SUBST(BUILD_DMAKE)
AC_MSG_CHECKING([which ucpp tp use])
if test -n "$with_system_ucpp" -a "$with_system_ucpp" != "no"; then
AC_MSG_RESULT([external])
AC_PATH_PROG(SYSTEM_UCPP, ucpp)
else
AC_MSG_RESULT([internal])
BUILD_TYPE="$BUILD_TYPE UCPP"
fi
AC_SUBST(SYSTEM_UCPP)
dnl ===================================================================
dnl Check for epm (not needed for Windows)
dnl ===================================================================

View File

@@ -46,6 +46,13 @@ $(eval $(call gb_Executable_add_scanners,idlc,\
idlc/source/scanner \
))
ifneq (,$(SYSTEM_UCPP))
$(eval $(call gb_Executable_add_defs,idlc,\
-DSYSTEM_UCPP \
-DUCPP=\"file:$(SYSTEM_UCPP)\" \
))
endif
$(eval $(call gb_Executable_add_exception_objects,idlc,\
idlc/source/idlcmain \
idlc/source/idlc \

View File

@@ -1,3 +1,3 @@
ic idlc : ucpp registry NULL
ic idlc : UCPP:ucpp registry NULL
ic idlc usr1 - all ic_mkout NULL
ic idlc\prj nmake - all ic_prj NULL

View File

@@ -299,6 +299,7 @@ sal_Int32 compileFile(const OString * pathname)
OUString cpp;
OUString startDir;
#ifndef SYSTEM_UCPP
if (osl_getExecutableFile(&cpp.pData) != osl_Process_E_None) {
OSL_ASSERT(false);
}
@@ -311,7 +312,9 @@ sal_Int32 compileFile(const OString * pathname)
#else
cpp += OUString( RTL_CONSTASCII_USTRINGPARAM("ucpp"));
#endif
#else // SYSTEM_UCPP
cpp = OUString( RTL_CONSTASCII_USTRINGPARAM(UCPP));
#endif
oslProcess hProcess = NULL;
oslProcessError procError = osl_Process_E_None;

View File

@@ -50,13 +50,17 @@ IDL_CHAPTER_REFS=idl_chapter_refs.txt
EXELIST = \
$(DESTDIRBIN)/cppumaker$(EXEPOSTFIX) \
$(DESTDIRBIN)/regcompare$(EXEPOSTFIX) \
$(DESTDIRBIN)/ucpp$(EXEPOSTFIX) \
$(DESTDIRBIN)/idlc$(EXEPOSTFIX) \
$(DESTDIRBIN)/javamaker$(EXEPOSTFIX) \
$(DESTDIRBIN)/autodoc$(EXEPOSTFIX) \
$(DESTDIRBIN)/unoapploader$(EXEPOSTFIX) \
$(DESTDIRBIN)/uno-skeletonmaker$(EXEPOSTFIX)
.IF "$(SYSTEM_UCPP)" == ""
EXELIST += \
$(DESTDIRBIN)/ucpp$(EXEPOSTFIX)
.ENDIF
.IF "$(GUI)"=="WNT"
EXELIST += \
$(DESTDIRBIN)/climaker$(EXEPOSTFIX)

View File

@@ -43,9 +43,12 @@ if (-d "$StartDir") {
# check binaries
print "check binaries: ";
if (-d "$StartDir/bin") {
my @binarylist = ( "idlc","ucpp","cppumaker","javamaker",
my @binarylist = ( "idlc","cppumaker","javamaker",
"regcompare","autodoc",
"unoapploader", "uno-skeletonmaker" );
if ($ENV{SYSTEM_UCPP} eq "") {
push @binarylist,"ucpp";
}
foreach $i (@binarylist)
{

View File

@@ -30,7 +30,9 @@
gb_UnoApiPartTarget_IDLCTARGET := $(call gb_Executable_get_target_for_build,idlc)
gb_UnoApiPartTarget_IDLCCOMMAND := $(gb_Helper_set_ld_path) SOLARBINDIR=$(OUTDIR_FOR_BUILD)/bin $(gb_UnoApiPartTarget_IDLCTARGET)
ifeq (,$(SYSTEM_UCPP))
gb_UnoApiPartTarget_UCPPTARGET := $(call gb_Executable_get_target_for_build,ucpp)
endif
# The .urd files are actually created by the gb_UnoApiPartTarget__command,
# invoked for the per-directory .done files.