Packaging fixes
This commit is contained in:
parent
b33ef168ea
commit
2e569b2cd3
3 changed files with 16 additions and 2 deletions
|
|
@ -1,10 +1,20 @@
|
|||
#include <psemek/audio/track.hpp>
|
||||
#include <psemek/audio/constants.hpp>
|
||||
#include <psemek/audio/detail/resampler.hpp>
|
||||
#include <psemek/audio/audio_file/AudioFile.h>
|
||||
#include <psemek/util/to_string.hpp>
|
||||
#include <psemek/util/at_scope_exit.hpp>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif
|
||||
|
||||
#include <psemek/audio/audio_file/AudioFile.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
namespace psemek::audio
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
#include <psemek/app/resource.hpp>
|
||||
#include <psemek/io/file_stream.hpp>
|
||||
#include <psemek/log/log.hpp>
|
||||
|
||||
namespace psemek::app
|
||||
{
|
||||
|
||||
std::unique_ptr<io::istream> open_resource(std::filesystem::path const & relative_path)
|
||||
{
|
||||
log::info() << "Opening resource " << relative_path;
|
||||
return std::make_unique<io::file_istream>(app::resource_root() / relative_path);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ set(PSEMEK_PACKAGE_VERSION_SUFFIX "" CACHE STRING "Packaging version suffix")
|
|||
|
||||
if(PSEMEK_PACKAGE_MODE)
|
||||
if(WIN32)
|
||||
set(PSEMEK_PACKAGE_SUFFIX_RAW win)
|
||||
set(PSEMEK_PACKAGE_SUFFIX_RAW windows)
|
||||
elseif(APPLE)
|
||||
set(PSEMEK_PACKAGE_SUFFIX_RAW mac)
|
||||
elseif(ANDROID)
|
||||
|
|
@ -167,6 +167,8 @@ function(psemek_package_files target)
|
|||
COMMAND ${PSEMEK_COPY_FILES} ${ARGN}
|
||||
)
|
||||
else()
|
||||
psemek_package_output_path(${target} _OUTPUT_PATH)
|
||||
|
||||
add_custom_command(TARGET ${target} POST_BUILD
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
||||
COMMAND zip -v "${_OUTPUT_PATH}" -r ${ARGN}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue