diff --git a/meson.build b/meson.build index ca7888b..d5fd5c2 100644 --- a/meson.build +++ b/meson.build @@ -19,6 +19,9 @@ gst_base_dep = dependency('gstreamer-base-1.0', version : gst_req, fallback : ['gstreamer', 'gst_base_dep']) gst_check_dep = dependency('gstreamer-check-1.0', version : gst_req, fallback : ['gstreamer', 'gst_check_dep']) +cpp = meson.get_compiler('cpp') +aws_c_common_dep = cpp.find_library('aws-c-common', required: true) +aws_crt_cpp_dep=cpp.find_library('aws-crt-cpp', required:true) # use static linker args on macos as the dylibs don't include the crt symbols aws_cpp_sdk_s3_dep = dependency('aws-cpp-sdk-s3', version : aws_cpp_sdk_req, static : is_macos) aws_cpp_sdk_sts_dep = dependency('aws-cpp-sdk-sts', version : aws_cpp_sdk_req, static : is_macos) diff --git a/src/meson.build b/src/meson.build index 4293b4a..80bd23e 100644 --- a/src/meson.build +++ b/src/meson.build @@ -15,7 +15,7 @@ symbol_export_define = ['-DGST_EXPORTS'] credentials = library('gstawscredentials-@0@'.format(apiversion), ['gstawscredentials.cpp'], - dependencies : [aws_cpp_sdk_sts_dep, gst_dep], + dependencies : [aws_cpp_sdk_sts_dep, gst_dep, aws_c_common_dep, aws_crt_cpp_dep], cpp_args: symbol_export_define, install : true ) @@ -37,7 +37,7 @@ gst_s3_elements = library('gsts3elements', gst_s3_elements_sources, cpp_args: symbol_export_define, c_args: symbol_export_define, - dependencies : [gst_dep, gst_base_dep, multipart_uploader_dep, credentials_dep], + dependencies : [gst_dep, gst_base_dep, multipart_uploader_dep, credentials_dep, aws_c_common_dep, aws_crt_cpp_dep], include_directories : [configinc], install : true, install_dir : plugins_install_dir, @@ -45,7 +45,7 @@ gst_s3_elements = library('gsts3elements', s3elements_dep = declare_dependency(link_with : gst_s3_elements, include_directories : [include_directories('.')], - dependencies : [gst_dep, gst_base_dep, aws_cpp_sdk_s3_dep, aws_cpp_sdk_sts_dep] + dependencies : [gst_dep, gst_base_dep, aws_cpp_sdk_s3_dep, aws_cpp_sdk_sts_dep, aws_c_common_dep, aws_crt_cpp_dep] ) install_headers(gst_s3_public_headers, subdir : 'gstreamer-1.0/gst/aws')