add_library(avg SHARED
    WrapHelper.cpp avg_wrap.cpp node_wrap.cpp raster_wrap.cpp
    event_wrap.cpp fx_wrap.cpp misc_wrap.cpp vector_wrap.cpp raster2_wrap.cpp
    bitmap_wrap.cpp anim_wrap.cpp)
# Make sure we don't generate a .dylib on mac.
set_target_properties(avg PROPERTIES PREFIX "")
set_target_properties(avg PROPERTIES SUFFIX ".so")
target_link_libraries(avg PUBLIC
        "-Wl,--whole-archive"
        player anim oscpack
        "-Wl,--no-whole-archive"
        )

add_library(avg SHARED
    WrapHelper.cpp avg_wrap.cpp node_wrap.cpp raster_wrap.cpp
    event_wrap.cpp fx_wrap.cpp misc_wrap.cpp vector_wrap.cpp raster2_wrap.cpp
    bitmap_wrap.cpp anim_wrap.cpp)
# Make sure we don't generate a .dylib on mac.
set_target_properties(avg PROPERTIES PREFIX "")
set_target_properties(avg PROPERTIES SUFFIX ".so")
target_link_libraries(avg PUBLIC player anim)

Revert "Export oscpack global variables so they can be used in plugins."
Revert "Export oscpack global variables so they can be used in plugins."

This reverts commit 5310f10b49fe1fb1d22ef1fffdb77872576707ae.
