-
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.
feat(no-release): bind initial apis (#1)
* binding initial apis * Ignore pyi from pylint * Ignore tests from *-macosx_arm64 * Optimize lib7zip configuration * Disable armv7l * Link to bit7z * Add api comments --------- Signed-off-by: msclock <[email protected]> Signed-off-by: l.feng <[email protected]>
- Loading branch information
Showing
14 changed files
with
4,312 additions
and
30 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#pragma once | ||
|
||
#include "_version.hpp" | ||
#include "pybit7z.hpp" |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 +1,26 @@ | ||
#include "pybit7z.hpp" | ||
|
||
namespace _core { | ||
|
||
std::string& default_library_path() { | ||
#ifdef WIN32 | ||
#if defined(_MSC_VER) | ||
constexpr auto default_lib7zip = "7zip.dll"; | ||
#else | ||
constexpr auto default_lib7zip = "lib7zip.dll"; | ||
#endif | ||
#elif __APPLE__ | ||
constexpr auto default_lib7zip = "lib7zip.dylib"; | ||
#else | ||
constexpr auto default_lib7zip = "lib7zip.so"; | ||
#endif | ||
static std::string default_path(default_lib7zip); | ||
return default_path; | ||
} | ||
|
||
const bit7z::Bit7zLibrary& Bit7zipSingleton::getInstance() { | ||
static const bit7z::Bit7zLibrary instance(default_library_path()); | ||
return instance; | ||
} | ||
|
||
} // namespace _core |
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
Oops, something went wrong.