]> git.sesse.net Git - casparcg/commitdiff
Initial checkin of CMake build system
authorHelge Norberg <helge.norberg@svt.se>
Wed, 18 Mar 2015 09:07:08 +0000 (10:07 +0100)
committerHelge Norberg <helge.norberg@svt.se>
Wed, 18 Mar 2015 09:07:08 +0000 (10:07 +0100)
17 files changed:
CMake/PrecompiledHeader.cmake [new file with mode: 0644]
CMakeLists.txt [new file with mode: 0644]
accelerator/CMakeLists.txt [new file with mode: 0644]
common/CMakeLists.txt [new file with mode: 0644]
core/CMakeLists.txt [new file with mode: 0644]
modules/CMakeLists.txt [new file with mode: 0644]
modules/bluefish/CMakeLists.txt [new file with mode: 0644]
modules/decklink/CMakeLists.txt [new file with mode: 0644]
modules/ffmpeg/CMakeLists.txt [new file with mode: 0644]
modules/flash/CMakeLists.txt [new file with mode: 0644]
modules/image/CMakeLists.txt [new file with mode: 0644]
modules/oal/CMakeLists.txt [new file with mode: 0644]
modules/psd/CMakeLists.txt [new file with mode: 0644]
modules/reroute/CMakeLists.txt [new file with mode: 0644]
modules/screen/CMakeLists.txt [new file with mode: 0644]
protocol/CMakeLists.txt [new file with mode: 0644]
shell/CMakeLists.txt [new file with mode: 0644]

