Browse Source

Generate automatically public headers for windows

merge-experiment
Hoa V. Dinh 8 years ago
parent
commit
e1cdd29d97
3 changed files with 52 additions and 43 deletions
  1. +20
    -43
      build-windows/build_headers.list
  2. +31
    -0
      build-windows/gen-public-headers.sh
  3. +1
    -0
      configure.ac

+ 20
- 43
build-windows/build_headers.list View File

@ -1,15 +1,8 @@
libetpan-config.h
libetpan_version.h
..\src\data-types\base64.h
..\src\data-types\carray.h
..\src\data-types\charconv.h
..\src\data-types\chash.h
..\src\data-types\clist.h
..\src\data-types\connect.h
..\src\data-types\hmac-md5.h
..\src\data-types\mail.h
..\src\data-types\maillock.h
..\src\data-types\mailsasl.h
..\src\data-types\mailsem.h
..\src\data-types\mailstream.h
..\src\data-types\mailstream_cfstream.h
@ -18,12 +11,7 @@ libetpan_version.h
..\src\data-types\mailstream_socket.h
..\src\data-types\mailstream_ssl.h
..\src\data-types\mailstream_types.h
..\src\data-types\mail_cache_db.h
..\src\data-types\mail_cache_db_types.h
..\src\data-types\md5.h
..\src\data-types\md5global.h
..\src\data-types\mmapstring.h
..\src\data-types\timeutils.h
..\src\driver\implementation\data-message\data_message_driver.h
..\src\driver\implementation\db\dbdriver.h
..\src\driver\implementation\db\dbdriver_message.h
@ -38,28 +26,24 @@ libetpan_version.h
..\src\driver\implementation\imap\imapdriver_cached.h
..\src\driver\implementation\imap\imapdriver_cached_message.h
..\src\driver\implementation\imap\imapdriver_message.h
..\src\driver\implementation\imap\imapdriver_tools.h
..\src\driver\implementation\imap\imapdriver_types.h
..\src\driver\implementation\imap\imapstorage.h
..\src\driver\implementation\maildir\maildirdriver.h
..\src\driver\implementation\maildir\maildirdriver_cached.h
..\src\driver\implementation\maildir\maildirdriver_cached_message.h
..\src\driver\implementation\maildir\maildirdriver_message.h
..\src\driver\implementation\maildir\maildirdriver_tools.h
..\src\driver\implementation\maildir\maildirdriver_types.h
..\src\driver\implementation\maildir\maildirstorage.h
..\src\driver\implementation\mbox\mboxdriver.h
..\src\driver\implementation\mbox\mboxdriver_cached.h
..\src\driver\implementation\mbox\mboxdriver_cached_message.h
..\src\driver\implementation\mbox\mboxdriver_message.h
..\src\driver\implementation\mbox\mboxdriver_tools.h
..\src\driver\implementation\mbox\mboxdriver_types.h
..\src\driver\implementation\mbox\mboxstorage.h
..\src\driver\implementation\mh\mhdriver.h
..\src\driver\implementation\mh\mhdriver_cached.h
..\src\driver\implementation\mh\mhdriver_cached_message.h
..\src\driver\implementation\mh\mhdriver_message.h
..\src\driver\implementation\mh\mhdriver_tools.h
..\src\driver\implementation\mh\mhdriver_types.h
..\src\driver\implementation\mh\mhstorage.h
..\src\driver\implementation\mime-message\mime_message_driver.h
@ -67,31 +51,24 @@ libetpan_version.h
..\src\driver\implementation\nntp\nntpdriver_cached.h
..\src\driver\implementation\nntp\nntpdriver_cached_message.h
..\src\driver\implementation\nntp\nntpdriver_message.h
..\src\driver\implementation\nntp\nntpdriver_tools.h
..\src\driver\implementation\nntp\nntpdriver_types.h
..\src\driver\implementation\nntp\nntpstorage.h
..\src\driver\implementation\pop3\pop3driver.h
..\src\driver\implementation\pop3\pop3driver_cached.h
..\src\driver\implementation\pop3\pop3driver_cached_message.h
..\src\driver\implementation\pop3\pop3driver_message.h
..\src\driver\implementation\pop3\pop3driver_tools.h
..\src\driver\implementation\pop3\pop3driver_types.h
..\src\driver\implementation\pop3\pop3storage.h
..\src\driver\interface\maildriver.h
..\src\driver\interface\maildriver_errors.h
..\src\driver\interface\maildriver_tools.h
..\src\driver\interface\maildriver_types.h
..\src\driver\interface\maildriver_types_helper.h
..\src\driver\interface\mailfolder.h
..\src\driver\interface\mailmessage.h
..\src\driver\interface\mailmessage_tools.h
..\src\driver\interface\mailmessage_types.h
..\src\driver\interface\mailstorage.h
..\src\driver\interface\mailstorage_tools.h
..\src\driver\interface\mailstorage_types.h
..\src\driver\tools\generic_cache.h
..\src\driver\tools\generic_cache_types.h
..\src\driver\tools\imfcache.h
..\src\driver\tools\mailthread.h
..\src\driver\tools\mailthread_types.h
..\src\engine\mailengine.h
@ -104,51 +81,49 @@ libetpan_version.h
..\src\low-level\feed\newsfeed_item.h
..\src\low-level\feed\newsfeed_item_enclosure.h
..\src\low-level\feed\newsfeed_types.h
..\src\low-level\imap\acl.h
..\src\low-level\imap\acl_types.h
..\src\low-level\imap\annotatemore.h
..\src\low-level\imap\annotatemore_types.h
..\src\low-level\imap\condstore.h
..\src\low-level\imap\condstore_types.h
..\src\low-level\imap\enable.h
..\src\low-level\imap\idle.h
..\src\low-level\imap\mailimap.h
..\src\low-level\imap\mailimap_compress.h
..\src\low-level\imap\mailimap_extension.h
..\src\low-level\imap\mailimap_extension_types.h
..\src\low-level\imap\mailimap_helper.h
..\src\low-level\imap\mailimap_keywords.h
..\src\low-level\imap\mailimap_id.h
..\src\low-level\imap\mailimap_id_types.h
..\src\low-level\imap\mailimap_oauth2.h
..\src\low-level\imap\mailimap_parser.h
..\src\low-level\imap\mailimap_print.h
..\src\low-level\imap\mailimap_sender.h
..\src\low-level\imap\mailimap_socket.h
..\src\low-level\imap\mailimap_sort.h
..\src\low-level\imap\mailimap_sort_types.h
..\src\low-level\imap\mailimap_ssl.h
..\src\low-level\imap\mailimap_types.h
..\src\low-level\imap\mailimap_types_helper.h
..\src\low-level\imap\mailimap_extension.h
..\src\low-level\imap\mailimap_extension_types.h
..\src\low-level\imap\annotatemore.h
..\src\low-level\imap\annotatemore_parser.h
..\src\low-level\imap\annotatemore_sender.h
..\src\low-level\imap\annotatemore_types.h
..\src\low-level\imap\acl.h
..\src\low-level\imap\acl_parser.h
..\src\low-level\imap\acl_types.h
..\src\low-level\imap\acl_sender.h
..\src\low-level\imap\namespace.h
..\src\low-level\imap\namespace_types.h
..\src\low-level\imap\qresync.h
..\src\low-level\imap\qresync_types.h
..\src\low-level\imap\quota.h
..\src\low-level\imap\quota_types.h
..\src\low-level\imap\uidplus.h
..\src\low-level\imap\uidplus_parser.h
..\src\low-level\imap\uidplus_sender.h
..\src\low-level\imap\uidplus_types.h
..\src\low-level\imap\xgmlabels.h
..\src\low-level\imap\xgmmsgid.h
..\src\low-level\imap\xgmthrid.h
..\src\low-level\imap\xlist.h
..\src\low-level\imf\mailimf.h
..\src\low-level\imf\mailimf_types.h
..\src\low-level\imf\mailimf_types_helper.h
..\src\low-level\imf\mailimf_write.h
..\src\low-level\imf\mailimf_write_file.h
..\src\low-level\imf\mailimf_write_generic.h
..\src\low-level\imf\mailimf_write_mem.h
..\src\low-level\maildir\maildir.h
..\src\low-level\maildir\maildir_types.h
..\src\low-level\mbox\mailmbox.h
..\src\low-level\mbox\mailmbox_parse.h
..\src\low-level\mbox\mailmbox_types.h
..\src\low-level\mh\mailmh.h
..\src\low-level\mime\mailmime.h
@ -157,7 +132,6 @@ libetpan_version.h
..\src\low-level\mime\mailmime_disposition.h
..\src\low-level\mime\mailmime_types.h
..\src\low-level\mime\mailmime_types_helper.h
..\src\low-level\mime\mailmime_write.h
..\src\low-level\mime\mailmime_write_file.h
..\src\low-level\mime\mailmime_write_generic.h
..\src\low-level\mime\mailmime_write_mem.h
@ -177,4 +151,7 @@ libetpan_version.h
..\src\low-level\smtp\mailsmtp_ssl.h
..\src\low-level\smtp\mailsmtp_types.h
..\src\main\libetpan.h
..\src\windows\win_etpan.h
..\src\main\libetpan_version.h
..\src\windows\win_etpan.h
libetpan-config.h
libetpan_version.h

