Permalink
Browse files

Removed the C binding (moved to its own repository)

  • Loading branch information...
1 parent a198d1e commit bdbfe2b0b586adcbd6436066bdd4564ea52a464c @LaurentGomila LaurentGomila committed Jul 6, 2011
Showing with 0 additions and 19,088 deletions.
  1. +0 −60 bindings/c/CMakeLists.txt
  2. +0 −48 bindings/c/cmake/Config.cmake
  3. +0 −95 bindings/c/cmake/Macros.cmake
  4. +0 −50 bindings/c/doc/CMakeLists.txt
  5. +0 −1,513 bindings/c/doc/doxyfile.in
  6. +0 −681 bindings/c/doc/doxygen.css
  7. +0 −8 bindings/c/doc/footer.htm
  8. +0 −12 bindings/c/doc/header.htm
  9. BIN bindings/c/doc/logo-bg.jpg
  10. BIN bindings/c/doc/logo.jpg
  11. +0 −94 bindings/c/doc/mainpage.hpp
  12. +0 −41 bindings/c/include/SFML/Audio.h
  13. +0 −91 bindings/c/include/SFML/Audio/Listener.h
  14. +0 −292 bindings/c/include/SFML/Audio/Music.h
  15. +0 −278 bindings/c/include/SFML/Audio/Sound.h
  16. +0 −151 bindings/c/include/SFML/Audio/SoundBuffer.h
  17. +0 −91 bindings/c/include/SFML/Audio/SoundBufferRecorder.h
  18. +0 −103 bindings/c/include/SFML/Audio/SoundRecorder.h
  19. +0 −42 bindings/c/include/SFML/Audio/SoundStatus.h
  20. +0 −294 bindings/c/include/SFML/Audio/SoundStream.h
  21. +0 −36 bindings/c/include/SFML/Audio/Types.h
  22. +0 −150 bindings/c/include/SFML/Config.h
  23. +0 −46 bindings/c/include/SFML/Graphics.h
  24. +0 −46 bindings/c/include/SFML/Graphics/BlendMode.h
  25. +0 −107 bindings/c/include/SFML/Graphics/Color.h
  26. +0 −132 bindings/c/include/SFML/Graphics/Font.h
  27. +0 −45 bindings/c/include/SFML/Graphics/Glyph.h
  28. +0 −246 bindings/c/include/SFML/Graphics/Image.h
  29. +0 −81 bindings/c/include/SFML/Graphics/Rect.h
  30. +0 −206 bindings/c/include/SFML/Graphics/RenderImage.h
  31. +0 −385 bindings/c/include/SFML/Graphics/RenderWindow.h
  32. +0 −157 bindings/c/include/SFML/Graphics/Shader.h
  33. +0 −464 bindings/c/include/SFML/Graphics/Shape.h
  34. +0 −403 bindings/c/include/SFML/Graphics/Sprite.h
  35. +0 −434 bindings/c/include/SFML/Graphics/Text.h
  36. +0 −40 bindings/c/include/SFML/Graphics/Types.h
  37. +0 −209 bindings/c/include/SFML/Graphics/View.h
  38. +0 −41 bindings/c/include/SFML/Network.h
  39. +0 −449 bindings/c/include/SFML/Network/Ftp.h
  40. +0 −257 bindings/c/include/SFML/Network/Http.h
  41. +0 −131 bindings/c/include/SFML/Network/IpAddress.h
  42. +0 −158 bindings/c/include/SFML/Network/Packet.h
  43. +0 −118 bindings/c/include/SFML/Network/SocketSelector.h
  44. +0 −43 bindings/c/include/SFML/Network/SocketStatus.h
  45. +0 −97 bindings/c/include/SFML/Network/TcpListener.h
  46. +0 −172 bindings/c/include/SFML/Network/TcpSocket.h
  47. +0 −43 bindings/c/include/SFML/Network/Types.h
  48. +0 −162 bindings/c/include/SFML/Network/UdpSocket.h
  49. +0 −58 bindings/c/include/SFML/OpenGL.h
  50. +0 −39 bindings/c/include/SFML/System.h
  51. +0 −80 bindings/c/include/SFML/System/Clock.h
  52. +0 −68 bindings/c/include/SFML/System/Mutex.h
  53. +0 −43 bindings/c/include/SFML/System/Sleep.h
  54. +0 −80 bindings/c/include/SFML/System/Thread.h
  55. +0 −33 bindings/c/include/SFML/System/Types.h
  56. +0 −42 bindings/c/include/SFML/Window.h
  57. +0 −61 bindings/c/include/SFML/Window/Context.h
  58. +0 −178 bindings/c/include/SFML/Window/Event.h
  59. +0 −102 bindings/c/include/SFML/Window/Input.h
  60. +0 −135 bindings/c/include/SFML/Window/Joystick.h
  61. +0 −156 bindings/c/include/SFML/Window/Keyboard.h
  62. +0 −74 bindings/c/include/SFML/Window/Mouse.h
  63. +0 −33 bindings/c/include/SFML/Window/Types.h
  64. +0 −77 bindings/c/include/SFML/Window/VideoMode.h
  65. +0 −319 bindings/c/include/SFML/Window/Window.h
  66. +0 −57 bindings/c/include/SFML/Window/WindowHandle.h
  67. +0 −31 bindings/c/license.txt
  68. +0 −34 bindings/c/src/SFML/Audio/CMakeLists.txt
  69. +0 −96 bindings/c/src/SFML/Audio/Listener.cpp
  70. +0 −297 bindings/c/src/SFML/Audio/Music.cpp
  71. +0 −43 bindings/c/src/SFML/Audio/MusicStruct.h
  72. +0 −277 bindings/c/src/SFML/Audio/Sound.cpp
  73. +0 −157 bindings/c/src/SFML/Audio/SoundBuffer.cpp
  74. +0 −90 bindings/c/src/SFML/Audio/SoundBufferRecorder.cpp
  75. +0 −45 bindings/c/src/SFML/Audio/SoundBufferRecorderStruct.h
  76. +0 −43 bindings/c/src/SFML/Audio/SoundBufferStruct.h
  77. +0 −90 bindings/c/src/SFML/Audio/SoundRecorder.cpp
  78. +0 −102 bindings/c/src/SFML/Audio/SoundRecorderStruct.h
  79. +0 −265 bindings/c/src/SFML/Audio/SoundStream.cpp
  80. +0 −97 bindings/c/src/SFML/Audio/SoundStreamStruct.h
  81. +0 −45 bindings/c/src/SFML/Audio/SoundStruct.h
  82. +0 −33 bindings/c/src/SFML/CMakeLists.txt
  83. +0 −107 bindings/c/src/SFML/ConvertEvent.h
  84. +0 −46 bindings/c/src/SFML/Graphics/CMakeLists.txt
  85. +0 −102 bindings/c/src/SFML/Graphics/Color.cpp
  86. +0 −148 bindings/c/src/SFML/Graphics/Font.cpp
  87. +0 −46 bindings/c/src/SFML/Graphics/FontStruct.h
  88. +0 −254 bindings/c/src/SFML/Graphics/Image.cpp
  89. +0 −68 bindings/c/src/SFML/Graphics/ImageStruct.h
  90. +0 −100 bindings/c/src/SFML/Graphics/Rect.cpp
  91. +0 −248 bindings/c/src/SFML/Graphics/RenderImage.cpp
  92. +0 −48 bindings/c/src/SFML/Graphics/RenderImageStruct.h
  93. +0 −481 bindings/c/src/SFML/Graphics/RenderWindow.cpp
  94. +0 −46 bindings/c/src/SFML/Graphics/RenderWindowStruct.h
  95. +0 −167 bindings/c/src/SFML/Graphics/Shader.cpp
  96. +0 −43 bindings/c/src/SFML/Graphics/ShaderStruct.h
  97. +0 −469 bindings/c/src/SFML/Graphics/Shape.cpp
  98. +0 −43 bindings/c/src/SFML/Graphics/ShapeStruct.h
  99. +0 −405 bindings/c/src/SFML/Graphics/Sprite.cpp
  100. +0 −47 bindings/c/src/SFML/Graphics/SpriteStruct.h
  101. +0 −432 bindings/c/src/SFML/Graphics/Text.cpp
  102. +0 −49 bindings/c/src/SFML/Graphics/TextStruct.h
  103. +0 −215 bindings/c/src/SFML/Graphics/View.cpp
  104. +0 −43 bindings/c/src/SFML/Graphics/ViewStruct.h
  105. +0 −108 bindings/c/src/SFML/Internal.h
  106. +0 −9 bindings/c/src/SFML/Main/CMakeLists.txt
  107. +0 −44 bindings/c/src/SFML/Main/SFML_Main.cpp
  108. +0 −37 bindings/c/src/SFML/Network/CMakeLists.txt
  109. +0 −377 bindings/c/src/SFML/Network/Ftp.cpp
  110. +0 −93 bindings/c/src/SFML/Network/FtpStruct.h
  111. +0 −213 bindings/c/src/SFML/Network/Http.cpp
  112. +0 −61 bindings/c/src/SFML/Network/HttpStruct.h
  113. +0 −137 bindings/c/src/SFML/Network/IpAddress.cpp
  114. +0 −210 bindings/c/src/SFML/Network/Packet.cpp
  115. +0 −43 bindings/c/src/SFML/Network/PacketStruct.h
  116. +0 −142 bindings/c/src/SFML/Network/SocketSelector.cpp
  117. +0 −43 bindings/c/src/SFML/Network/SocketSelectorStruct.h
  118. +0 −94 bindings/c/src/SFML/Network/TcpListener.cpp
  119. +0 −43 bindings/c/src/SFML/Network/TcpListenerStruct.h
  120. +0 −179 bindings/c/src/SFML/Network/TcpSocket.cpp
  121. +0 −43 bindings/c/src/SFML/Network/TcpSocketStruct.h
  122. +0 −184 bindings/c/src/SFML/Network/UdpSocket.cpp
  123. +0 −43 bindings/c/src/SFML/Network/UdpSocketStruct.h
  124. +0 −24 bindings/c/src/SFML/System/CMakeLists.txt
  125. +0 −77 bindings/c/src/SFML/System/Clock.cpp
  126. +0 −43 bindings/c/src/SFML/System/ClockStruct.h
  127. +0 −66 bindings/c/src/SFML/System/Mutex.cpp
  128. +0 −43 bindings/c/src/SFML/System/MutexStruct.h
  129. +0 −39 bindings/c/src/SFML/System/Sleep.cpp
  130. +0 −78 bindings/c/src/SFML/System/Thread.cpp
  131. +0 −48 bindings/c/src/SFML/System/ThreadStruct.h
  132. +0 −29 bindings/c/src/SFML/Window/CMakeLists.txt
  133. +0 −57 bindings/c/src/SFML/Window/Context.cpp
  134. +0 −43 bindings/c/src/SFML/Window/ContextStruct.h
  135. +0 −84 bindings/c/src/SFML/Window/Joystick.cpp
  136. +0 −39 bindings/c/src/SFML/Window/Keyboard.cpp
  137. +0 −53 bindings/c/src/SFML/Window/Mouse.cpp
  138. +0 −84 bindings/c/src/SFML/Window/VideoMode.cpp
  139. +0 −346 bindings/c/src/SFML/Window/Window.cpp
  140. +0 −43 bindings/c/src/SFML/Window/WindowStruct.h