diff --git a/CMake/PrecompiledHeader.cmake b/CMake/PrecompiledHeader.cmake
new file mode 100644 (file)
index 0000000..40f619b
--- /dev/null
@@ -0,0 +1,222 @@
+# Function for setting up precompiled headers. Usage:
+#
+#   add_library/executable(target
+#       pchheader.c pchheader.cpp pchheader.h)
+#
+#   add_precompiled_header(target pchheader.h
+#       [FORCEINCLUDE]
+#       [SOURCE_C pchheader.c]
+#       [SOURCE_CXX pchheader.cpp])
+#
+# Options:
+#
+#   FORCEINCLUDE: Add compiler flags to automatically include the
+#   pchheader.h from every source file. Works with both GCC and
+#   MSVC. This is recommended.
+#
+#   SOURCE_C/CXX: Specifies the .c/.cpp source file that includes
+#   pchheader.h for generating the pre-compiled header
+#   output. Defaults to pchheader.c. Only required for MSVC.
+#
+# Caveats:
+#
+#   * Its not currently possible to use the same precompiled-header in
+#     more than a single target in the same directory (No way to set
+#     the source file properties differently for each target).
+#
+#   * MSVC: A source file with the same name as the header must exist
+#     and be included in the target (E.g. header.cpp). Name of file
+#     can be changed using the SOURCE_CXX/SOURCE_C options.
+#
+# License:
+#
+# Copyright (C) 2009-2013 Lars Christensen <larsch@belunktum.dk>
+#
+# Permission is hereby granted, free of charge, to any person
+# obtaining a copy of this software and associated documentation files
+# (the 'Software') deal in the Software without restriction,
+# including without limitation the rights to use, copy, modify, merge,
+# publish, distribute, sublicense, and/or sell copies of the Software,
+# and to permit persons to whom the Software is furnished to do so,
+# subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+
+include(CMakeParseArguments)
+
+macro(combine_arguments _variable)
+  set(_result "")
+  foreach(_element ${${_variable}})
+    set(_result "${_result} \"${_element}\"")
+  endforeach()
+  string(STRIP "${_result}" _result)
+  set(${_variable} "${_result}")
+endmacro()
+
+function(export_all_flags _filename)
+  set(_include_directories "$<TARGET_PROPERTY:${_target},INCLUDE_DIRECTORIES>")
+  set(_compile_definitions "$<TARGET_PROPERTY:${_target},COMPILE_DEFINITIONS>")
+  set(_compile_flags "$<TARGET_PROPERTY:${_target},COMPILE_FLAGS>")
+  set(_compile_options "$<TARGET_PROPERTY:${_target},COMPILE_OPTIONS>")
+  set(_include_directories "$<$<BOOL:${_include_directories}>:-I$<JOIN:${_include_directories},\n-I>\n>")
+  set(_compile_definitions "$<$<BOOL:${_compile_definitions}>:-D$<JOIN:${_compile_definitions},\n-D>\n>")
+  set(_compile_flags "$<$<BOOL:${_compile_flags}>:$<JOIN:${_compile_flags},\n>\n>")
+  set(_compile_options "$<$<BOOL:${_compile_options}>:$<JOIN:${_compile_options},\n>\n>")
+  file(GENERATE OUTPUT "${_filename}" CONTENT "${_compile_definitions}${_include_directories}${_compile_flags}${_compile_options}\n")
+endfunction()
+
+function(add_precompiled_header _target _input)
+  cmake_parse_arguments(_PCH "FORCEINCLUDE" "SOURCE_CXX:SOURCE_C" "" ${ARGN})
+
+  get_filename_component(_input_we ${_input} NAME_WE)
+  if(NOT _PCH_SOURCE_CXX)
+    set(_PCH_SOURCE_CXX "${_input_we}.cpp")
+  endif()
+  if(NOT _PCH_SOURCE_C)
+    set(_PCH_SOURCE_C "${_input_we}.c")
+  endif()
+
+  if(MSVC)
+
+    set(_cxx_path "${CMAKE_CFG_INTDIR}/${_target}_cxx_pch")
+    set(_c_path "${CMAKE_CFG_INTDIR}/${_target}_c_pch")
+    make_directory("${_cxx_path}")
+    make_directory("${_c_path}")
+    set(_pch_cxx_header "${_cxx_path}/${_input}")
+    set(_pch_cxx_pch "${_cxx_path}/${_input_we}.pch")
+    set(_pch_c_header "${_c_path}/${_input}")
+    set(_pch_c_pch "${_c_path}/${_input_we}.pch")
+
+    get_target_property(sources ${_target} SOURCES)
+    foreach(_source ${sources})
+      set(_pch_compile_flags "")
+      if(_source MATCHES \\.\(cc|cxx|cpp|c\)$)
+       if(_source MATCHES \\.\(cpp|cxx|cc\)$)
+         set(_pch_header "${_input}")
+         set(_pch "${_pch_cxx_pch}")
+       else()
+         set(_pch_header "${_input}")
+         set(_pch "${_pch_c_pch}")
+       endif()
+
+       if(_source STREQUAL "${_PCH_SOURCE_CXX}")
+         set(_pch_compile_flags "${_pch_compile_flags} \"/Fp${_pch_cxx_pch}\" /Yc${_input}")
+         set(_pch_source_cxx_found TRUE)
+       elseif(_source STREQUAL "${_PCH_SOURCE_C}")
+         set(_pch_compile_flags "${_pch_compile_flags} \"/Fp${_pch_c_pch}\" /Yc${_input}")
+         set(_pch_source_c_found TRUE)
+       else()
+         if(_source MATCHES \\.\(cpp|cxx|cc\)$)
+           set(_pch_compile_flags "${_pch_compile_flags} \"/Fp${_pch_cxx_pch}\" /Yu${_input}")
+           set(_pch_source_cxx_needed TRUE)
+         else()
+           set(_pch_compile_flags "${_pch_compile_flags} \"/Fp${_pch_c_pch}\" /Yu${_input}")
+           set(_pch_source_c_needed TRUE)
+         endif()
+         if(_PCH_FORCEINCLUDE)
+           set(_pch_compile_flags "${_pch_compile_flags} /FI${_input}")
+         endif(_PCH_FORCEINCLUDE)
+       endif()
+
+       get_source_file_property(_object_depends "${_source}" OBJECT_DEPENDS)
+       if(NOT _object_depends)
+         set(_object_depends)
+       endif()
+       if(_PCH_FORCEINCLUDE)
+         if(_source MATCHES \\.\(cc|cxx|cpp\)$)
+           list(APPEND _object_depends "${_pch_header}")
+         else()
+           list(APPEND _object_depends "${_pch_header}")
+         endif()
+       endif()
+
+       set_source_files_properties(${_source} PROPERTIES
+         COMPILE_FLAGS "${_pch_compile_flags}"
+         OBJECT_DEPENDS "${_object_depends}")
+      endif()
+    endforeach()
+
+    if(_pch_source_cxx_needed AND NOT _pch_source_cxx_found)
+      message(FATAL_ERROR "A source file ${_PCH_SOURCE_CXX} for ${_input} is required for MSVC builds. Can be set with the SOURCE_CXX option.")
+    endif()
+    if(_pch_source_c_needed AND NOT _pch_source_c_found)
+      message(FATAL_ERROR "A source file ${_PCH_SOURCE_C} for ${_input} is required for MSVC builds. Can be set with the SOURCE_C option.")
+    endif()
+  endif(MSVC)
+
+  if(CMAKE_COMPILER_IS_GNUCXX)
+    get_filename_component(_name ${_input} NAME)
+    set(_pch_header "${CMAKE_CURRENT_SOURCE_DIR}/${_input}")
+    set(_pch_binary_dir "${CMAKE_CURRENT_BINARY_DIR}/${_target}_pch")
+    set(_pchfile "${_pch_binary_dir}/${_input}")
+    set(_outdir "${CMAKE_CURRENT_BINARY_DIR}/${_target}_pch/${_name}.gch")
+    make_directory(${_outdir})
+    set(_output_cxx "${_outdir}/.c++")
+    set(_output_c "${_outdir}/.c")
+
+    set(_pch_flags_file "${_pch_binary_dir}/compile_flags.rsp")
+    export_all_flags("${_pch_flags_file}")
+    set(_compiler_FLAGS "@${_pch_flags_file}")
+    add_custom_command(
+      OUTPUT "${_pchfile}"
+      COMMAND "${CMAKE_COMMAND}" -E copy "${_pch_header}" "${_pchfile}"
+      DEPENDS "${_pch_header}"
+      COMMENT "Updating ${_name}")
+    add_custom_command(
+      OUTPUT "${_output_cxx}"
+      COMMAND "${CMAKE_CXX_COMPILER}" ${_compiler_FLAGS} -x c++-header -o "${_output_cxx}" "${_pchfile}"
+      DEPENDS "${_pchfile}" "${_pch_flags_file}"
+      COMMENT "Precompiling ${_name} for ${_target} (C++)")
+    add_custom_command(
+      OUTPUT "${_output_c}"
+      COMMAND "${CMAKE_C_COMPILER}" ${_compiler_FLAGS} -x c-header -o "${_output_c}" "${_pchfile}"
+      DEPENDS "${_pchfile}" "${_pch_flags_file}"
+      COMMENT "Precompiling ${_name} for ${_target} (C)")
+
+    get_property(_sources TARGET ${_target} PROPERTY SOURCES)
+    foreach(_source ${_sources})
+      set(_pch_compile_flags "")
+
+      if(_source MATCHES \\.\(cc|cxx|cpp|c\)$)
+       get_source_file_property(_pch_compile_flags "${_source}" COMPILE_FLAGS)
+       if(NOT _pch_compile_flags)
+         set(_pch_compile_flags)
+       endif()
+       separate_arguments(_pch_compile_flags)
+       list(APPEND _pch_compile_flags -Winvalid-pch)
+       if(_PCH_FORCEINCLUDE)
+         list(APPEND _pch_compile_flags -include "${_pchfile}")
+       else(_PCH_FORCEINCLUDE)
+         list(APPEND _pch_compile_flags "-I${_pch_binary_dir}")
+       endif(_PCH_FORCEINCLUDE)
+
+       get_source_file_property(_object_depends "${_source}" OBJECT_DEPENDS)
+       if(NOT _object_depends)
+         set(_object_depends)
+       endif()
+       list(APPEND _object_depends "${_pchfile}")
+       if(_source MATCHES \\.\(cc|cxx|cpp\)$)
+         list(APPEND _object_depends "${_output_cxx}")
+       else()
+         list(APPEND _object_depends "${_output_c}")
+       endif()
+
+       combine_arguments(_pch_compile_flags)
+       message("${_source}" ${_pch_compile_flags})
+       set_source_files_properties(${_source} PROPERTIES
+         COMPILE_FLAGS "${_pch_compile_flags}"
+         OBJECT_DEPENDS "${_object_depends}")
+      endif()
+    endforeach()
+  endif(CMAKE_COMPILER_IS_GNUCXX)
+endfunction()
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0eeae82
--- /dev/null
@@ -0,0 +1,53 @@
+cmake_minimum_required (VERSION 2.6)
+project ("CasparCG Server")
+
+set(DEPENDENCIES_FOLDER "${PROJECT_SOURCE_DIR}/dependencies64")
+
+set(BOOST_INCLUDE_PATH         "${DEPENDENCIES_FOLDER}/boost")
+set(RXCPP_INCLUDE_PATH         "${DEPENDENCIES_FOLDER}/RxCpp/include")
+set(TBB_INCLUDE_PATH           "${DEPENDENCIES_FOLDER}/tbb/include")
+set(GLEW_INCLUDE_PATH          "${DEPENDENCIES_FOLDER}/glew/include")
+set(SFML_INCLUDE_PATH          "${DEPENDENCIES_FOLDER}/sfml/include")
+set(FREETYPE_INCLUDE_PATH      "${DEPENDENCIES_FOLDER}/freetype/include")
+set(FFMPEG_INCLUDE_PATH                "${DEPENDENCIES_FOLDER}/ffmpeg/include")
+set(ASMLIB_INCLUDE_PATH                "${DEPENDENCIES_FOLDER}/asmlib")
+set(FREEIMAGE_INCLUDE_PATH     "${DEPENDENCIES_FOLDER}/freeimage/include")
+set(OPENAL_INCLUDE_PATH                "${DEPENDENCIES_FOLDER}/openal/include")
+set(BLUEFISH_INCLUDE_PATH      "${DEPENDENCIES_FOLDER}/bluefish/include")
+
+link_directories("${DEPENDENCIES_FOLDER}/boost/stage/lib")
+link_directories("${DEPENDENCIES_FOLDER}/tbb/lib")
+link_directories("${DEPENDENCIES_FOLDER}/glew/lib")
+link_directories("${DEPENDENCIES_FOLDER}/sfml/lib")
+link_directories("${DEPENDENCIES_FOLDER}/sfml/extlibs/lib")
+link_directories("${DEPENDENCIES_FOLDER}/freetype/objs/win32/vc2010")
+link_directories("${DEPENDENCIES_FOLDER}/ffmpeg/lib")
+link_directories("${DEPENDENCIES_FOLDER}/asmlib")
+link_directories("${DEPENDENCIES_FOLDER}/freeimage/lib")
+link_directories("${DEPENDENCIES_FOLDER}/openal/lib")
+link_directories("${DEPENDENCIES_FOLDER}/bluefish/lib")
+link_directories("${DEPENDENCIES_FOLDER}/zlib/lib")
+
+set_property(GLOBAL PROPERTY USE_FOLDERS ON)
+
+add_definitions( -DSFML_STATIC )
+add_definitions( -DBOOST_THREAD_VERSION=4 )
+add_definitions( -DTBB_USE_CAPTURED_EXCEPTION=0 )
+add_definitions( -DUNICODE )
+add_definitions( -D_UNICODE )
+
+if (${MSVC})
+       set(CMAKE_CXX_FLAGS                     "${CMAKE_CXX_FLAGS}                     /EHa /Zi /W4 /WX /MP /fp:fast /FIcommon/compiler/vs/disable_silly_warnings.h")
+       set(CMAKE_CXX_FLAGS_DEBUG       "${CMAKE_CXX_FLAGS_DEBUG}       /D TBB_USE_ASSERT=1 /D TBB_USE_DEBUG")
+       set(CMAKE_CXX_FLAGS_RELEASE     "${CMAKE_CXX_FLAGS_RELEASE}     /Oi /Ot /Gy")
+endif ()
+
+cmake_policy(SET CMP0045 OLD)
+include(CMake/PrecompiledHeader.cmake)
+
+add_subdirectory(accelerator)
+add_subdirectory(common)
+add_subdirectory(core)
+add_subdirectory(modules)
+add_subdirectory(protocol)
+add_subdirectory(shell)
diff --git a/accelerator/CMakeLists.txt b/accelerator/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2e79ea8
--- /dev/null
@@ -0,0 +1,55 @@
+cmake_minimum_required (VERSION 2.6)
+project (accelerator)
+
+set(SOURCES
+               cpu/image/image_mixer.cpp
+
+               ogl/image/image_kernel.cpp
+               ogl/image/image_mixer.cpp
+               ogl/image/image_shader.cpp
+
+               ogl/util/buffer.cpp
+               ogl/util/device.cpp
+               ogl/util/shader.cpp
+               ogl/util/texture.cpp
+
+               accelerator.cpp
+               StdAfx.cpp
+)
+set(HEADERS
+               cpu/image/image_mixer.h
+
+               cpu/util/xmm.h
+
+               ogl/image/blending_glsl.h
+               ogl/image/image_kernel.h
+               ogl/image/image_mixer.h
+               ogl/image/image_shader.h
+
+               ogl/util/buffer.h
+               ogl/util/device.h
+               ogl/util/shader.h
+               ogl/util/texture.h
+
+               accelerator.h
+               StdAfx.h
+)
+
+add_library(accelerator ${SOURCES} ${HEADERS})
+add_precompiled_header(accelerator StdAfx.h FORCEINCLUDE)
+
+include_directories(..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+include_directories(${GLEW_INCLUDE_PATH})
+include_directories(${ASMLIB_INCLUDE_PATH})
+include_directories(${FFMPEG_INCLUDE_PATH})
+include_directories(${SFML_INCLUDE_PATH})
+
+source_group(sources ./*)
+source_group(sources\\cpu\\image cpu/image/*)
+source_group(sources\\ogl\\image ogl/image/*)
+source_group(sources\\ogl\\util ogl/util/*)
+
+target_link_libraries(accelerator common core)
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6ce1ea9
--- /dev/null
@@ -0,0 +1,73 @@
+cmake_minimum_required (VERSION 2.6)
+project (common)
+
+set(SOURCES
+               compiler/vs/stack_walker.cpp
+               diagnostics/graph.cpp
+               gl/gl_check.cpp
+
+               base64.cpp
+               env.cpp
+               except.cpp
+               log.cpp
+               page_locked_allocator.cpp
+               polling_filesystem_monitor.cpp
+               prec_timer.cpp
+               stdafx.cpp
+               tweener.cpp
+               utf.cpp
+)
+set(HEADERS
+               compiler/vs/disable_silly_warnings.h
+               compiler/vs/stack_walker.h
+               diagnostics/graph.h
+               gl/gl_check.h
+               os/windows/windows.h
+               os/windows/system_info.h
+               os/windows/windows.h
+
+               array.h
+               assert.h
+               base64.h
+               blocking_bounded_queue_adapter.h
+               blocking_priority_queue.h
+               cache_aligned_vector.h
+               endian.h
+               enum_class.h
+               env.h
+               except.h
+               executor.h
+               filesystem_monitor.h
+               forward.h
+               future.h
+               future_fwd.h
+               linq.h
+               lock.h
+               log.h
+               memory.h
+               memshfl.h
+               page_locked_allocator.h
+               param.h
+               polling_filesystem_monitor.h
+               prec_timer.h
+               reactive.h
+               semaphore.h
+               stdafx.h
+               tweener.h
+               utf.h
+)
+
+add_library(common ${SOURCES} ${HEADERS})
+add_precompiled_header(common stdafx.h FORCEINCLUDE)
+
+include_directories(..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+include_directories(${GLEW_INCLUDE_PATH})
+
+source_group(sources ./*)
+source_group(sources\\gl gl/*)
+source_group(sources\\diagnostics diagnostics/*)
+source_group(sources\\compiler\\vs compiler/vs/*)
+
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2b507a1
--- /dev/null
@@ -0,0 +1,134 @@
+cmake_minimum_required (VERSION 2.6)
+project (core)
+
+set(SOURCES
+               consumer/frame_consumer.cpp
+               consumer/output.cpp
+               consumer/port.cpp
+
+               diagnostics/call_context.cpp
+               diagnostics/osd_graph.cpp
+               diagnostics/subject_diagnostics.cpp
+
+               frame/draw_frame.cpp
+               frame/frame.cpp
+               frame/frame_transform.cpp
+               frame/geometry.cpp
+
+               mixer/audio/audio_mixer.cpp
+               mixer/image/blend_modes.cpp
+               mixer/mixer.cpp
+
+               monitor/monitor.cpp
+
+               producer/color/color_producer.cpp
+
+               producer/draw/freehand_producer.cpp
+
+               producer/scene/const_producer.cpp
+               producer/scene/expression_parser.cpp
+               producer/scene/hotswap_producer.cpp
+               producer/scene/scene_producer.cpp
+               producer/scene/xml_scene_producer.cpp
+
+               producer/separated/separated_producer.cpp
+
+               producer/text/text_producer.cpp
+               producer/text/utils/texture_atlas.cpp
+               producer/text/utils/texture_font.cpp
+
+               producer/transition/transition_producer.cpp
+
+               producer/frame_producer.cpp
+               producer/layer.cpp
+               producer/stage.cpp
+
+               StdAfx.cpp
+               thumbnail_generator.cpp
+               video_channel.cpp
+               video_format.cpp
+)
+set(HEADERS
+               consumer/frame_consumer.h
+               consumer/output.h
+               consumer/port.h
+
+               diagnostics/call_context.h
+               diagnostics/osd_graph.h
+               diagnostics/subject_diagnostics.h
+
+               frame/draw_frame.h
+               frame/frame.h
+               frame/frame_factory.h
+               frame/frame_transform.h
+               frame/frame_visitor.h
+               frame/geometry.h
+               frame/pixel_format.h
+
+               interaction/interaction_aggregator.h
+               interaction/interaction_event.h
+               interaction/interaction_sink.h
+               interaction/util.h
+
+               mixer/mixer.h
+
+               monitor/monitor.h
+
+               producer/color/color_producer.h
+
+               producer/draw/freehand_producer.h
+
+               producer/scene/const_producer.h
+               producer/scene/expression_parser.h
+               producer/scene/hotswap_producer.h
+               producer/scene/scene_producer.h
+               producer/scene/xml_scene_producer.h
+
+               producer/text/utils/color.h
+               producer/text/utils/string_metrics.h
+               producer/text/utils/text_info.h
+               producer/text/utils/texture_atlas.h
+               producer/text/utils/texture_font.h
+
+               producer/text/text_producer.h
+
+               producer/transition/transition_producer.h
+
+               producer/binding.h
+               producer/frame_producer.h
+               producer/layer.h
+               producer/stage.h
+               producer/variable.h
+
+               frame.h
+               StdAfx.h
+               thumbnail_generator.h
+               video_channel.h
+               video_format.h
+)
+
+add_library(core ${SOURCES} ${HEADERS})
+add_precompiled_header(core StdAfx.h FORCEINCLUDE)
+
+include_directories(..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+include_directories(${SFML_INCLUDE_PATH})
+include_directories(${FREETYPE_INCLUDE_PATH})
+include_directories(${GLEW_INCLUDE_PATH})
+
+source_group(sources ./*)
+source_group(sources\\consumer consumer/*)
+source_group(sources\\diagnostics diagnostics/*)
+source_group(sources\\frame frame/*)
+source_group(sources\\interaction interaction/*)
+source_group(sources\\mixer mixer/*)
+source_group(sources\\producer\\draw producer/draw/*)
+source_group(sources\\producer\\scene producer/scene/*)
+source_group(sources\\producer\\text\\utils producer/text/utils/*)
+source_group(sources\\producer\\text producer/text/*)
+source_group(sources\\producer\\transition producer/transition/*)
+source_group(sources\\producer producer/*)
+
+target_link_libraries(core common)
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt
new file mode 100644 (file)
index 0000000..cd93e20
--- /dev/null
@@ -0,0 +1,12 @@
+cmake_minimum_required (VERSION 2.6)
+project ("modules")
+
+add_subdirectory(bluefish)
+add_subdirectory(decklink)
+add_subdirectory(ffmpeg)
+add_subdirectory(flash)
+add_subdirectory(image)
+add_subdirectory(oal)
+add_subdirectory(psd)
+add_subdirectory(reroute)
+add_subdirectory(screen)
diff --git a/modules/bluefish/CMakeLists.txt b/modules/bluefish/CMakeLists.txt
new file mode 100644 (file)
index 0000000..790d7c2
--- /dev/null
@@ -0,0 +1,37 @@
+cmake_minimum_required (VERSION 2.6)
+project (bluefish)
+
+set(SOURCES
+               consumer/bluefish_consumer.cpp
+
+               util/blue_velvet.cpp
+
+               bluefish.cpp
+               StdAfx.cpp
+)
+set(HEADERS
+               consumer/bluefish_consumer.h
+
+               util/blue_velvet.h
+               util/memory.h
+
+               bluefish.h
+               StdAfx.h
+)
+
+add_library(bluefish ${SOURCES} ${HEADERS})
+add_precompiled_header(bluefish StdAfx.h FORCEINCLUDE)
+
+include_directories(..)
+include_directories(../..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+include_directories(${BLUEFISH_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${ASMLIB_INCLUDE_PATH})
+
+set_target_properties(bluefish PROPERTIES FOLDER modules)
+source_group(sources ./*)
+source_group(sources\\consumer consumer/*)
+
+target_link_libraries(bluefish common core)
diff --git a/modules/decklink/CMakeLists.txt b/modules/decklink/CMakeLists.txt
new file mode 100644 (file)
index 0000000..632ccd9
--- /dev/null
@@ -0,0 +1,45 @@
+cmake_minimum_required (VERSION 2.6)
+project (decklink)
+
+set(SOURCES
+               consumer/decklink_consumer.cpp
+
+               interop/DeckLinkAPI_i.c
+
+               producer/decklink_producer.cpp
+
+               decklink.cpp
+               StdAfx.c
+               StdAfx.cpp
+)
+set(HEADERS
+               consumer/decklink_consumer.h
+
+               interop/DeckLinkAPI_h.h
+               interop/DeckLinkAPIVersion.h
+
+               producer/decklink_producer.h
+
+               util/util.h
+
+               decklink.h
+               StdAfx.h
+)
+
+add_library(decklink ${SOURCES} ${HEADERS})
+add_precompiled_header(decklink StdAfx.h FORCEINCLUDE)
+
+include_directories(..)
+include_directories(../..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+include_directories(${FFMPEG_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+
+set_target_properties(decklink PROPERTIES FOLDER modules)
+source_group(sources ./*)
+source_group(sources\\consumer consumer/*)
+source_group(sources\\interop interop/*)
+source_group(sources\\producer producer/*)
+
+target_link_libraries(decklink common core ffmpeg)
diff --git a/modules/ffmpeg/CMakeLists.txt b/modules/ffmpeg/CMakeLists.txt
new file mode 100644 (file)
index 0000000..65ecbdf
--- /dev/null
@@ -0,0 +1,74 @@
+cmake_minimum_required (VERSION 2.6)
+project (ffmpeg)
+
+set(SOURCES
+               consumer/ffmpeg_consumer.cpp
+
+               producer/audio/audio_decoder.cpp
+
+               producer/filter/filter.cpp
+
+               producer/input/input.cpp
+
+               producer/muxer/frame_muxer.cpp
+
+               producer/util/flv.cpp
+               producer/util/util.cpp
+
+               producer/video/video_decoder.cpp
+
+               producer/ffmpeg_producer.cpp
+               producer/tbb_avcodec.cpp
+
+               ffmpeg.cpp
+               ffmpeg_error.cpp
+               StdAfx.cpp
+)
+set(HEADERS
+               consumer/ffmpeg_consumer.h
+
+               producer/audio/audio_decoder.h
+
+               producer/filter/filter.h
+
+               producer/input/input.h
+
+               producer/muxer/display_mode.h
+               producer/muxer/frame_muxer.h
+
+               producer/util/flv.h
+               producer/util/util.h
+
+               producer/video/video_decoder.h
+
+               producer/ffmpeg_producer.h
+               producer/tbb_avcodec.h
+
+               ffmpeg.h
+               ffmpeg_error.h
+               StdAfx.h
+)
+
+add_library(ffmpeg ${SOURCES} ${HEADERS})
+add_precompiled_header(ffmpeg StdAfx.h FORCEINCLUDE)
+
+include_directories(..)
+include_directories(../..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+include_directories(${FFMPEG_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${ASMLIB_INCLUDE_PATH})
+
+set_target_properties(ffmpeg PROPERTIES FOLDER modules)
+source_group(sources ./*)
+source_group(sources\\consumer consumer/*)
+source_group(sources\\producer\\audio producer/audio/*)
+source_group(sources\\producer\\filter producer/filter/*)
+source_group(sources\\producer\\input producer/input/*)
+source_group(sources\\producer\\muxer producer/muxer/*)
+source_group(sources\\producer\\util producer/util/*)
+source_group(sources\\producer\\video producer/video/*)
+source_group(sources\\producer producer/*)
+
+target_link_libraries(ffmpeg common core)
diff --git a/modules/flash/CMakeLists.txt b/modules/flash/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1a0f3c6
--- /dev/null
@@ -0,0 +1,48 @@
+cmake_minimum_required (VERSION 2.6)
+project (flash)
+
+set(SOURCES
+               interop/Flash9e_i.c
+
+               producer/cg_proxy.cpp
+               producer/FlashAxContainer.cpp
+               producer/flash_producer.cpp
+
+               util/swf.cpp
+
+               flash.cpp
+               StdAfx.c
+               StdAfx.cpp
+)
+set(HEADERS
+               interop/axflash.h
+               interop/TimerHelper.h
+
+               producer/cg_proxy.h
+               producer/FlashAxContainer.h
+               producer/flash_producer.h
+
+               util/swf.h
+
+               flash.h
+               StdAfx.h
+)
+
+add_library(flash ${SOURCES} ${HEADERS})
+add_precompiled_header(flash StdAfx.h FORCEINCLUDE)
+
+include_directories(..)
+include_directories(../..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${FREEIMAGE_INCLUDE_PATH})
+include_directories(${ASMLIB_INCLUDE_PATH})
+
+set_target_properties(flash PROPERTIES FOLDER modules)
+source_group(sources\\interop interop/*)
+source_group(sources\\producer producer/*)
+source_group(sources\\util util/*)
+source_group(sources ./*)
+
+target_link_libraries(flash common core)
diff --git a/modules/image/CMakeLists.txt b/modules/image/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c68a05d
--- /dev/null
@@ -0,0 +1,44 @@
+cmake_minimum_required (VERSION 2.6)
+project (image)
+
+set(SOURCES
+               consumer/image_consumer.cpp
+
+               producer/image_producer.cpp
+               producer/image_scroll_producer.cpp
+
+               util/image_algorithms.cpp
+               util/image_loader.cpp
+
+               image.cpp
+)
+set(HEADERS
+               consumer/image_consumer.h
+
+               producer/image_producer.h
+               producer/image_scroll_producer.h
+
+               util/image_algorithms.h
+               util/image_loader.h
+               util/image_view.h
+
+               image.h
+)
+
+add_library(image ${SOURCES} ${HEADERS})
+
+include_directories(..)
+include_directories(../..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${FREEIMAGE_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+include_directories(${ASMLIB_INCLUDE_PATH})
+
+set_target_properties(image PROPERTIES FOLDER modules)
+source_group(sources\\consumer consumer/*)
+source_group(sources\\producer producer/*)
+source_group(sources\\util util/*)
+source_group(sources ./*)
+
+target_link_libraries(image common core)
diff --git a/modules/oal/CMakeLists.txt b/modules/oal/CMakeLists.txt
new file mode 100644 (file)
index 0000000..236ce16
--- /dev/null
@@ -0,0 +1,28 @@
+cmake_minimum_required (VERSION 2.6)
+project (oal)
+
+set(SOURCES
+               consumer/oal_consumer.cpp
+
+               oal.cpp
+)
+set(HEADERS
+               consumer/oal_consumer.h
+
+               oal.h
+)
+
+add_library(oal ${SOURCES} ${HEADERS})
+
+include_directories(..)
+include_directories(../..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+include_directories(${OPENAL_INCLUDE_PATH})
+
+set_target_properties(oal PROPERTIES FOLDER modules)
+source_group(sources\\consumer consumer/*)
+source_group(sources ./*)
+
+target_link_libraries(oal common core)
diff --git a/modules/psd/CMakeLists.txt b/modules/psd/CMakeLists.txt
new file mode 100644 (file)
index 0000000..dc98daa
--- /dev/null
@@ -0,0 +1,41 @@
+cmake_minimum_required (VERSION 2.6)
+project (psd)
+
+set(SOURCES
+               util/bigendian_file_input_stream.cpp
+               util/pdf_reader.cpp
+
+               descriptor.cpp
+               doc.cpp
+               layer.cpp
+               misc.cpp
+               psd_scene_producer.cpp
+               resource.cpp
+)
+set(HEADERS
+               util/bigendian_file_input_stream.h
+               util/pdf_reader.h
+
+               channel.h
+               descriptor.h
+               doc.h
+               image.h
+               layer.h
+               misc.h
+               psd_scene_producer.h
+               resource.h
+)
+
+add_library(psd ${SOURCES} ${HEADERS})
+
+include_directories(..)
+include_directories(../..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+
+set_target_properties(psd PROPERTIES FOLDER modules)
+source_group(sources\\util util/*)
+source_group(sources ./*)
+
+target_link_libraries(psd common core)
diff --git a/modules/reroute/CMakeLists.txt b/modules/reroute/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0a5ec82
--- /dev/null
@@ -0,0 +1,28 @@
+cmake_minimum_required (VERSION 2.6)
+project (reroute)
+
+set(SOURCES
+               producer/reroute_producer.cpp
+
+               stdafx.cpp
+)
+set(HEADERS
+               producer/reroute_producer.h
+
+               stdafx.h
+)
+
+add_library(reroute ${SOURCES} ${HEADERS})
+add_precompiled_header(reroute stdafx.h FORCEINCLUDE)
+
+include_directories(..)
+include_directories(../..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+
+set_target_properties(reroute PROPERTIES FOLDER modules)
+source_group(sources\\producer producer/*)
+source_group(sources ./*)
+
+target_link_libraries(reroute common core)
diff --git a/modules/screen/CMakeLists.txt b/modules/screen/CMakeLists.txt
new file mode 100644 (file)
index 0000000..417f78e
--- /dev/null
@@ -0,0 +1,31 @@
+cmake_minimum_required (VERSION 2.6)
+project (screen)
+
+set(SOURCES
+               consumer/screen_consumer.cpp
+
+               screen.cpp
+)
+set(HEADERS
+               consumer/screen_consumer.h
+
+               screen.h
+)
+
+add_library(screen ${SOURCES} ${HEADERS})
+
+include_directories(..)
+include_directories(../..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+include_directories(${GLEW_INCLUDE_PATH})
+include_directories(${SFML_INCLUDE_PATH})
+include_directories(${ASMLIB_INCLUDE_PATH})
+include_directories(${FFMPEG_INCLUDE_PATH})
+
+set_target_properties(screen PROPERTIES FOLDER modules)
+source_group(sources\\consumer consumer/*)
+source_group(sources ./*)
+
+target_link_libraries(screen common core ffmpeg)
diff --git a/protocol/CMakeLists.txt b/protocol/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ebf9f16
--- /dev/null
@@ -0,0 +1,86 @@
+cmake_minimum_required (VERSION 2.6)
+project (protocol)
+
+set(SOURCES
+               amcp/AMCPCommandQueue.cpp
+               amcp/AMCPCommandsImpl.cpp
+               amcp/AMCPProtocolStrategy.cpp
+
+               asio/io_service_manager.cpp
+
+               cii/CIICommandsImpl.cpp
+               cii/CIIProtocolStrategy.cpp
+
+               clk/CLKProtocolStrategy.cpp
+               clk/clk_commands.cpp
+               clk/clk_command_processor.cpp
+
+               osc/oscpack/OscOutboundPacketStream.cpp
+               osc/oscpack/OscPrintReceivedElements.cpp
+               osc/oscpack/OscReceivedElements.cpp
+               osc/oscpack/OscTypes.cpp
+
+               osc/client.cpp
+
+               util/AsyncEventServer.cpp
+               util/lock_container.cpp
+               util/strategy_adapters.cpp
+
+               StdAfx.cpp
+)
+set(HEADERS
+               amcp/AMCPCommand.h
+               amcp/AMCPCommandQueue.h
+               amcp/AMCPCommandsImpl.h
+               amcp/AMCPProtocolStrategy.h
+               amcp/amcp_shared.h
+
+               asio/io_service_manager.h
+
+               cii/CIICommand.h
+               cii/CIICommandsImpl.h
+               cii/CIIProtocolStrategy.h
+
+               clk/CLKProtocolStrategy.h
+               clk/clk_commands.h
+               clk/clk_command_processor.h
+
+               osc/oscpack/MessageMappingOscPacketListener.h
+               osc/oscpack/OscException.h
+               osc/oscpack/OscHostEndianness.h
+               osc/oscpack/OscOutboundPacketStream.h
+               osc/oscpack/OscPacketListener.h
+               osc/oscpack/OscPrintReceivedElements.h
+               osc/oscpack/OscReceivedElements.h
+               osc/oscpack/OscTypes.h
+
+               osc/client.h
+
+               util/AsyncEventServer.h
+               util/ClientInfo.h
+               util/lock_container.h
+               util/ProtocolStrategy.h
+               util/protocol_strategy.h
+               util/strategy_adapters.h
+
+               StdAfx.h
+)
+
+add_library(protocol ${SOURCES} ${HEADERS})
+add_precompiled_header(protocol StdAfx.h FORCEINCLUDE)
+
+include_directories(..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+
+source_group(sources\\amcp amcp/*)
+source_group(sources\\asio asio/*)
+source_group(sources\\cii cii/*)
+source_group(sources\\clk clk/*)
+source_group(sources\\osc\\oscpack osc/oscpack/*)
+source_group(sources\\osc osc/*)
+source_group(sources\\util util/*)
+source_group(sources ./*)
+
+target_link_libraries(protocol common core ffmpeg flash reroute)
diff --git a/shell/CMakeLists.txt b/shell/CMakeLists.txt
new file mode 100644 (file)
index 0000000..613a9e5
--- /dev/null
@@ -0,0 +1,62 @@
+cmake_minimum_required (VERSION 2.6)
+project (shell)
+
+set(SOURCES
+               main.cpp
+               server.cpp
+               stdafx.cpp
+)
+set(HEADERS
+               resource.h
+               server.h
+               stdafx.h
+)
+
+add_executable(shell ${SOURCES} ${HEADERS})
+add_precompiled_header(shell stdafx.h FORCEINCLUDE)
+
+include_directories(..)
+include_directories(${BOOST_INCLUDE_PATH})
+include_directories(${RXCPP_INCLUDE_PATH})
+include_directories(${TBB_INCLUDE_PATH})
+
+source_group(sources ./*)
+
+target_link_libraries(shell
+               accelerator
+               common
+               core
+               protocol
+
+               bluefish
+               decklink
+               ffmpeg
+               flash
+               image
+               oal
+               psd
+               reroute
+               screen
+
+               alibcof64.lib
+               jpeg.lib
+               sndfile.lib
+               sfml-system-2.lib
+               sfml-window-2.lib
+               sfml-graphics-2.lib
+               Winmm.lib
+               Ws2_32.lib
+               avformat.lib
+               avcodec.lib
+               avutil.lib
+               avfilter.lib
+               swscale.lib
+               swresample.lib
+               tbb.lib
+               OpenGL32.lib
+               glew32.lib
+               openal32.lib
+               FreeImage.lib
+               freetype.lib
+               zlibstat.lib
+)