+ 31
- 0
build-windows/gen-public-headers.sh View File

@ -0,0 +1,31 @@
#!/bin/sh
files=""
list_headers()
{
local filename="$1"
if echo $files | grep "\[$filename\]" >/dev/null ; then
return
fi
local path="`find . -name $filename`"
if test "x$path" = x ; then
return
fi
echo $path | sed 's/^.\//..\/src\//' | sed 's/\//\\/g'
files="$files[$filename]"
subfilenames="`grep '#include <libetpan/' "$path" | sed 's/^#include <libetpan\/\(.*\)>$/\1/'`"
subfilenames+=" "
subfilenames+="`grep '#import <libetpan/' "$path" | sed 's/^#import <libetpan\/\(.*\)>$/\1/'`"
for include_dir in $subfilenames ; do
list_headers $include_dir
done
}
cd ../src
list_headers libetpan.h | sort
echo ..\\src\\windows\\win_etpan.h
echo libetpan-config.h
echo libetpan_version.h

+ 1
- 0
configure.ac View File

@ -782,3 +782,4 @@ AC_SUBST(cfg_files)
AC_OUTPUT
cp -f ${crd}/src/main/libetpan_version.h ${crd}/build-windows
cd build-windows ; ./gen-public-headers.sh > build_headers.list ; cd ..

Loading…
Cancel
Save