Skip to content

Commit

Permalink
Added a new port lzma
Browse files Browse the repository at this point in the history
  • Loading branch information
jbooCoveo committed Jun 16, 2020
1 parent cb8a9fe commit 530d62b
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
51 changes: 51 additions & 0 deletions ports/lzma/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3 FATAL_ERROR)
SET(CMAKE_VERBOSE_MAKEFILE off)

#### Project Definition
PROJECT(lzma)

# Add files and include Paths

file(GLOB HDR_FILES
${PROJECT_SOURCE_DIR}/lzma/C/*.h)

file(GLOB SRC_FILES
${PROJECT_SOURCE_DIR}/lzma/C/*.c)


# Target Definition
ADD_LIBRARY(lzma SHARED
${SRC_FILES}
${HDR_FILES}
)


target_compile_definitions(lzma

PRIVATE LZMALIB

)



install(

TARGETS lzma

RUNTIME DESTINATION bin

LIBRARY DESTINATION lib

ARCHIVE DESTINATION lib

)



install(

FILES ${HDR_FILES}

DESTINATION include

)
10 changes: 10 additions & 0 deletions ports/lzma/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Source: lzma
Version:
Homepage:
Description:
Build-Depends:
Default-Features:

Feature:
Description:
Build-Depends:
1 change: 1 addition & 0 deletions ports/lzma/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lzma Library License
25 changes: 25 additions & 0 deletions ports/lzma/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO JangBoo/lzma
REF master
SHA512 f8ce33d366d03df9c78512bd523791ec809bea4c36bc4771b3ee631b2b920ce1ceac4149465cb27d8929307552614f860c65b61026b09fbd4ee88a9367463703
HEAD_REF master
)

file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA

)

vcpkg_install_cmake()
vcpkg_copy_pdbs()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

SET(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled)
SET(VCPKG_POLICY_DLLS_WITHOUT_EXPORTS enabled)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib" "${CURRENT_PACKAGES_DIR}/lib")
configure_file(${CMAKE_CURRENT_LIST_DIR}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)

0 comments on commit 530d62b

Please sign in to comment.