1 # ORDERING OF HEADERS IS SIGNIFICANT. Don't change this ordering.
2 # It is required to make the combined header ical.h properly.
3 set(COMBINEDHEADERSICAL
4 ${TOPB}/src/libical/icalversion.h
5 ${TOPS}/src/libical/icaltime.h
6 ${TOPS}/src/libical/icalduration.h
7 ${TOPS}/src/libical/icalperiod.h
8 ${TOPS}/src/libical/icalenums.h
9 ${TOPS}/src/libical/icaltypes.h
10 ${TOPS}/src/libical/icalrecur.h
11 ${TOPS}/src/libical/icalattach.h
12 ${TOPB}/src/libical/icalderivedvalue.h
13 ${TOPB}/src/libical/icalderivedparameter.h
14 ${TOPS}/src/libical/icalvalue.h
15 ${TOPS}/src/libical/icalparameter.h
16 ${TOPB}/src/libical/icalderivedproperty.h
17 ${TOPS}/src/libical/icalproperty.h
18 ${TOPS}/src/libical/pvl.h
19 ${TOPS}/src/libical/icalarray.h
20 ${TOPS}/src/libical/icalcomponent.h
21 ${TOPS}/src/libical/icaltimezone.h
22 ${TOPS}/src/libical/icalparser.h
23 ${TOPS}/src/libical/icalmemory.h
24 ${TOPB}/src/libical/icalerror.h
25 ${TOPS}/src/libical/icalrestriction.h
26 ${TOPS}/src/libical/sspm.h
27 ${TOPS}/src/libical/icalmime.h
28 ${TOPS}/src/libical/icallangbind.h
31 FILE(WRITE ${ICAL_FILE_H_FILE} "#ifndef LIBICAL_ICAL_H\n")
32 FILE(APPEND ${ICAL_FILE_H_FILE} "#define LIBICAL_ICAL_H\n")
33 FILE(APPEND ${ICAL_FILE_H_FILE} "#ifdef __cplusplus\n")
34 FILE(APPEND ${ICAL_FILE_H_FILE} "extern \"C\" {\n")
35 FILE(APPEND ${ICAL_FILE_H_FILE} "#endif\n")
37 foreach (_current_FILE ${COMBINEDHEADERSICAL})
38 FILE(READ ${_current_FILE} _contents)
39 STRING(REGEX REPLACE "#include *\"ical.*\\.h\"" "" _contents "${_contents}")
40 STRING(REGEX REPLACE "#include *\"config.*\\.h\"" "" _contents "${_contents}")
41 STRING(REGEX REPLACE "#include *\"pvl\\.h\"" "" _contents "${_contents}" )
42 FILE(APPEND ${ICAL_FILE_H_FILE} "${_contents}")
43 endforeach (_current_FILE)
45 FILE(APPEND ${ICAL_FILE_H_FILE} "\n")
46 FILE(APPEND ${ICAL_FILE_H_FILE} "#ifdef __cplusplus\n")
47 FILE(APPEND ${ICAL_FILE_H_FILE} "}\n")
48 FILE(APPEND ${ICAL_FILE_H_FILE} "#endif\n")
49 FILE(APPEND ${ICAL_FILE_H_FILE} "#endif\n")