set_soenv.in (1e1ac450) set_soenv.in (61a3a0ff)
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

--- 82 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,
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

--- 82 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,
99 $MSPDB_PATH, $MIDL_PATH, $CSC_PATH, $SDK_PATH,
99 $MSPDB_PATH, $MIDL_PATH, $CSC_PATH, $MACOSX_DEPLOYMENT_TARGET, $MACOSX_SDK_PATH,
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,

--- 1327 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{
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,

--- 1327 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{
1443 $SDK_PATH = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk";
1444 $FRAMEWORKSHOME = $SDK_PATH."/System/Library/Frameworks";
1443 $FRAMEWORKSHOME = "@MACOSX_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";
1448}
1449else
1450{ AddWarning( "set_soenv", "$platform not configured for system dependant include dir" );
1451}
1452

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

1670ToFile( "SET_EXCEPTIONS", $SET_EXCEPTIONS, "e" );
1671ToFile( "use_shl_versions", $use_shl_versions, "e" );
1672ToFile( "FLIPCMD", $FLIPCMD, "e" );
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
1444 my $STLINC .= $I."/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1/";
1445 $SOLARINC .= $STLINC . $I.$FRAMEWORKSHOME.$ds."JavaVM.framework".$ds."Headers";
1446 $GUIBASE = "aqua";
1447}
1448else
1449{ AddWarning( "set_soenv", "$platform not configured for system dependant include dir" );
1450}
1451

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

1669ToFile( "SET_EXCEPTIONS", $SET_EXCEPTIONS, "e" );
1670ToFile( "use_shl_versions", $use_shl_versions, "e" );
1671ToFile( "FLIPCMD", $FLIPCMD, "e" );
1672ToFile( "ARM_TARGET", "@ARM_TARGET@", "e" );
1673if ( $platform =~ m/darwin/ )
1674{
1675# MAXOSX_DEPLOYMENT_TARGET : The minimum version required to run the build,
1676# 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
1677# (safer/easier than dealing with the MAC_OS_X_VERSION_MAX_ALLOWED macro)
1678# http://developer.apple.com/technotes/tn2002/tn2064.html
1681 ToFile( "MACOSX_DEPLOYMENT_TARGET", "10.7", "e" );
1682 ToFile( "SDK_PATH", $SDK_PATH, "e" );
1679 ToFile( "MACOSX_DEPLOYMENT_TARGET", "@MACOSX_DEPLOYMENT_TARGET@", "e" );
1680 ToFile( "MACOSX_SDK_PATH", "@MACOSX_SDK_PATH@", "e" );
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 ---
1681}
1682
1683#
1684# Writing the variables to file.
1685# (c = comment, e = environment variable, a = alias, n = newline )
1686ToFile( "Variable values.", $empty, "c" );
1687if ( $platform =~ m/cygwin/ )
1688{ ToFile( "CYGWIN_PATH", $CYGWIN_PATH, "e" );

--- 965 unchanged lines hidden ---