set_soenv.in (f958b5f1) | set_soenv.in (06f2ef55) |
---|---|
1#!@PERL@ -w 2# 3############################################################### 4# 5# Licensed to the Apache Software Foundation (ASF) under one 6# or more contributor license agreements. See the NOTICE file 7# distributed with this work for additional information 8# regarding copyright ownership. The ASF licenses this file --- 95 unchanged lines hidden (view full) --- 104 $STAR_INIROOT, $STAR_INIROOTOLD, $STAR_STANDLST, $STAR_SSCOMMON, $STAR_SSOLARINI, 105 $DMAKEROOT, $CLASSPATH, $XCLASSPATH, $COMPATH, $CXX_X64_BINARY, $LINK_X64_BINARY, $LIBMGR_X64_BINARY, 106 $MSPDB_PATH, $MIDL_PATH, $CSC_PATH, 107 $PATH, $SOLAREXTRAINC, $SOLAREXTRALIB, $SOLARLIB, 108 $SOLARINC, $LOCALINI, $FRAMEWORKSHOME, $COMEX, $PERL, 109 $COMP_ENV, $ILIB, $JAVAHOME, $PSDK_HOME, $DIRECTXSDK_LIB, $USE_NEW_SDK, $FRAME_HOME, 110 $USE_DIRECTX5, $ATL_LIB, $ATL_LIB_X64, $HAVE_ATLTHUNK, $ATL_INCLUDE, $MFC_LIB, $MFC_INCLUDE, $TMPDIR, 111 $COMMON_BUILD_TOOLS, $WIN_GREP, $WIN_FIND, $WIN_LS, | 1#!@PERL@ -w 2# 3############################################################### 4# 5# Licensed to the Apache Software Foundation (ASF) under one 6# or more contributor license agreements. See the NOTICE file 7# distributed with this work for additional information 8# regarding copyright ownership. The ASF licenses this file --- 95 unchanged lines hidden (view full) --- 104 $STAR_INIROOT, $STAR_INIROOTOLD, $STAR_STANDLST, $STAR_SSCOMMON, $STAR_SSOLARINI, 105 $DMAKEROOT, $CLASSPATH, $XCLASSPATH, $COMPATH, $CXX_X64_BINARY, $LINK_X64_BINARY, $LIBMGR_X64_BINARY, 106 $MSPDB_PATH, $MIDL_PATH, $CSC_PATH, 107 $PATH, $SOLAREXTRAINC, $SOLAREXTRALIB, $SOLARLIB, 108 $SOLARINC, $LOCALINI, $FRAMEWORKSHOME, $COMEX, $PERL, 109 $COMP_ENV, $ILIB, $JAVAHOME, $PSDK_HOME, $DIRECTXSDK_LIB, $USE_NEW_SDK, $FRAME_HOME, 110 $USE_DIRECTX5, $ATL_LIB, $ATL_LIB_X64, $HAVE_ATLTHUNK, $ATL_INCLUDE, $MFC_LIB, $MFC_INCLUDE, $TMPDIR, 111 $COMMON_BUILD_TOOLS, $WIN_GREP, $WIN_FIND, $WIN_LS, |
112 $WIN_GNUCOPY, $WIN_TOUCH, $STLPORT4, $MOZILLA_VERSION, $MOZILLA_TOOLKIT, $PREBUILD_MOZAB, $MOZILLABUILD, | 112 $WIN_GNUCOPY, $WIN_TOUCH, $STLPORT4, $MOZILLABUILD, |
113 $PROEXT, $TARFILE_LOCATION, 114 $ENABLE_HUNSPELL, $ENABLE_HYPHEN, | 113 $PROEXT, $TARFILE_LOCATION, 114 $ENABLE_HUNSPELL, $ENABLE_HYPHEN, |
115 $SYSTEM_PYTHON, $SYSTEM_MOZILLA, $EPM_FLAGS); | 115 $SYSTEM_PYTHON, $EPM_FLAGS); |
116# 117#------------------------------------------- 118# IId. Declaring the aliases. 119#------------------------------------------- 120# 121my ( $dmake, $build, $build_client, $nmake, $mkout, $deliver, $zipdep ); 122# 123 --- 21 unchanged lines hidden (view full) --- 145$L = " -L"; # library search path 146$D = " -D"; # define search path 147$empty = ""; # used as argument 148$no_stl = "NO_STLPORT4"; # possible argument 149$warnfile = "warn"; # logfile configure warnings. 150$Warning = ""; # container for warning messages 151$STLPORT4 = '@STLPORT4@'; # Location of STLport4 152$SYSTEM_PYTHON = '@SYSTEM_PYTHON@'; | 116# 117#------------------------------------------- 118# IId. Declaring the aliases. 119#------------------------------------------- 120# 121my ( $dmake, $build, $build_client, $nmake, $mkout, $deliver, $zipdep ); 122# 123 --- 21 unchanged lines hidden (view full) --- 145$L = " -L"; # library search path 146$D = " -D"; # define search path 147$empty = ""; # used as argument 148$no_stl = "NO_STLPORT4"; # possible argument 149$warnfile = "warn"; # logfile configure warnings. 150$Warning = ""; # container for warning messages 151$STLPORT4 = '@STLPORT4@'; # Location of STLport4 152$SYSTEM_PYTHON = '@SYSTEM_PYTHON@'; |
153$SYSTEM_MOZILLA = '@SYSTEM_MOZILLA@'; | |
154$JDK = '@JDK@'; 155$JAVAFLAGS = '@JAVAFLAGS@'; 156$MINGW = '@WITH_MINGWIN@'; # use MinGW for Windows build 157$USE_MINGW = '@USE_MINGW@'; # use MinGW in cygwin or pure-mingw 158if ( $MINGW eq "yes" ) 159{ $CC = '@CC@'; # C compiler 160 $CXX = '@CXX@'; } # C++ compiler 161else 162{ $CC = PathFormat('@CC@'); # C compiler 163 $CXX = PathFormat('@CXX@'); } # C++ compiler | 153$JDK = '@JDK@'; 154$JAVAFLAGS = '@JAVAFLAGS@'; 155$MINGW = '@WITH_MINGWIN@'; # use MinGW for Windows build 156$USE_MINGW = '@USE_MINGW@'; # use MinGW in cygwin or pure-mingw 157if ( $MINGW eq "yes" ) 158{ $CC = '@CC@'; # C compiler 159 $CXX = '@CXX@'; } # C++ compiler 160else 161{ $CC = PathFormat('@CC@'); # C compiler 162 $CXX = PathFormat('@CXX@'); } # C++ compiler |
164$MOZILLA_VERSION = '@MOZILLA_VERSION@'; # mozilla version to use to build mozilla 165$MOZILLA_TOOLKIT = '@MOZILLA_TOOLKIT@'; # GUI toolkit to use to build mozilla | |
166$FLIPCMD = ""; # Flip '/' to '\' wrapper (only for winnt) 167$GLIBC = ""; # Whether the platform uses glibc 168$PROEXT = "@PROEXT@"; 169$EPM_FLAGS = ""; 170 171# Required for OS/2 macro expansion 172my @unixroot='@unixroot'; 173 --- 691 unchanged lines hidden (view full) --- 865 $STLPORT4 = "$no_stl"; 866} 867 868# ml.exe assembler path for Windows users. 869if ($platform =~ m/cygwin/) 870{ $ASM_PATH = PathFormat('@ASM_HOME@'); 871} 872 | 163$FLIPCMD = ""; # Flip '/' to '\' wrapper (only for winnt) 164$GLIBC = ""; # Whether the platform uses glibc 165$PROEXT = "@PROEXT@"; 166$EPM_FLAGS = ""; 167 168# Required for OS/2 macro expansion 169my @unixroot='@unixroot'; 170 --- 691 unchanged lines hidden (view full) --- 862 $STLPORT4 = "$no_stl"; 863} 864 865# ml.exe assembler path for Windows users. 866if ($platform =~ m/cygwin/) 867{ $ASM_PATH = PathFormat('@ASM_HOME@'); 868} 869 |
873# Check for prebuild mozab libraries if we don't build them # ourselves 874# and we're also not using the external system mozilla installation. | |
875# | 870# |
876# FIXME! This check should be done in configure and not here, but 877# the $OS, $COM, $CPU variables are not yet present there. 878# 879if ( "@WITH_MOZILLA@" eq "YES" and "@BUILD_MOZAB@" ne "TRUE" and "@SYSTEM_MOZILLA@" ne "YES" ) 880{ print("\nChecking for prebuilt Mozilla libraries ..."); 881 my $mozbinfile = $SRC_ROOT."/moz/zipped/"; 882 if ( $^O eq 'MSWin32' ) { 883 chomp( $mozbinfile = qx{cygpath -d "$mozbinfile"} ); 884 } 885 $mozbinfile .= $OS.$COM.$CPU; 886 if ( -e $mozbinfile."inc.zip" 887 and -e $mozbinfile."lib.zip" 888 and -e $mozbinfile."runtime.zip" ) 889 { print " found.\n"; 890 $PREBUILD_MOZAB = "YES"; 891 } 892 else 893 { print " not found!\n\n"; 894 print "If you don\'t use the system mozilla and also not build the needed\n"; 895 print "mozilla libraries yourself you have to provide the needed files\n"; 896 print "$OS$COM$CPU\{inc,lib,runtime\}.zip in moz/zipped/ .\n"; 897 print "These files can be found here:\n"; 898 print " <http://tools.openoffice.org/moz_prebuild/680/>.\n\n"; 899 die; 900 } 901} 902else 903{ 904 $PREBUILD_MOZAB = ""; 905} 906 907# | |
908# E. Determining the envionment values based on the information 909# that was gathered earlier on. 910# 911print "Setting the environment variables... "; 912$USR = $ds."usr"; 913$ETC = $ds."etc"; 914$BIN = $ds."bin"; 915$LIB = $ds."lib"; --- 482 unchanged lines hidden (view full) --- 1398 $L.$USR_LIB; 1399 # [ed] 6/15/02 Add in X11 libraries onto the library path 1400 if ($GUIBASE eq "unx") { 1401 $SOLARLIB .= $L.$XLIB; 1402 } 1403 1404} 1405 | 871# E. Determining the envionment values based on the information 872# that was gathered earlier on. 873# 874print "Setting the environment variables... "; 875$USR = $ds."usr"; 876$ETC = $ds."etc"; 877$BIN = $ds."bin"; 878$LIB = $ds."lib"; --- 482 unchanged lines hidden (view full) --- 1361 $L.$USR_LIB; 1362 # [ed] 6/15/02 Add in X11 libraries onto the library path 1363 if ($GUIBASE eq "unx") { 1364 $SOLARLIB .= $L.$XLIB; 1365 } 1366 1367} 1368 |
1406if ($SYSTEM_MOZILLA eq "YES") 1407{ 1408 $SOLARLIB .= $L."@MOZ_LIB@" 1409} | |
1410 1411# Location of the compiler include search directory paths. 1412$SOLARINC = $I.$cur_dir. 1413 $I.'$SOLARVER'.$ds.'$INPATH'.$INC.$ds."stl". 1414 $I.'$SOLARVER'.$ds.'$INPATH'.$INC.$ds."external". 1415 $I.'$SOLARVER'.$ds.'$INPATH'.$INC. 1416 $I.'$SOLARENV'.$ds.'$OUTPATH'.$INC. 1417 $I.'$SOLARENV'.$INC. --- 236 unchanged lines hidden (view full) --- 1654if ("@ENABLE_WERROR@" eq "FALSE") { 1655ToFile( "EXTERNAL_WARNINGS_NOT_ERRORS", "TRUE", "e" ); 1656} 1657ToFile( "PRODUCT", "@PRODUCT@", "e" ); 1658ToFile( "PROFULLSWITCH", "@PROFULLSWITCH@", "e" ); 1659ToFile( "PROEXT", $PROEXT, "e" ); 1660ToFile( "VALGRIND_CFLAGS", "@VALGRIND_CFLAGS@", "e" ); 1661ToFile( "UNIXWRAPPERNAME", "@UNIXWRAPPERNAME@","e" ); | 1369 1370# Location of the compiler include search directory paths. 1371$SOLARINC = $I.$cur_dir. 1372 $I.'$SOLARVER'.$ds.'$INPATH'.$INC.$ds."stl". 1373 $I.'$SOLARVER'.$ds.'$INPATH'.$INC.$ds."external". 1374 $I.'$SOLARVER'.$ds.'$INPATH'.$INC. 1375 $I.'$SOLARENV'.$ds.'$OUTPATH'.$INC. 1376 $I.'$SOLARENV'.$INC. --- 236 unchanged lines hidden (view full) --- 1613if ("@ENABLE_WERROR@" eq "FALSE") { 1614ToFile( "EXTERNAL_WARNINGS_NOT_ERRORS", "TRUE", "e" ); 1615} 1616ToFile( "PRODUCT", "@PRODUCT@", "e" ); 1617ToFile( "PROFULLSWITCH", "@PROFULLSWITCH@", "e" ); 1618ToFile( "PROEXT", $PROEXT, "e" ); 1619ToFile( "VALGRIND_CFLAGS", "@VALGRIND_CFLAGS@", "e" ); 1620ToFile( "UNIXWRAPPERNAME", "@UNIXWRAPPERNAME@","e" ); |
1662ToFile( "BUILD_MOZAB", "@BUILD_MOZAB@", "e" ); 1663ToFile( "PREBUILD_MOZAB", $PREBUILD_MOZAB, "e" ); 1664ToFile( "MOZILLA_VERSION", $MOZILLA_VERSION, "e" ); 1665ToFile( "DEFAULT_MOZILLA_TOOLKIT", $MOZILLA_TOOLKIT, "e" ); | |
1666ToFile( "ENABLE_NSS_MODULE", "@ENABLE_NSS_MODULE@", "e" ); 1667ToFile( "MOZILLABUILD", "@MOZILLABUILD@", "e" ); 1668ToFile( "BUILD_VER_STRING", "@BUILD_VER_STRING@", "e" ); 1669if ($platform =~ m/linux/ && $platform =~ m/powerpc/) { 1670ToFile( "JITC_PROCESSOR_TYPE","6", "e" ); 1671} 1672ToFile( "DEFAULT_TO_ENGLISH_FOR_PACKING", "yes", "e" ); 1673ToFile( "ENABLE_GTK", "@ENABLE_GTK@", "e" ); --- 207 unchanged lines hidden (view full) --- 1881ToFile( "ENABLE_BUNDLED_DICTIONARIES", "@ENABLE_BUNDLED_DICTIONARIES@", "e"); 1882ToFile( "SYSTEM_DICTS", "@SYSTEM_DICTS@", "e"); 1883ToFile( "DICT_SYSTEM_DIR", "@DICT_SYSTEM_DIR@", "e"); 1884ToFile( "HYPH_SYSTEM_DIR", "@HYPH_SYSTEM_DIR@", "e"); 1885ToFile( "THES_SYSTEM_DIR", "@THES_SYSTEM_DIR@", "e"); 1886ToFile( "ENABLE_LOCKDOWN", "@ENABLE_LOCKDOWN@", "e" ); 1887ToFile( "WITH_LDAP", "@WITH_LDAP@", "e" ); 1888ToFile( "WITH_OPENLDAP", "@WITH_OPENLDAP@", "e" ); | 1621ToFile( "ENABLE_NSS_MODULE", "@ENABLE_NSS_MODULE@", "e" ); 1622ToFile( "MOZILLABUILD", "@MOZILLABUILD@", "e" ); 1623ToFile( "BUILD_VER_STRING", "@BUILD_VER_STRING@", "e" ); 1624if ($platform =~ m/linux/ && $platform =~ m/powerpc/) { 1625ToFile( "JITC_PROCESSOR_TYPE","6", "e" ); 1626} 1627ToFile( "DEFAULT_TO_ENGLISH_FOR_PACKING", "yes", "e" ); 1628ToFile( "ENABLE_GTK", "@ENABLE_GTK@", "e" ); --- 207 unchanged lines hidden (view full) --- 1836ToFile( "ENABLE_BUNDLED_DICTIONARIES", "@ENABLE_BUNDLED_DICTIONARIES@", "e"); 1837ToFile( "SYSTEM_DICTS", "@SYSTEM_DICTS@", "e"); 1838ToFile( "DICT_SYSTEM_DIR", "@DICT_SYSTEM_DIR@", "e"); 1839ToFile( "HYPH_SYSTEM_DIR", "@HYPH_SYSTEM_DIR@", "e"); 1840ToFile( "THES_SYSTEM_DIR", "@THES_SYSTEM_DIR@", "e"); 1841ToFile( "ENABLE_LOCKDOWN", "@ENABLE_LOCKDOWN@", "e" ); 1842ToFile( "WITH_LDAP", "@WITH_LDAP@", "e" ); 1843ToFile( "WITH_OPENLDAP", "@WITH_OPENLDAP@", "e" ); |
1889ToFile( "WITH_MOZILLA", "@WITH_MOZILLA@", "e" ); 1890ToFile( "SYSTEM_MOZILLA", "@SYSTEM_MOZILLA@", "e" ); 1891ToFile( "MOZ_FLAVOUR", "@MOZ_FLAVOUR@", "e" ); 1892ToFile( "NSPR_LIB", "@NSPR_LIB@", "e" ); 1893ToFile( "NSS_LIB", "@NSS_LIB@", "e" ); | |
1894ToFile( "MOZ_INC", "@MOZ_INC@", "e" ); | 1844ToFile( "MOZ_INC", "@MOZ_INC@", "e" ); |
1895ToFile( "MOZ_LIB", "@MOZ_LIB@", "e" ); 1896ToFile( "MOZ_LIB_XPCOM", "@MOZ_LIB_XPCOM@", "e" ); 1897ToFile( "MOZ_NSPR_CFLAGS", "@MOZ_NSPR_CFLAGS@", "e" ); 1898ToFile( "MOZ_NSS_CFLAGS", "@MOZ_NSS_CFLAGS@", "e" ); 1899ToFile( "MOZ_LDAP_CFLAGS", "@MOZ_LDAP_CFLAGS@", "e" ); | |
1900ToFile( "WITH_CATA_FONTS", "@WITH_CATA_FONTS@", "e" ); 1901ToFile( "WITH_CATB_FONTS", "@WITH_CATB_FONTS@", "e" ); 1902ToFile( "WITH_FONTS", "@WITH_FONTS@", "e" ); 1903ToFile( "WITHOUT_AFMS", "@WITHOUT_AFMS@", "e" ); 1904ToFile( "WITHOUT_PPDS", "@WITHOUT_PPDS@", "e" ); 1905ToFile( "BUILD_TYPE", "@BUILD_TYPE@", "e" ); 1906ToFile( "ADDITIONAL_REPOSITORIES", "@ADDITIONAL_REPOSITORIES@", "e" ); 1907ToFile( "VERBOSE", "@VERBOSE@", "e" ); --- 843 unchanged lines hidden --- | 1845ToFile( "WITH_CATA_FONTS", "@WITH_CATA_FONTS@", "e" ); 1846ToFile( "WITH_CATB_FONTS", "@WITH_CATB_FONTS@", "e" ); 1847ToFile( "WITH_FONTS", "@WITH_FONTS@", "e" ); 1848ToFile( "WITHOUT_AFMS", "@WITHOUT_AFMS@", "e" ); 1849ToFile( "WITHOUT_PPDS", "@WITHOUT_PPDS@", "e" ); 1850ToFile( "BUILD_TYPE", "@BUILD_TYPE@", "e" ); 1851ToFile( "ADDITIONAL_REPOSITORIES", "@ADDITIONAL_REPOSITORIES@", "e" ); 1852ToFile( "VERBOSE", "@VERBOSE@", "e" ); --- 843 unchanged lines hidden --- |