View
@@ -1,60 +0,0 @@
-
-cmake_minimum_required(VERSION 2.8)
-
-# set a default build type if none was provided
-# this has to be done before the project() instruction!
-if(NOT CMAKE_BUILD_TYPE)
- set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build (Debug or Release)" FORCE)
-endif()
-
-# project name
-project(CSFML)
-
-# include the configuration file
-include(${CMAKE_SOURCE_DIR}/cmake/Config.cmake)
-
-# setup version numbers
-set(VERSION_MAJOR 2)
-set(VERSION_MINOR 0)
-set(VERSION_PATCH 0)
-
-# add the CSFML header path
-include_directories(${CMAKE_SOURCE_DIR}/include)
-
-# force dynamic build (static build is not supported)
-set(BUILD_SHARED_LIBS TRUE)
-
-# add an option for building the API documentation
-set(BUILD_DOC FALSE CACHE BOOL "TRUE to generate the API documentation, FALSE to ignore it")
-
-# disable the rpath stuff
-set(CMAKE_SKIP_BUILD_RPATH TRUE)
-
-# define an option for choosing between static and dynamic C runtime (Windows only)
-if(WINDOWS)
- set(STATIC_STD_LIBS FALSE CACHE BOOL "TRUE to statically link to the standard libraries, FALSE to use them as DLLs")
-
- # for VC++, we can apply it globally by modifying the compiler flags
- if(COMPILER_MSVC AND STATIC_STD_LIBS)
- foreach(flag
- CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
- CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
- if(${flag} MATCHES "/MD")
- string(REGEX REPLACE "/MD" "/MT" ${flag} "${${flag}}")
- endif()
- endforeach()
- endif()
-endif()
-
-# add the subdirectories
-add_subdirectory(src/SFML)
-if(BUILD_DOC)
- add_subdirectory(doc)
-endif()
-
-# setup the install rules
-install(DIRECTORY include
- DESTINATION .
- COMPONENT devel
- PATTERN ".svn" EXCLUDE)
-install(FILES license.txt DESTINATION ${INSTALL_MISC_DIR})
@@ -1,48 +0,0 @@
-
-# detect the OS
-if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
- set(WINDOWS 1)
-elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- set(LINUX 1)
-elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
- set(MACOSX 1)
-else()
- message(WARNING "Unsupported operating system")
- return()
-endif()
-
-# detect the architecture
-# note: this test won't work for cross-compilation
-include(CheckTypeSize)
-check_type_size(void* SIZEOF_VOID_PTR)
-if(${SIZEOF_VOID_PTR} MATCHES "^8$")
- set(ARCH_BITS 64)
-else()
- set(ARCH_BITS 32)
-endif()
-
-# detect the compiler and its version
-if(CMAKE_COMPILER_IS_GNUCXX)
- set(COMPILER_GCC 1)
- execute_process(COMMAND "${CMAKE_CXX_COMPILER}" "-dumpversion" OUTPUT_VARIABLE GCC_VERSION_OUTPUT)
- string(REGEX REPLACE "([0-9]+\\.[0-9]+).*" "\\1" GCC_VERSION "${GCC_VERSION_OUTPUT}")
-elseif(MSVC_VERSION EQUAL 1400)
- set(COMPILER_MSVC 1)
- set(MSVC_VERSION 2005)
-elseif(MSVC_VERSION EQUAL 1500)
- set(COMPILER_MSVC 1)
- set(MSVC_VERSION 2008)
-elseif(MSVC_VERSION EQUAL 1600)
- set(COMPILER_MSVC 1)
- set(MSVC_VERSION 2010)
-else()
- message(WARNING "Unsupported compiler")
- return()
-endif()
-
-# define the install directory for miscellaneous files
-if(WINDOWS)
- set(INSTALL_MISC_DIR .)
-elseif(UNIX)
- set(INSTALL_MISC_DIR share/CSFML)
-endif()
@@ -1,95 +0,0 @@
-
-# some of these macros are inspired from the boost/cmake macros
-
-# check if a value is contained in a list
-# sets ${var} to TRUE if the value is found
-macro(csfml_list_contains var value)
- set(${var})
- foreach(value2 ${ARGN})
- if(${value} STREQUAL ${value2})
- set(${var} TRUE)
- endif()
- endforeach()
-endmacro()
-
-# parse a list of arguments and options
-# ex: sfml_parse_arguments(THIS "SOURCES;DEPENDS" "FLAG" FLAG SOURCES s1 s2 s3 DEPENDS d1 d2)
-# will define the following variables:
-# - THIS_SOURCES (s1 s2 s3)
-# - THIS_DEPENDS (d1 d2)
-# - THIS_FLAG TRUE
-macro(csfml_parse_arguments prefix arg_names option_names)
- foreach(arg_name ${arg_names})
- set(${prefix}_${arg_name})
- endforeach()
- foreach(option_name ${option_names})
- set(${prefix}_${option_name} FALSE)
- endforeach()
- set(current_arg_name)
- set(current_arg_list)
- foreach(arg ${ARGN})
- csfml_list_contains(is_arg_name ${arg} ${arg_names})
- if(is_arg_name)
- set(${prefix}_${current_arg_name} ${current_arg_list})
- set(current_arg_name ${arg})
- set(current_arg_list)
- else()
- csfml_list_contains(is_option ${arg} ${option_names})
- if(is_option)
- set(${prefix}_${arg} TRUE)
- else()
- set(current_arg_list ${current_arg_list} ${arg})
- endif()
- endif()
- endforeach()
- set(${prefix}_${current_arg_name} ${current_arg_list})
-endmacro()
-
-# add a new target which is a CSFML library
-# ex: csfml_add_library(sfml-graphics
-# SOURCES sprite.cpp image.cpp ...
-# DEPENDS sfml-window sfml-system)
-macro(csfml_add_library target)
-
- # parse the arguments
- csfml_parse_arguments(THIS "SOURCES;DEPENDS" "" ${ARGN})
-
- # create the target
- add_library(${target} ${THIS_SOURCES})
-
- # adjust the output file prefix/suffix to match our conventions
- if(WINDOWS)
- # include the major version number in Windows shared library names (but not import library names)
- set_target_properties(${target} PROPERTIES DEBUG_POSTFIX -d)
- set_target_properties(${target} PROPERTIES SUFFIX "-${VERSION_MAJOR}${CMAKE_SHARED_LIBRARY_SUFFIX}")
- else()
- set_target_properties(${target} PROPERTIES DEBUG_POSTFIX -d)
- endif()
- if (WINDOWS AND COMPILER_GCC)
- # on Windows/gcc get rid of "lib" prefix for shared libraries,
- # and transform the ".dll.a" suffix into ".a" for import libraries
- set_target_properties(${target} PROPERTIES PREFIX "")
- set_target_properties(${target} PROPERTIES IMPORT_SUFFIX ".a")
- endif()
-
- # set the version and soversion of the target (for compatible systems -- mostly Linuxes)
- set_target_properties(${target} PROPERTIES SOVERSION ${VERSION_MAJOR})
- set_target_properties(${target} PROPERTIES VERSION ${VERSION_MAJOR}.${VERSION_MINOR})
-
- # for gcc 4.x on Windows, apply the STATIC_STD_LIBS option if it is enabled
- if(WINDOWS AND COMPILER_GCC AND STATIC_STD_LIBS)
- if(${GCC_VERSION} MATCHES "4\\..*")
- set_target_properties(${target} PROPERTIES LINK_FLAGS "-static-libgcc -static-libstdc++")
- endif()
- endif()
-
- # link the target to its external dependencies (C++ SFML libraries)
- target_link_libraries(${target} ${THIS_DEPENDS})
-
- # add the install rule
- install(TARGETS ${target}
- RUNTIME DESTINATION bin COMPONENT bin
- LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT bin
- ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT devel)
-
-endmacro()
@@ -1,50 +0,0 @@
-
-# find doxygen
-find_package(Doxygen REQUIRED)
-
-# set the input and output documentation paths
-set(DOXYGEN_INPUT_DIR ${CMAKE_SOURCE_DIR})
-set(DOXYGEN_OUTPUT_DIR ${CMAKE_BINARY_DIR}/doc)
-
-# see if we can generate the CHM documentation
-if(WINDOWS)
- # if HHC is found, we can generate the CHM (compressed HTML) output
- find_program(DOXYGEN_HHC_PROGRAM
- NAMES hhc.exe
- PATHS "c:/Program Files/HTML Help Workshop"
- DOC "HTML Help Compiler program")
- if(DOXYGEN_HHC_PROGRAM)
- set(DOXYGEN_GENERATE_HTMLHELP YES)
- else()
- set(DOXYGEN_GENERATE_HTMLHELP NO)
- endif()
-else()
- set(DOXYGEN_HHC_PROGRAM)
- set(DOXYGEN_GENERATE_HTMLHELP NO)
-endif()
-
-# configure the source Doxyfile by copying it and replacing all @variables@
-set(DOXYGEN_CONFIGURED_INPUT ${DOXYGEN_OUTPUT_DIR}/doxyfile)
-configure_file(${DOXYGEN_INPUT_DIR}/doc/doxyfile.in ${DOXYGEN_CONFIGURED_INPUT} @ONLY)
-
-# copy the files needed by the documentation
-configure_file(${DOXYGEN_INPUT_DIR}/doc/doxygen.css ${DOXYGEN_OUTPUT_DIR}/html/doxygen.css COPYONLY)
-configure_file(${DOXYGEN_INPUT_DIR}/doc/logo.jpg ${DOXYGEN_OUTPUT_DIR}/html/logo.jpg COPYONLY)
-configure_file(${DOXYGEN_INPUT_DIR}/doc/logo-bg.jpg ${DOXYGEN_OUTPUT_DIR}/html/logo-bg.jpg COPYONLY)
-
-# target setup
-add_custom_target(doc
- COMMAND ${CMAKE_COMMAND} -E echo_append "Building API Documentation..."
- COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_CONFIGURED_INPUT}
- COMMAND ${CMAKE_COMMAND} -E echo "Done."
- WORKING_DIRECTORY ${DOXYGEN_INPUT_DIR})
-
-# setup install rules
-install(DIRECTORY ${DOXYGEN_OUTPUT_DIR}/html
- DESTINATION ${INSTALL_MISC_DIR}/doc
- COMPONENT doc)
-if(DOXYGEN_HHC_PROGRAM)
- install(FILES ${DOXYGEN_OUTPUT_DIR}/SFML.chm
- DESTINATION ${INSTALL_MISC_DIR}/doc
- COMPONENT doc)
-endif()
Oops, something went wrong.

0 comments on commit bdbfe2b

Please sign in to comment.