Skip to content

Commit

Permalink
Generate automatically public headers for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhvh committed Nov 17, 2014
1 parent 28ca9ab commit e1cdd29
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 43 deletions.
63 changes: 20 additions & 43 deletions build-windows/build_headers.list
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -38,60 +26,49 @@ 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
..\src\driver\implementation\nntp\nntpdriver.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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 changes: 31 additions & 0 deletions build-windows/gen-public-headers.sh
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..

0 comments on commit e1cdd29

Please sign in to comment.