comparison make/common/shared/Sanity.gmk @ 3931:d7034302bc24

Merge
author dholmes
date Tue, 15 Mar 2011 20:00:45 -0400
parents f82a1434bf63 c28f5ac2d5f8
children 54d8193f177b
comparison
equal deleted inserted replaced
69:80a98236d647 70:9c91e63f5838
111 $(EGREP) DISTRIB_RELEASE /etc/lsb-release | $(SED) -e 's@.*DISTRIB_RELEASE=\(.*\)@\1@'; \ 111 $(EGREP) DISTRIB_RELEASE /etc/lsb-release | $(SED) -e 's@.*DISTRIB_RELEASE=\(.*\)@\1@'; \
112 fi) 112 fi)
113 ALSA_INCLUDE=/usr/include/alsa/version.h 113 ALSA_INCLUDE=/usr/include/alsa/version.h
114 ALSA_LIBRARY=/usr/lib/libasound.so 114 ALSA_LIBRARY=/usr/lib/libasound.so
115 _ALSA_VERSION := $(shell $(EGREP) SND_LIB_VERSION_STR $(ALSA_INCLUDE) | \ 115 _ALSA_VERSION := $(shell $(EGREP) SND_LIB_VERSION_STR $(ALSA_INCLUDE) | \
116 $(SED) -e 's@.*\"\(.*\)\".*@\1@' ) 116 $(SED) -e 's@.*"\(.*\)".*@\1@' )
117 ALSA_VERSION := $(call GetVersion,$(_ALSA_VERSION)) 117 ALSA_VERSION := $(call GetVersion,$(_ALSA_VERSION))
118 endif 118 endif
119 119
120 ifeq ($(PLATFORM), windows) 120 ifeq ($(PLATFORM), windows)
121 FREE_SPACE := $(shell $(DF) -kP $(OUTPUTDIR) | $(TAIL) -1 | $(NAWK) '{print $$4;}') 121 FREE_SPACE := $(shell $(DF) -kP $(OUTPUTDIR) | $(TAIL) -1 | $(NAWK) '{print $$4;}')
219 sane-alsa-headers \ 219 sane-alsa-headers \
220 sane-ant_version \ 220 sane-ant_version \
221 sane-zip_version \ 221 sane-zip_version \
222 sane-unzip_version \ 222 sane-unzip_version \
223 sane-msvcrt_path \ 223 sane-msvcrt_path \
224 sane-freetype \ 224 sane-freetype
225 sane-build_modules
226 225
227 ###################################################### 226 ######################################################
228 # check for COPYRIGHT_YEAR variable 227 # check for COPYRIGHT_YEAR variable
229 ###################################################### 228 ######################################################
230 sane-copyrightyear: 229 sane-copyrightyear:
338 ###################################################### 337 ######################################################
339 sane-locale: 338 sane-locale:
340 ifneq ($(PLATFORM), windows) 339 ifneq ($(PLATFORM), windows)
341 @if [ "$(LC_ALL)" != "" -a "$(LC_ALL)" != "C" ]; then \ 340 @if [ "$(LC_ALL)" != "" -a "$(LC_ALL)" != "C" ]; then \
342 $(ECHO) "WARNING: LC_ALL has been set to $(LC_ALL), this can cause build failures. \n" \ 341 $(ECHO) "WARNING: LC_ALL has been set to $(LC_ALL), this can cause build failures. \n" \
343 " Try setting LC_ALL to \"C\". \n" \ 342 " Try setting LC_ALL to 'C'. \n" \
344 "" >> $(WARNING_FILE) ; \ 343 "" >> $(WARNING_FILE) ; \
345 fi 344 fi
346 @if [ "$(LANG)" != "" -a "$(LANG)" != "C" ]; then \ 345 @if [ "$(LANG)" != "" -a "$(LANG)" != "C" ]; then \
347 $(ECHO) "WARNING: LANG has been set to $(LANG), this can cause build failures. \n" \ 346 $(ECHO) "WARNING: LANG has been set to $(LANG), this can cause build failures. \n" \
348 " Try setting LANG to \"C\". \n" \ 347 " Try setting LANG to 'C'. \n" \
349 "" >> $(WARNING_FILE) ; \ 348 "" >> $(WARNING_FILE) ; \
350 fi 349 fi
351 endif 350 endif
352 351
353 ###################################################### 352 ######################################################
836 #do nothing (not OpenJDK) 835 #do nothing (not OpenJDK)
837 sane-freetype: 836 sane-freetype:
838 endif 837 endif
839 838
840 ###################################################### 839 ######################################################
841 # if specified, BUILD_MODULES must contain valid values.
842 ######################################################
843 MODULES_REGEX="all|base|desktop|management|enterprise|misc|tools"
844 sane-build_modules:
845 ifdef BUILD_MODULES
846 @for m in $(BUILD_MODULES) ; do \
847 valid=`$(ECHO) $$m | $(EGREP) $(MODULES_REGEX)`; \
848 if [ "x$$valid" = "x" ] ; then \
849 $(ECHO) "ERROR: $$m set in the BUILD_MODULES variable is invalid.\n" \
850 "" >> $(ERROR_FILE); \
851 fi \
852 done
853 endif
854
855 ######################################################
856 # CUPS_HEADERS_PATH must be valid 840 # CUPS_HEADERS_PATH must be valid
857 ###################################################### 841 ######################################################
858 sane-cups: 842 sane-cups:
859 ifneq ($(PLATFORM), windows) 843 ifneq ($(PLATFORM), windows)
860 @if [ ! -r $(CUPS_HEADERS_PATH)/cups/cups.h ]; then \ 844 @if [ ! -r $(CUPS_HEADERS_PATH)/cups/cups.h ]; then \
1016 " $(MSDEVTOOLS_PATH) \n" \ 1000 " $(MSDEVTOOLS_PATH) \n" \
1017 " and/or check your value of ALT_MSDEVTOOLS_PATH. \n" \ 1001 " and/or check your value of ALT_MSDEVTOOLS_PATH. \n" \
1018 "" >> $(ERROR_FILE) ; \ 1002 "" >> $(ERROR_FILE) ; \
1019 fi 1003 fi
1020 else 1004 else
1021 ifeq ($(wildcard $(REBASE)),)
1022 @$(ECHO) "ERROR: Cannot find the REBASE utility from path: $(REBASE)\n" \
1023 " This is normally obtained from the WINDOWSSDKDIR." \
1024 "" >> $(ERROR_FILE)
1025 endif
1026 ifeq ($(wildcard $(RC)),) 1005 ifeq ($(wildcard $(RC)),)
1027 @$(ECHO) "ERROR: Cannot find the RC utility from path: $(RC)\n" \ 1006 @$(ECHO) "ERROR: Cannot find the RC utility from path: $(RC)\n" \
1028 " This is normally obtained from the WINDOWSSDKDIR." \ 1007 " This is normally obtained from the WINDOWSSDKDIR." \
1029 "" >> $(ERROR_FILE) 1008 "" >> $(ERROR_FILE)
1030 endif 1009 endif
1031 ifeq ($(wildcard $(DUMPBIN)),) 1010 ifeq ($(wildcard $(DUMPBIN)),)
1032 @$(ECHO) "ERROR: Cannot find the DUMPBIN utility from path: $(DUMPBIN)\n" \ 1011 @$(ECHO) "ERROR: Cannot find the DUMPBIN utility from path: $(DUMPBIN)\n" \
1033 " This is normally obtained from the WINDOWSSDKDIR." \ 1012 " This is normally obtained from the COMPILER_PATH." \
1034 "" >> $(ERROR_FILE) 1013 "" >> $(ERROR_FILE)
1035 endif 1014 endif
1036 endif 1015 endif
1037 endif 1016 endif
1038 1017
1135 # exported but do represent VM interfaces used by the rest of the jdk. 1114 # exported but do represent VM interfaces used by the rest of the jdk.
1136 # So these 3 will not be found in a promoted build and can only 1115 # So these 3 will not be found in a promoted build and can only
1137 # be checked when this represents a full control build (i.e. the 1116 # be checked when this represents a full control build (i.e. the
1138 # HOTSPOT_IMPORT_PATH includes these files in it's 'include' directory). 1117 # HOTSPOT_IMPORT_PATH includes these files in it's 'include' directory).
1139 $(TEMPDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h 1118 $(TEMPDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h
1140 @$(install-non-module-file) 1119 @$(install-file)
1141 @$(RM) $@.IMPORT 1120 @$(RM) $@.IMPORT
1142 @if [ -r $(HOTSPOT_IMPORT_PATH)/include/$(@F) ]; then \ 1121 @if [ -r $(HOTSPOT_IMPORT_PATH)/include/$(@F) ]; then \
1143 $(CP) $(HOTSPOT_IMPORT_PATH)/include/$(@F) $@.IMPORT ; \ 1122 $(CP) $(HOTSPOT_IMPORT_PATH)/include/$(@F) $@.IMPORT ; \
1144 elif [ "$(@F)" != "jvm.h" -a "$(@F)" != "jmm.h" ] ; then \ 1123 elif [ "$(@F)" != "jvm.h" -a "$(@F)" != "jmm.h" ] ; then \
1145 $(ECHO) "WARNING: HOTSPOT_IMPORT_PATH does not contain the interface file $(@F). \n" \ 1124 $(ECHO) "WARNING: HOTSPOT_IMPORT_PATH does not contain the interface file $(@F). \n" \
1149 else \ 1128 else \
1150 $(CP) $< $@.IMPORT; \ 1129 $(CP) $< $@.IMPORT; \
1151 fi 1130 fi
1152 1131
1153 $(TEMPDIR)/%.h: $(PLATFORM_SRC)/javavm/export/%.h 1132 $(TEMPDIR)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
1154 @$(install-non-module-file) 1133 @$(install-file)
1155 @$(RM) $@.IMPORT 1134 @$(RM) $@.IMPORT
1156 @if [ -r $(HOTSPOT_IMPORT_PATH)/include/$(PLATFORM_INCLUDE_NAME)/$(@F) ]; then \ 1135 @if [ -r $(HOTSPOT_IMPORT_PATH)/include/$(PLATFORM_INCLUDE_NAME)/$(@F) ]; then \
1157 $(CP) $(HOTSPOT_IMPORT_PATH)/include/$(PLATFORM_INCLUDE_NAME)/$(@F) $@.IMPORT ; \ 1136 $(CP) $(HOTSPOT_IMPORT_PATH)/include/$(PLATFORM_INCLUDE_NAME)/$(@F) $@.IMPORT ; \
1158 elif [ "$(@F)" != "jvm_md.h" ] ; then \ 1137 elif [ "$(@F)" != "jvm_md.h" ] ; then \
1159 $(ECHO) "WARNING: HOTSPOT_IMPORT_PATH does not contain the interface file $(@F). \n" \ 1138 $(ECHO) "WARNING: HOTSPOT_IMPORT_PATH does not contain the interface file $(@F). \n" \
1352 $(ECHO) "ERROR: The Linker version is undefined. \n" \ 1331 $(ECHO) "ERROR: The Linker version is undefined. \n" \
1353 "" >> $(ERROR_FILE) ; \ 1332 "" >> $(ERROR_FILE) ; \
1354 fi 1333 fi
1355 @if [ "$(LINK_CHECK)" != "same" ]; then \ 1334 @if [ "$(LINK_CHECK)" != "same" ]; then \
1356 $(ECHO) "WARNING: To build Java 2 SDK $(JDK_VERSION) you need : \n" \ 1335 $(ECHO) "WARNING: To build Java 2 SDK $(JDK_VERSION) you need : \n" \
1357 " $(REQUIRED_COMPILER_VERSION) - link.exe version \"$(REQUIRED_LINK_VER)\" \n" \ 1336 " $(REQUIRED_COMPILER_VERSION) - link.exe version '$(REQUIRED_LINK_VER)' \n" \
1358 " Specifically the $(REQUIRED_COMPILER_NAME) link.exe. \n " \ 1337 " Specifically the $(REQUIRED_COMPILER_NAME) link.exe. \n " \
1359 " $(YOU_ARE_USING) Linker version \"$(LINK_VER)\" \n" \ 1338 " $(YOU_ARE_USING) Linker version '$(LINK_VER)' \n" \
1360 "" >> $(WARNING_FILE) ; \ 1339 "" >> $(WARNING_FILE) ; \
1361 fi 1340 fi
1362 endif 1341 endif
1363 1342
1364 ###################################################### 1343 ######################################################