-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update build system to generate static and dynamic libraries, correct…
… shared library versioning, generate a 'dist dir' as result of a build, populated with include, lib, and bin directories. public domain license on all source and build files not authored by Igor.
- Loading branch information
Showing
14 changed files
with
192 additions
and
24 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
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,9 @@ | ||
How to build (and eventually install) the easylzma library and | ||
bundled command line tools | ||
|
||
1. get cmake version 2.6 or greater | ||
2. mkdir build | ||
3. cd build | ||
4. cmake .. | ||
5. make | ||
6. build output is in build/easylzma-x.y.z/ * |
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
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,13 @@ | ||
1. 7zip format support | ||
2. complete test suite | ||
a. command line invocation tests | ||
b. round trip tests with lzmautils and lzip utils | ||
(only run when other tools present and in path) | ||
c. bad input tests with lzma files corrupted in various ways | ||
3. stdout/stdin support | ||
4. multiple files on command line | ||
5. optimal lzma parameter discovery | ||
6. example code | ||
7. doxygen output - html and man pages | ||
8. preservation of permissions | ||
9. --keep and --force flags functioning properly |
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 |
---|---|---|
@@ -1,16 +1,36 @@ | ||
# Copyright 2009, Lloyd Hilaiel. | ||
# | ||
# License | ||
# | ||
# All the cruft you find here is public domain. You don't have to credit | ||
# anyone to use this code, but my personal request is that you mention | ||
# Igor Pavlov for his hard, high quality work. | ||
# | ||
|
||
# set up some paths | ||
SET (binDir ${CMAKE_CURRENT_BINARY_DIR}/../${EASYLZMA_DIST_NAME}/bin) | ||
|
||
# create some directories | ||
FILE(MAKE_DIRECTORY ${binDir}) | ||
|
||
SET (SRCS elzma.c) | ||
SET (HDRS ) | ||
|
||
# use the library we built | ||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../src/dist/include) | ||
LINK_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../src/dist/lib) | ||
INCLUDE_DIRECTORIES( | ||
${CMAKE_CURRENT_BINARY_DIR}/../${EASYLZMA_DIST_NAME}/include | ||
) | ||
LINK_DIRECTORIES( | ||
${CMAKE_CURRENT_BINARY_DIR}/../${EASYLZMA_DIST_NAME}/lib | ||
) | ||
|
||
ADD_EXECUTABLE(elzma ${SRCS}) | ||
|
||
TARGET_LINK_LIBRARIES(elzma easylzma_s) | ||
|
||
# make a hard link (or copy) from unelzma to elzma | ||
# XXX port me to doze | ||
GET_TARGET_PROPERTY(binPath elzma LOCATION) | ||
ADD_CUSTOM_COMMAND(TARGET elzma POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${binPath} ${binDir} | ||
COMMAND ln -f elzma unelzma | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) | ||
WORKING_DIRECTORY ${binDir}) |
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
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
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
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
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
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
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
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
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