set_soenv.in (0bc66fd0) set_soenv.in (1e1ac450)
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

--- 6 unchanged lines hidden (view full) ---

15# Unless required by applicable law or agreed to in writing,
16# software distributed under the License is distributed on an
17# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18# KIND, either express or implied. See the License for the
19# specific language governing permissions and limitations
20# under the License.
21#
22###############################################################
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

--- 6 unchanged lines hidden (view full) ---

15# Unless required by applicable law or agreed to in writing,
16# software distributed under the License is distributed on an
17# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18# KIND, either express or implied. See the License for the
19# specific language governing permissions and limitations
20# under the License.
21#
22###############################################################
23#
24# Program: set_soenv.in
25# Version: $Revision: 1.201 $
26# Date: $Date: 2008-09-05 14:14:29 $
27# Author: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems, Ireland.
28#
23
29#---------------------------------------------------------------------------
24#---------------------------------------------------------------------------
30#---------------------------------------------------------------------------
31# Description:
32# set_soenv generates a file that contains all necessary
33# environment variables for the build proces of OpenOffice
34# on Linux, NetBSD, Solaris, Windows NT and Mac OS X/Darwin.
35#
36# Program steps.
37#
38# I. Checking the command-line arguments.

--- 58 unchanged lines hidden (view full) ---

97 $CYGWIN_PATH, $language, $dict, $ASM_PATH, $NSIS_PATH, $PERL_PATH );
98
99# Environment variables.
100my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAVA_HOME, $JDK, $JAVAFLAGS, $OOO_SHELL,
101 $UPD, $WORK_STAMP, $SOURCE_ROOT_DIR , $gb_REPOS,
102 $SOLARSRC, $DEVROOT, $SOLARVER, $SOLARVERSION, $WORKDIR, $OUTDIR, $SOLARENV,
103 $STAR_INIROOT, $STAR_INIROOTOLD, $STAR_STANDLST, $STAR_SSCOMMON, $STAR_SSOLARINI,
104 $DMAKEROOT, $CLASSPATH, $XCLASSPATH, $COMPATH, $CXX_X64_BINARY, $LINK_X64_BINARY, $LIBMGR_X64_BINARY,
25# Description:
26# set_soenv generates a file that contains all necessary
27# environment variables for the build proces of OpenOffice
28# on Linux, NetBSD, Solaris, Windows NT and Mac OS X/Darwin.
29#
30# Program steps.
31#
32# I. Checking the command-line arguments.

--- 58 unchanged lines hidden (view full) ---

91 $CYGWIN_PATH, $language, $dict, $ASM_PATH, $NSIS_PATH, $PERL_PATH );
92
93# Environment variables.
94my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAVA_HOME, $JDK, $JAVAFLAGS, $OOO_SHELL,
95 $UPD, $WORK_STAMP, $SOURCE_ROOT_DIR , $gb_REPOS,
96 $SOLARSRC, $DEVROOT, $SOLARVER, $SOLARVERSION, $WORKDIR, $OUTDIR, $SOLARENV,
97 $STAR_INIROOT, $STAR_INIROOTOLD, $STAR_STANDLST, $STAR_SSCOMMON, $STAR_SSOLARINI,
98 $DMAKEROOT, $CLASSPATH, $XCLASSPATH, $COMPATH, $CXX_X64_BINARY, $LINK_X64_BINARY, $LIBMGR_X64_BINARY,
105 $MSPDB_PATH, $MIDL_PATH, $CSC_PATH,
99 $MSPDB_PATH, $MIDL_PATH, $CSC_PATH, $SDK_PATH,
106 $PATH, $SOLAREXTRAINC, $SOLAREXTRALIB, $SOLARLIB,
107 $SOLARINC, $LOCALINI, $FRAMEWORKSHOME, $COMEX, $PERL,
108 $COMP_ENV, $ILIB, $JAVAHOME, $PSDK_HOME, $DIRECTXSDK_LIB, $USE_NEW_SDK, $FRAME_HOME,
109 $USE_DIRECTX5, $ATL_LIB, $ATL_LIB_X64, $HAVE_ATLTHUNK, $ATL_INCLUDE, $MFC_LIB, $MFC_INCLUDE, $TMPDIR,
110 $COMMON_BUILD_TOOLS, $WIN_GREP, $WIN_FIND, $WIN_LS,
111 $WIN_GNUCOPY, $WIN_TOUCH, $MOZILLABUILD,
112 $PROEXT, $TARFILE_LOCATION,
113 $ENABLE_HUNSPELL, $ENABLE_HYPHEN,

