forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lzma Library License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |