#include <vector>
#include <memory>
+#ifdef LOT_EXPORT
+ #undef LOT_EXPORT
+#endif
+
#if defined _WIN32 || defined __CYGWIN__
#ifdef LOT_BUILD
#define LOT_EXPORT __declspec(dllexport)
} // namespace lotplayer
+#undef LOT_EXPORT
+#define LOT_EXPORT
+
#endif // _RLOTTIE_H_
#ifndef _RLOTTIE_COMMON_H_
#define _RLOTTIE_COMMON_H_
+#ifdef LOT_EXPORT
+ #undef LOT_EXPORT
+#endif
+
#if defined _WIN32 || defined __CYGWIN__
#ifdef LOT_BUILD
#define LOT_EXPORT __declspec(dllexport)
* @}
*/
+#undef LOT_EXPORT
+#define LOT_EXPORT
+
#endif // _RLOTTIE_COMMON_H_
license : 'Apache')
add_project_arguments('-DDEMO_DIR="@0@/example/resource/"'.format(meson.current_source_dir()), language : 'cpp')
-add_project_arguments('-DLOT_BUILD', language: 'cpp')
inc = [include_directories('inc')]
config_dir = include_directories('.')
cc = meson.get_compiler('cpp')
-compiler_flags =[]
+compiler_flags = []
if (cc.get_id() != 'msvc')
compiler_flags = ['-fno-exceptions', '-fno-rtti',
'-fno-unwind-tables' , '-fno-asynchronous-unwind-tables',
subdir('lottie')
subdir('binding')
+compiler_flags += ['-DLOT_BUILD=1']
+
rlottie_lib_dep = [ vector_dep, lottie_dep, binding_dep, dependency('threads')]
rlottie_lib = shared_library('rlottie',
source_file = ['stb_image.cpp']
+compiler_flags = ['-DLOT_BUILD=1']
+
if get_option('module') == true
rlottie_image_loader_lib = shared_library('rlottie-image-loader',
source_file,
include_directories : [include_directories('.'), config_dir],
install : true,
+ cpp_args : compiler_flags,
gnu_symbol_visibility : 'hidden',
)
cc = meson.get_compiler('cpp')