1 # Copyright (C) 2016 International Business Machines Corporation
2 # and others. All rights reserved.
4 # Run this script from $ICU_ROOT/src/source/
5 # ~/svn.icu/trunk/src/source$ test/hdrtst/testinternalheaders.sh
12 for file in `ls common/*.h`; do
14 echo '#include "'$file'"' > ht_temp.cpp
;
15 echo 'void noop() {}' >> ht_temp.cpp
;
16 $CXX -c -I common
-O0 ht_temp.cpp
;
19 for file in `ls i18n/*.h`; do
21 echo '#include "'$file'"' > ht_temp.cpp
;
22 echo 'void noop() {}' >> ht_temp.cpp
;
23 $CXX -c -I common
-I i18n
-O0 ht_temp.cpp
;
26 for file in `ls io/*.h`; do
28 echo '#include "'$file'"' > ht_temp.cpp
;
29 echo 'void noop() {}' >> ht_temp.cpp
;
30 $CXX -c -I common
-I i18n
-I io
-O0 ht_temp.cpp
;
33 # layout is deprecated, but layoutex is not.
35 for file in `ls layout/*.h`; do
37 echo '#include "'$file'"' > ht_temp.cpp
;
38 echo 'void noop() {}' >> ht_temp.cpp
;
39 $CXX -c -I common
-I i18n
-I io
-O0 ht_temp.cpp
;
42 # -I . for includes of layout/*.h
43 for file in `ls layoutex/*.h`; do
45 echo '#include "'$file'"' > ht_temp.cpp
;
46 echo 'void noop() {}' >> ht_temp.cpp
;
47 $CXX -c -I common
-I i18n
-I io
-I layout
-I .
-I layoutex
-O0 ht_temp.cpp
;
52 for file in `ls tools/toolutil/*.h`; do
54 echo '#include "'$file'"' > ht_temp.cpp
;
55 echo 'void noop() {}' >> ht_temp.cpp
;
56 $CXX -c -I common
-I i18n
-I io
-I tools
/toolutil
-O0 ht_temp.cpp
;
59 # Exclude tzcode: tools/tzcode/private.h uses an argument "new" in a function declaration.
60 # Markus sent an email to the tz list on 20160307 requesting that it be renamed.
61 # We don't want to patch it, and don't want to spend the time for this script here
62 # to know about C-only header files.
64 for tool
in genccode gencmn gencolusb gennorm2 genren gentest icupkg icuswap pkgdata \
65 genbrk gencfu gencnval gendict genrb gensprep icuinfo makeconv memcheck
; do
66 for file in `ls tools/$tool/*.h`; do
68 echo '#include "'$file'"' > ht_temp.cpp
;
69 echo 'void noop() {}' >> ht_temp.cpp
;
70 $CXX -c -I common
-I i18n
-I io
-I tools
/toolutil
-I tools
/$tool -O0 ht_temp.cpp
;
76 for file in `ls tools/ctestfw/unicode/*.h`; do
78 echo '#include "'$file'"' > ht_temp.cpp
;
79 echo 'void noop() {}' >> ht_temp.cpp
;
80 $CXX -c -I common
-I i18n
-I io
-I tools
/toolutil
-I tools
/ctestfw
-O0 ht_temp.cpp
;
83 # C not C++ for cintltst
84 for file in `ls tools/cintltst/*.h`; do
86 echo '#include "'$file'"' > ht_temp.cpp
;
87 echo 'void noop() {}' >> ht_temp.cpp
;
88 $CC -c -I common
-I i18n
-I io
-I tools
/toolutil
-I tools
/ctestfw
-I test
/cintltst
-O0 ht_temp.cpp
;
91 for test in intltest iotest testmap thaitest
; do
92 for file in `ls test/$test/*.h`; do
94 echo '#include "'$file'"' > ht_temp.cpp
;
95 echo 'void noop() {}' >> ht_temp.cpp
;
96 $CXX -c -I common
-I i18n
-I io
-I tools
/toolutil
-I tools
/ctestfw
-I test
/$test -O0 ht_temp.cpp
;
100 for file in `ls test/letest/*.h`; do
102 echo '#include "'$file'"' > ht_temp.cpp
;
103 echo 'void noop() {}' >> ht_temp.cpp
;
104 $CXX -c -I common
-I i18n
-I io
-I layout
-I .
-I layoutex
-I tools
/toolutil
-I tools
/ctestfw
-I test
/letest
-O0 ht_temp.cpp
;
109 rm ht_temp.cpp ht_temp.o