if (MSVC)
set(PLATFORM_FOLDER_NAME "win32")
-elseif (CMAKE_COMPILER_IS_GNUCXX)
+elseif (CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID MATCHES "Clang"))
set(PLATFORM_FOLDER_NAME "linux")
endif ()
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /D TBB_USE_ASSERT=1 /D TBB_USE_DEBUG /bigobj")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Oi /Ot /Gy /bigobj")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Oi /Ot /Gy /bigobj /Ob2")
-elseif (CMAKE_COMPILER_IS_GNUCXX)
- set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g")
- add_compile_options( -std=c++11 )
+elseif (CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID MATCHES "Clang"))
+ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -std=c++11")
+ if (CMAKE_C_COMPILER_ID MATCHES "Clang")
+ # Needed to compile CEF.
+ add_compile_options( -Wno-undefined-var-template )
+ endif ()
add_compile_options( -msse3 )
add_compile_options( -mssse3 )
add_compile_options( -msse4.1 )
cpu/util/xmm.h
)
-elseif (CMAKE_COMPILER_IS_GNUCXX)
+elseif (CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID MATCHES "Clang"))
endif ()
set(SOURCES
os/windows/win32_exception.h
os/windows/windows.h
)
-elseif (CMAKE_COMPILER_IS_GNUCXX)
+elseif (CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID MATCHES "Clang"))
set(OS_SPECIFIC_SOURCES
os/linux/filesystem.cpp
os/linux/prec_timer.cpp
mutable std::mutex capacity_mutex_;
size_type capacity_;
semaphore space_available_ = capacity_;
- semaphore elements_available_ = 0;
+ semaphore elements_available_ { 0 };
Q queue_;
public:
/**
#include <string>
+#include <boost/noncopyable.hpp>
+
namespace caspar { namespace core { namespace diagnostics {
struct call_context
int parent_width_;
int parent_height_;
bool standalone_;
- constraints constraints_ { parent_width_, parent_height_ };
+ constraints constraints_ { double(parent_width_), double(parent_height_) };
variable_impl<std::wstring> text_;
std::shared_ptr<void> text_subscription_;
variable_impl<double> tracking_;
* ============================================================================
*/
+#include <limits.h>
#include <list>
#include <vector>
#include "texture_atlas.h"
interop/DeckLinkAPI.h
interop/DeckLinkAPIVersion.h
)
-elseif (CMAKE_COMPILER_IS_GNUCXX)
+elseif (CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID MATCHES "Clang"))
set(OS_SPECIFIC_SOURCES
linux_interop/DeckLinkAPIConfiguration.h
linux_interop/DeckLinkAPIDeckControl.h
core
ffmpeg
)
-elseif (CMAKE_COMPILER_IS_GNUCXX)
+elseif (CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID MATCHES "Clang"))
target_link_libraries(decklink
common
core
int preroll_count_ = 0;
- boost::circular_buffer<std::vector<int32_t>> audio_container_ { buffer_size_ + 1 };
+ boost::circular_buffer<std::vector<int32_t>> audio_container_ { buffer_size_ + 1u };
tbb::concurrent_bounded_queue<core::const_frame> frame_buffer_;
caspar::semaphore ready_for_new_frames_ { 0 };
ffmpeg::filter::is_deinterlacing(filter_)
};
- core::constraints constraints_ { in_format_desc_.width, in_format_desc_.height };
+ core::constraints constraints_ { double(in_format_desc_.width), double(in_format_desc_.height) };
tbb::concurrent_bounded_queue<core::draw_frame> frame_buffer_;
core::draw_frame last_frame_ = core::draw_frame::empty();
shell.rc
windows_specific.cpp
)
-elseif (CMAKE_COMPILER_IS_GNUCXX)
+elseif (CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID MATCHES "Clang"))
set(OS_SPECIFIC_SOURCES
linux_specific.cpp
)