< prev index next >

common/autoconf/toolchain_windows.m4

Print this page




   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 ################################################################################
  27 # The order of these defines the priority by which we try to find them.
  28 VALID_VS_VERSIONS="2013 2012 2010"
  29 
  30 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
  31 VS_VERSION_INTERNAL_2010=100
  32 VS_MSVCR_2010=msvcr100.dll
  33 # We don't use msvcp on Visual Studio 2010
  34 #VS_MSVCP_2010=msvcp100.dll
  35 VS_ENVVAR_2010="VS100COMNTOOLS"
  36 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
  37 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
  38 VS_VS_PLATFORM_NAME_2010="v100"
  39 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
  40 
  41 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
  42 VS_VERSION_INTERNAL_2012=110
  43 VS_MSVCR_2012=msvcr110.dll
  44 VS_MSVCP_2012=msvcp110.dll
  45 VS_ENVVAR_2012="VS110COMNTOOLS"
  46 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
  47 VS_SDK_INSTALLDIR_2012=
  48 VS_VS_PLATFORM_NAME_2012="v110"
  49 VS_SDK_PLATFORM_NAME_2012=
  50 
  51 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
  52 VS_VERSION_INTERNAL_2013=120
  53 VS_MSVCR_2013=msvcr120.dll
  54 VS_MSVCP_2013=msvcp120.dll
  55 VS_ENVVAR_2013="VS120COMNTOOLS"
  56 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
  57 VS_SDK_INSTALLDIR_2013=
  58 VS_VS_PLATFORM_NAME_2013="v120"
  59 VS_SDK_PLATFORM_NAME_2013=
  60 










  61 ################################################################################
  62 
  63 AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],
  64 [
  65   if test "x$VS_ENV_CMD" = x; then
  66     VS_VERSION="$1"
  67     VS_BASE="$2"
  68     METHOD="$3"
  69 
  70     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
  71       VCVARSFILE="vc/bin/vcvars32.bat"
  72     else
  73       VCVARSFILE="vc/bin/amd64/vcvars64.bat"
  74     fi
  75 
  76     BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(VS_BASE)
  77     if test -d "$VS_BASE"; then
  78       if test -f "$VS_BASE/$VCVARSFILE"; then
  79         AC_MSG_NOTICE([Found Visual Studio installation at $VS_BASE using $METHOD])
  80         VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
  81         # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
  82         # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013
  83         eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
  84       else
  85         AC_MSG_NOTICE([Found Visual Studio installation at $VS_BASE using $METHOD])
  86         AC_MSG_NOTICE([Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring])
  87       fi
  88     fi
  89   fi
  90 ])
  91 
  92 ################################################################################
  93 
  94 AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT],
  95 [
  96   if test "x$VS_ENV_CMD" = x; then
  97     VS_VERSION="$1"
  98     WIN_SDK_BASE="$2"
  99     METHOD="$3"
 100     BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(WIN_SDK_BASE)
 101     if test -d "$WIN_SDK_BASE"; then
 102       # There have been cases of partial or broken SDK installations. A missing




   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 ################################################################################
  27 # The order of these defines the priority by which we try to find them.
  28 VALID_VS_VERSIONS="2015 2013 2012 2010"
  29 
  30 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
  31 VS_VERSION_INTERNAL_2010=100
  32 VS_MSVCR_2010=msvcr100.dll
  33 # We don't use msvcp on Visual Studio 2010
  34 #VS_MSVCP_2010=msvcp100.dll
  35 VS_ENVVAR_2010="VS100COMNTOOLS"
  36 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
  37 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
  38 VS_VS_PLATFORM_NAME_2010="v100"
  39 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
  40 
  41 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
  42 VS_VERSION_INTERNAL_2012=110
  43 VS_MSVCR_2012=msvcr110.dll
  44 VS_MSVCP_2012=msvcp110.dll
  45 VS_ENVVAR_2012="VS110COMNTOOLS"
  46 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
  47 VS_SDK_INSTALLDIR_2012=
  48 VS_VS_PLATFORM_NAME_2012="v110"
  49 VS_SDK_PLATFORM_NAME_2012=
  50 
  51 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
  52 VS_VERSION_INTERNAL_2013=120
  53 VS_MSVCR_2013=msvcr120.dll
  54 VS_MSVCP_2013=msvcp120.dll
  55 VS_ENVVAR_2013="VS120COMNTOOLS"
  56 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
  57 VS_SDK_INSTALLDIR_2013=
  58 VS_VS_PLATFORM_NAME_2013="v120"
  59 VS_SDK_PLATFORM_NAME_2013=
  60 
  61 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015"
  62 VS_VERSION_INTERNAL_2015=140
  63 VS_MSVCR_2015=vcruntime140.dll
  64 VS_MSVCP_2015=msvcp140.dll
  65 VS_ENVVAR_2015="VS140COMNTOOLS"
  66 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0"
  67 VS_SDK_INSTALLDIR_2015=
  68 VS_VS_PLATFORM_NAME_2015="v140"
  69 VS_SDK_PLATFORM_NAME_2015=
  70 
  71 ################################################################################
  72 
  73 AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],
  74 [
  75   if test "x$VS_ENV_CMD" = x; then
  76     VS_VERSION="$1"
  77     VS_BASE="$2"
  78     METHOD="$3"
  79 
  80     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
  81       VCVARSFILE="vc/bin/vcvars32.bat"
  82     else
  83       VCVARSFILE="vc/bin/amd64/vcvars64.bat"
  84     fi
  85 
  86     BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(VS_BASE)
  87     if test -d "$VS_BASE"; then
  88       if test -f "$VS_BASE/$VCVARSFILE"; then
  89         AC_MSG_NOTICE([Found Visual Studio installation at $VS_BASE using $METHOD])
  90         VS_ENV_CMD="$VS_BASE/$VCVARSFILE"
  91         # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see
  92         # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110', 'v120' or 'v140' for VS 2010, 2012, 2013 or VS2015
  93         eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}"
  94       else
  95         AC_MSG_NOTICE([Found Visual Studio installation at $VS_BASE using $METHOD])
  96         AC_MSG_NOTICE([Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring])
  97       fi
  98     fi
  99   fi
 100 ])
 101 
 102 ################################################################################
 103 
 104 AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT],
 105 [
 106   if test "x$VS_ENV_CMD" = x; then
 107     VS_VERSION="$1"
 108     WIN_SDK_BASE="$2"
 109     METHOD="$3"
 110     BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(WIN_SDK_BASE)
 111     if test -d "$WIN_SDK_BASE"; then
 112       # There have been cases of partial or broken SDK installations. A missing


< prev index next >