--- 833 unchanged lines hidden (view full) ---

947
948# YD disable autodetection, use PATH
949if ( $platform =~ m/os2/ )
950{
951 $PERL = 'perl';
952 $PERL_PATH = '';
953}
954
100 $PATH, $SOLAREXTRAINC, $SOLAREXTRALIB, $SOLARLIB,
101 $SOLARINC, $LOCALINI, $FRAMEWORKSHOME, $COMEX, $PERL,
102 $COMP_ENV, $ILIB, $JAVAHOME, $PSDK_HOME, $DIRECTXSDK_LIB, $USE_NEW_SDK, $FRAME_HOME,
103 $USE_DIRECTX5, $ATL_LIB, $ATL_LIB_X64, $HAVE_ATLTHUNK, $ATL_INCLUDE, $MFC_LIB, $MFC_INCLUDE, $TMPDIR,
104 $COMMON_BUILD_TOOLS, $WIN_GREP, $WIN_FIND, $WIN_LS,
105 $WIN_GNUCOPY, $WIN_TOUCH, $MOZILLABUILD,
106 $PROEXT, $TARFILE_LOCATION,
107 $ENABLE_HUNSPELL, $ENABLE_HYPHEN,

--- 833 unchanged lines hidden (view full) ---

941
942# YD disable autodetection, use PATH
943if ( $platform =~ m/os2/ )
944{
945 $PERL = 'perl';
946 $PERL_PATH = '';
947}
948
955# Mac OS X/Darwin only variables.
956if ( $platform =~ m/darwin/ )
957{ $FRAMEWORKSHOME = $ds."Developer".$ds."SDKs".$ds."MacOSX10.4u.sdk".$ds."System".$ds."Library".$ds."Frameworks";
958 if ( $XLIB eq "no_x_libraries" ) {
959 $GUIBASE = "aqua";
960 } else {
961 $GUIBASE = "unx";
962 }
963}
964
965# The project's workstamp.
966$WORK_STAMP = "@SOURCEVERSION@";
967# Location of the source.
968$SOLARSRC = '$SRC_ROOT';
969# Location of the repository.
970my @splitlist = split( /\//, $SRC_ROOT );
971pop @splitlist;
972$SOURCE_ROOT_DIR = join("/", @splitlist);

--- 478 unchanged lines hidden (view full) ---

1451 $I.'$PSDK_HOME'.$INCLUDE;
1452 }
1453 if ( '@ENABLE_DIRECTX@' ne "" ) {
1454 $SOLARINC .= $I.PathFormat('@DIRECTXSDK_HOME@').$INCLUDE;
1455 }
1456}
1457elsif ($platform =~ m/darwin/)
1458{
949# The project's workstamp.
950$WORK_STAMP = "@SOURCEVERSION@";
951# Location of the source.
952$SOLARSRC = '$SRC_ROOT';
953# Location of the repository.
954my @splitlist = split( /\//, $SRC_ROOT );
955pop @splitlist;
956$SOURCE_ROOT_DIR = join("/", @splitlist);

--- 478 unchanged lines hidden (view full) ---

1435 $I.'$PSDK_HOME'.$INCLUDE;
1436 }
1437 if ( '@ENABLE_DIRECTX@' ne "" ) {
1438 $SOLARINC .= $I.PathFormat('@DIRECTXSDK_HOME@').$INCLUDE;
1439 }
1440}
1441elsif ($platform =~ m/darwin/)
1442{
1459 $SOLARINC .= " " . $I.$FRAMEWORKSHOME.$ds."JavaVM.framework".$ds."Headers";
1443 $SDK_PATH = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk";
1444 $FRAMEWORKSHOME = $SDK_PATH."/System/Library/Frameworks";
1445 my $STLINC .= $I."/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1/";
1446 $SOLARINC .= $STLINC . $I.$FRAMEWORKSHOME.$ds."JavaVM.framework".$ds."Headers";
1447 $GUIBASE = "aqua";
1460}
1461else
1462{ AddWarning( "set_soenv", "$platform not configured for system dependant include dir" );
1463}
1464
1465#
1466print "done\n";
1467

--- 185 unchanged lines hidden (view full) ---

