Skip to content

Commit 1700455

Browse files
mtrojnarMaciej Panekolszomal
authored
APPX support (#303)
Co-authored-by: Maciej Panek <[email protected]> Co-authored-by: olszomal <[email protected]>
1 parent a6f767f commit 1700455

File tree

13 files changed

+2802
-60
lines changed

13 files changed

+2802
-60
lines changed

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
3030
# load CMake library modules
3131
include(FindOpenSSL)
3232
include(FindCURL)
33+
include(FindZLIB)
3334

3435
# load CMake project modules
3536
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
@@ -47,7 +48,7 @@ configure_file(Config.h.in config.h)
4748
target_compile_definitions(osslsigncode PRIVATE HAVE_CONFIG_H=1)
4849

4950
# set sources
50-
target_sources(osslsigncode PRIVATE osslsigncode.c helpers.c msi.c pe.c cab.c cat.c)
51+
target_sources(osslsigncode PRIVATE osslsigncode.c helpers.c msi.c pe.c cab.c cat.c appx.c)
5152
if(NOT UNIX)
5253
target_sources(osslsigncode PRIVATE applink.c)
5354
endif(NOT UNIX)
@@ -72,6 +73,12 @@ else(CURL_FOUND)
7273
message(STATUS "cURL support disabled (library not found)")
7374
endif(CURL_FOUND)
7475

76+
if(NOT ZLIB_FOUND)
77+
message(FATAL_ERROR "Zlib library not found")
78+
endif(NOT ZLIB_FOUND)
79+
target_include_directories(osslsigncode PRIVATE ${ZLIB_INCLUDE_DIR})
80+
target_link_libraries(osslsigncode PRIVATE ${ZLIB_LIBRARIES})
81+
7582
# add paths to linker search and installed rpath
7683
set_target_properties(osslsigncode PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)
7784

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### 2.7 (unreleased)
44

5+
- added APPX support (by Maciej Panek and Małgorzata Olszówka)
56
- added a built-in TSA response generation (-TSA-certs, -TSA-key
67
and -TSA-time options)
78

0 commit comments

Comments
 (0)