pmt: fix build issues with NDK

This commit is contained in:
2025-07-29 21:20:31 +03:00
parent 0b76d33715
commit fe51bf1644
31 changed files with 3 additions and 2 deletions

2
CMakeLists.txt Normal file → Executable file
View File

@@ -20,7 +20,7 @@ project(pmt VERSION 1.0.0)
# Set compiler flags # Set compiler flags
add_compile_options(-Wall -Werror) add_compile_options(-Wall -Werror)
if(${CMAKE_BUILD_TYPE} STREQUAL Debug) if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
add_compile_options(-gdwarf-5 -fsanitize=address -fstack-protector) add_compile_options(-gdwarf-5 -fsanitize=address -fstack-protector)
add_link_options(-fsanitize=address) add_link_options(-fsanitize=address)
endif() endif()

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
build.sh Normal file → Executable file
View File

0
cmake/generate_headers.cmake Normal file → Executable file
View File

0
include/CLI/CLI11.hpp Normal file → Executable file
View File

0
include/CLI/LICENSE Normal file → Executable file
View File

0
include/PartitionManager/lib.hpp Normal file → Executable file
View File

0
include/buildInfo.hpp.in Normal file → Executable file
View File

0
include/picosha2.h Normal file → Executable file
View File

0
src/FunctionManager.cpp Normal file → Executable file
View File

0
src/Lib.cpp Normal file → Executable file
View File

0
src/Main.cpp Normal file → Executable file
View File

0
src/functions/functions.hpp Normal file → Executable file
View File

0
srclib/CMakeLists.txt Normal file → Executable file
View File

0
srclib/libhelper/CMakeLists.txt Normal file → Executable file
View File

0
srclib/libhelper/include/libhelper/lib.hpp Normal file → Executable file
View File

0
srclib/libhelper/src/Checkers.cpp Normal file → Executable file
View File

3
srclib/libhelper/src/Classes.cpp Normal file → Executable file
View File

@@ -21,12 +21,13 @@
#include <unistd.h> #include <unistd.h>
#include <libgen.h> #include <libgen.h>
#include <stdarg.h> #include <stdarg.h>
#include <fcntl.h>
#include <libhelper/lib.hpp> #include <libhelper/lib.hpp>
static void __create_log_file(const char* file) static void __create_log_file(const char* file)
{ {
remove(file); remove(file);
int fd = open(file, O_WRONLY | O_TRUNC, DEFAULT_EXTENDED_FILE_PERMS); int fd = open(file, O_WRONLY | O_CREAT, DEFAULT_EXTENDED_FILE_PERMS);
if (fd != -1) close(fd); if (fd != -1) close(fd);
} }

0
srclib/libhelper/src/FileUtil.cpp Normal file → Executable file
View File

0
srclib/libhelper/src/Sha256.cpp Normal file → Executable file
View File

0
srclib/libhelper/src/Utilities.cpp Normal file → Executable file
View File

0
srclib/libhelper/tests/test.cpp Normal file → Executable file
View File

0
srclib/libhelper/tests/test.sh Normal file → Executable file
View File

0
srclib/libpartition_map/CMakeLists.txt Normal file → Executable file
View File

View File

0
srclib/libpartition_map/src/Getters.cpp Normal file → Executable file
View File

0
srclib/libpartition_map/src/PartitionMap.cpp Normal file → Executable file
View File

0
srclib/libpartition_map/src/Type.cpp Normal file → Executable file
View File

0
srclib/libpartition_map/tests/test.cpp Normal file → Executable file
View File

0
tests/test.cpp Normal file → Executable file
View File