Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add external C linkage wrappers for some wwtools functions #11

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ include_directories(

add_definitions(-DKS_STR_ENCODING_NONE)

if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()

set(SOURCE
src/ww2ogg/codebook.cpp
src/ww2ogg/crc.c
Expand All @@ -35,6 +39,14 @@ set(SOURCE
src/kaitai/structs/wem.cpp
)

# add compilation support for large objects
# https://stackoverflow.com/questions/69903253/cmake-bigobj-no-such-file-or-directory
# if (MSVC)
# add_compile_options(/bigobj)
# else ()
# add_compile_options(-Wa,-mbig-obj)
# endif ()

add_subdirectory(libogg EXCLUDE_FROM_ALL)
add_subdirectory(libvorbis EXCLUDE_FROM_ALL)

Expand Down
2 changes: 2 additions & 0 deletions include/wwtools/bnk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ std::string get_event_id_info(const std::string &indata,
*/
std::string get_wem_id_at_index(const std::string &indata, const int &index);

/*
std::string get_event_name_from_id(const std::uint32_t &event_id);
*/

/**
* @brief get a string with the action type from the enum
Expand Down
Loading