Compare commits

...

2 Commits

Author SHA1 Message Date
Volker Birk bf215cf899 make a local install of headers 2023-02-16 11:48:51 +01:00
Volker Birk f3c8679bc7 make headers to install a list in an include file, so it can be used on *nix and on Windows 2023-02-16 11:48:21 +01:00
3 changed files with 28 additions and 12 deletions

View File

@ -109,18 +109,8 @@ clean:
rm -f *_{event,impl,fsm,func}.[ch]
rm -rf ../doc/api/
HEADERS_TO_INSTALL = \
pEpEngine.h keymanagement.h message_api.h dynamic_api.h stringlist.h \
timestamp.h identity_list.h bloblist.h stringpair.h message.h mime.h group.h \
cryptotech.h sync_api.h pEp_string.h openpgp_compat.h engine_sql.h \
labeled_int_list.h key_reset.h base64.h sync_codec.h distribution_codec.h \
message_codec.h storage_codec.h status_to_string.h keyreset_command.h \
echo_api.h distribution_api.h media_key.h \
map_asn1.h \
platform.h platform_unix.h platform_windows.h platform_zos.h \
pEp_debug.h pEp_log.h sql_reliability.h \
pEpEngine_version.h \
transport.h growing_buf.h $(wildcard ../asn.1/*.h)
include headers-to-install.mak
HEADERS_TO_INSTALL=$(HEADERS_TO_INSTALL) $(wildcard ../asn.1/*.h)
# CAVEAT:
# install_headers is needed for building *STANDALONE* pEp MIME - it is NOT used for built-in functionality!!!

11
src/NMakefile Normal file
View File

@ -0,0 +1,11 @@
!include headers-to-install.mak
install_headers:
-md ..\include\pEp 2>nul
for %%H in ($(HEADERS_TO_INSTALL)) do xcopy /y/f %%H ..\include\pEp
xcopy /y/f ..\asn.1\*.h ..\include\pEp
touch install_headers
clean:
-del /f/q install_headers 2>nul
-rd /s/q ..\include 2>nul

View File

@ -0,0 +1,15 @@
# list of external headers
HEADERS_TO_INSTALL = \
pEpEngine.h keymanagement.h message_api.h dynamic_api.h stringlist.h \
timestamp.h identity_list.h bloblist.h stringpair.h message.h mime.h group.h \
cryptotech.h sync_api.h pEp_string.h openpgp_compat.h engine_sql.h \
labeled_int_list.h key_reset.h base64.h sync_codec.h distribution_codec.h \
message_codec.h storage_codec.h status_to_string.h keyreset_command.h \
echo_api.h distribution_api.h media_key.h \
map_asn1.h \
platform.h platform_unix.h platform_windows.h platform_zos.h \
pEp_debug.h pEp_log.h sql_reliability.h \
pEpEngine_version.h \
transport.h growing_buf.h