Skip to content

Enable option to build .so files for Python binding with Ctypes #47

@MDuc-ai

Description

@MDuc-ai

I am writing Python binding for bark.cpp and due to the specific add_library(${ENCODEC_LIB} STATIC encodec.cpp encodec.h), I could not use a high-level CmakeLists.txt to build the .so file for encodec.cpp. We should add option to build share library:

option(BUILD_SHARED_LIBS "build shared libraries" OFF) add_library(${ENCODEC_LIB} encodec.cpp encodec.h)
This should be applied on the bark.cpp as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions