]> granicus.if.org Git - icu/commitdiff
ICU-13785 Adding dependency information to uconv project to prevent "NMAKE : fatal...
authorJeff Genovy <29107334+jefgen@users.noreply.github.com>
Thu, 24 May 2018 05:54:49 +0000 (05:54 +0000)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Thu, 24 May 2018 05:54:49 +0000 (05:54 +0000)
X-SVN-Rev: 41452

icu4c/source/allinone/allinone.sln
icu4c/source/extra/uconv/makedata.mak

index 62458727b5e71a66511de0931196024db164918e..b2b133053b379eb67fe7c94fa17f7762a2c6bef4 100644 (file)
@@ -116,9 +116,9 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "toolutil", "..\tools\toolut
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "uconv", "..\extra\uconv\uconv.vcxproj", "{DBA4088D-F6F9-4F8F-8820-082A4765C16C}"
        ProjectSection(ProjectDependencies) = postProject
+               {97521D06-EC47-45D4-8BD0-9E16B3F93B2A} = {97521D06-EC47-45D4-8BD0-9E16B3F93B2A}
                {0178B127-6269-407D-B112-93877BB62776} = {0178B127-6269-407D-B112-93877BB62776}
                {73C0A65B-D1F2-4DE1-B3A6-15DAD2C23F3D} = {73C0A65B-D1F2-4DE1-B3A6-15DAD2C23F3D}
-               {D3065ADB-8820-4CC7-9B6C-9510833961A3} = {D3065ADB-8820-4CC7-9B6C-9510833961A3}
                {4C8454FE-81D3-4CA3-9927-29BA96F03DAC} = {4C8454FE-81D3-4CA3-9927-29BA96F03DAC}
        EndProjectSection
 EndProject
index 52d7c4930680fa49f92d5016a35eb8df81e51014..2cc07d61096488ecaed93f105bf234b0e11513a6 100644 (file)
@@ -8,7 +8,7 @@
 # invoke with
 # nmake /f makedata.mak icup=<path_to_icu_instalation> [Debug|Release]
 #
-#      12/10/1999      weiv    Created
+#   12/10/1999  weiv    Created
 
 #If no config, we default to debug
 !IF "$(CFG)" == ""
@@ -38,6 +38,7 @@ CFG=Debug
 !ERROR Can't find path!
 !ENDIF
 !MESSAGE ICU path is $(ICUP)
+
 RESNAME=uconvmsg
 RESDIR=resources
 RESFILES=resfiles.mk
@@ -58,6 +59,16 @@ ICUTOOLS=$(ICUP)\bin
 PATH = $(ICUP)\bin;$(PATH)
 !ENDIF
 
+# Make sure the necessary tools exist before continuing. (This is to prevent cryptic errors from NMAKE).
+!IF !EXISTS($(ICUTOOLS)\pkgdata.exe)
+!MESSAGE Unable to find "$(ICUTOOLS)\pkgdata.exe"
+!ERROR The tool 'pkgdata.exe' does not exist! (Have you built all of ICU yet?).
+!ENDIF
+!IF !EXISTS($(ICUTOOLS)\genrb.exe)
+!MESSAGE Unable to find "$(ICUTOOLS)\genrb.exe"
+!ERROR The tool 'genrb.exe' does not exist! (Have you built all of ICU yet?).
+!ENDIF
+
 # Suffixes for data files
 .SUFFIXES : .ucm .cnv .dll .dat .res .txt .c
 
@@ -81,13 +92,13 @@ OUTPUT = "$(DLL_OUTPUT)\$(RESNAME).lib"
 !ENDIF
 
 ALL : $(OUTPUT)
-       @echo All targets are up to date (mode $(PKGMODE))
+    @echo All targets are up to date (mode $(PKGMODE))
 
 
 # invoke pkgdata - static
 "$(DLL_OUTPUT)\$(RESNAME).lib" : $(RB_FILES) $(RESFILES)
-       @echo Building $(RESNAME).lib
-       @"$(ICUTOOLS)\pkgdata" -f -v -m static -c -p $(RESNAME) -d "$(DLL_OUTPUT)" -s "$(RESDIR)" <<pkgdatain.txt
+    @echo Building $(RESNAME).lib
+    @"$(ICUTOOLS)\pkgdata" -f -v -m static -c -p $(RESNAME) -d "$(DLL_OUTPUT)" -s "$(RESDIR)" <<pkgdatain.txt
 $(RES_FILES:.res =.res
 )
 <<KEEP
@@ -95,14 +106,12 @@ $(RES_FILES:.res =.res
 # This is to remove all the data files
 CLEAN :
     -@erase "$(RB_FILES)"
-       -@erase "$(CFG)\*uconvmsg*.*"
+    -@erase "$(CFG)\*uconvmsg*.*"
     -@"$(ICUTOOLS)\pkgdata" -f --clean -v -m static -c -p $(RESNAME) -d "$(DLL_OUTPUT)" -s "$(RESDIR)" pkgdatain.txt
 
 # Inference rule for creating resource bundles
 {$(RESDIR)}.txt{$(RESDIR)}.res:
-       @echo Making Resource Bundle files
-       "$(ICUTOOLS)\genrb" -s $(@D) -d $(@D) $(?F)
-
+    @echo Making Resource Bundle files
+    "$(ICUTOOLS)\genrb" -s $(@D) -d $(@D) $(?F)
 
 $(RESSRC) : {"$(ICUTOOLS)"}genrb.exe
-