1653#
1654# Writing the platform dependent constant values to file.
1655# (c = comment, e = environment variable, a = alias )
1656ToFile( "Platform dependent constant values.", $empty, "c" );
1657ToFile( "SOLAR_JAVA", $SOLAR_JAVA, "e" );
1658ToFile( "BIG_SVX", $BIG_SVX, "e" );
1659ToFile( "COM", $COM, "e" );
1660ToFile( "COMPATH", $COMPATH, "e" );
1448}
1449else
1450{ AddWarning( "set_soenv", "$platform not configured for system dependant include dir" );
1451}
1452
1453#
1454print "done\n";
1455

--- 185 unchanged lines hidden (view full) ---

1641#
1642# Writing the platform dependent constant values to file.
1643# (c = comment, e = environment variable, a = alias )
1644ToFile( "Platform dependent constant values.", $empty, "c" );
1645ToFile( "SOLAR_JAVA", $SOLAR_JAVA, "e" );
1646ToFile( "BIG_SVX", $BIG_SVX, "e" );
1647ToFile( "COM", $COM, "e" );
1648ToFile( "COMPATH", $COMPATH, "e" );
1649ToFile( "CC_PATH", "@CC_PATH@", "e" );
1661ToFile( "CXX_X64_BINARY", $CXX_X64_BINARY, "e" );
1662ToFile( "LINK_X64_BINARY", $LINK_X64_BINARY, "e" );
1663ToFile( "LIBMGR_X64_BINARY", $LIBMGR_X64_BINARY, "e" );
1664ToFile( "CPU", $CPU, "e" );
1665ToFile( "CPUNAME", $CPUNAME, "e" );
1666ToFile( "CVER", $CVER, "e" );
1667ToFile( "GUI", $GUI, "e" );
1668ToFile( "GLIBC", $GLIBC, "e" );

--- 15 unchanged lines hidden (view full) ---

1684ToFile( "ARM_TARGET", "@ARM_TARGET@", "e" );
1685if ( $platform =~ m/darwin/ )
1686{
1687# MAXOSX_DEPLOYMENT_TARGET : The minimum version required to run the build,
1688# build can assume functions/libraries of that version to be available
1689# unless you want to do runtime checks for 10.5 api, you also want to use the 10.7 sdk
1690# (safer/easier than dealing with the MAC_OS_X_VERSION_MAX_ALLOWED macro)
1691# http://developer.apple.com/technotes/tn2002/tn2064.html
1650ToFile( "CXX_X64_BINARY", $CXX_X64_BINARY, "e" );
1651ToFile( "LINK_X64_BINARY", $LINK_X64_BINARY, "e" );
1652ToFile( "LIBMGR_X64_BINARY", $LIBMGR_X64_BINARY, "e" );
1653ToFile( "CPU", $CPU, "e" );
1654ToFile( "CPUNAME", $CPUNAME, "e" );
1655ToFile( "CVER", $CVER, "e" );
1656ToFile( "GUI", $GUI, "e" );
1657ToFile( "GLIBC", $GLIBC, "e" );

--- 15 unchanged lines hidden (view full) ---

1673ToFile( "ARM_TARGET", "@ARM_TARGET@", "e" );
1674if ( $platform =~ m/darwin/ )
1675{
1676# MAXOSX_DEPLOYMENT_TARGET : The minimum version required to run the build,
1677# build can assume functions/libraries of that version to be available
1678# unless you want to do runtime checks for 10.5 api, you also want to use the 10.7 sdk
1679# (safer/easier than dealing with the MAC_OS_X_VERSION_MAX_ALLOWED macro)
1680# http://developer.apple.com/technotes/tn2002/tn2064.html
1692 ToFile( "MACOSX_DEPLOYMENT_TARGET", "10.4", "e" );
1681 ToFile( "MACOSX_DEPLOYMENT_TARGET", "10.7", "e" );
1682 ToFile( "SDK_PATH", $SDK_PATH, "e" );
1693}
1694
1695#
1696# Writing the variables to file.
1697# (c = comment, e = environment variable, a = alias, n = newline )
1698ToFile( "Variable values.", $empty, "c" );
1699if ( $platform =~ m/cygwin/ )
1700{ ToFile( "CYGWIN_PATH", $CYGWIN_PATH, "e" );

--- 965 unchanged lines hidden ---
1683}
1684
1685#
1686# Writing the variables to file.
1687# (c = comment, e = environment variable, a = alias, n = newline )
1688ToFile( "Variable values.", $empty, "c" );
1689if ( $platform =~ m/cygwin/ )
1690{ ToFile( "CYGWIN_PATH", $CYGWIN_PATH, "e" );

--- 965 unchanged lines hidden ---