Use a single SDK export profile for all consumers

This commit is contained in:
Mark.lin
2026-10-02 22:12:25 +08:00
parent bf7be73457
commit 6c0990ea00
4 changed files with 8 additions and 41 deletions
+2 -4
View File
@@ -4,10 +4,8 @@ project(gvfg_sdk LANGUAGES CXX)
set(GVFG_SDK_VERSION "1.0.1")
option(GVFG_ENABLE_INTERNAL_API
"Export the internal GVFG diagnostic API (never enable for customer packages)"
ON
)
# One SDK binary for Customer and Internal; only the diagnostic header is private.
set(GVFG_ENABLE_INTERNAL_API ON)
include(GNUInstallDirs)
+1 -5
View File
@@ -1,11 +1,7 @@
# GVFG_SDK_VERSION in the root CMakeLists.txt is the single version source.
project(gvfg LANGUAGES CXX)
if (GVFG_ENABLE_INTERNAL_API)
set(GVFG_EXPORTS_FILE gvfg.def)
else()
set(GVFG_EXPORTS_FILE gvfg_customer.def)
endif()
set(GVFG_EXPORTS_FILE gvfg.def)
add_library(gvfg SHARED
${GVFG_EXPORTS_FILE}
-32
View File
@@ -1,32 +0,0 @@
LIBRARY gvfg
EXPORTS
gvfg_enumerate_devices
gvfg_create
gvfg_destroy
gvfg_open_channel
gvfg_set_channel_zero_copy_enabled
gvfg_get_channel_zero_copy_enabled
gvfg_set_channel_video_format
gvfg_set_channel_audio_enabled
gvfg_get_channel_audio_format
gvfg_start_channel
gvfg_read_channel_frame
gvfg_release_channel_frame
gvfg_read_channel_audio_frame
gvfg_release_channel_audio_frame
gvfg_gpu_convert_to_buffer
gvfg_gpu_convert_to_bgra8
gvfg_gpu_convert_to_rgb10a2
gvfg_gpu_convert_to_nv12
gvfg_poll_channel_event
gvfg_stop
gvfg_stop_channel
gvfg_get_channel_signal_status
gvfg_get_channel_sdi_info
gvfg_get_channel_runtime_info
gvfg_get_version
gvfg_get_gigabyte_lib_version
gvfg_pixel_format_name
gvfg_strerror
gvfg_get_channel_last_sdk_error_detail