git.ao2.it - libam7xxx.git/atom - examples/CMakeLists.txt history Open Source library to communicate via USB with Projectors and Digital Picture Frames based on the Actions Micro AM7XXX family of ICs https://git.ao2.it/libam7xxx.git Antonio Ospite /ao2_git_icon.png /static/git-logo.png 2018-03-02T17:28:14Z gitweb CMakeLists.txt: use GNUInstallDirs 2018-03-02T12:40:48Z Antonio Ospite ao2@ao2.it Antonio Ospite ao2@ao2.it 2018-03-02T12:40:48Z https://git.ao2.it/libam7xxx.git/commitdiff/bf64f1248765470b023d49e311cdcfc4b7b4fc7a
CMakeLists.txt: use GNUInstallDirs

This fixes installation in multi-arch paths on systems which supports that.
  • [D] examples/CMakeLists.txt
examples/CMakeLists.txt: restrict required libraries for avformat_open_input() 2018-02-26T14:39:12Z Antonio Ospite ao2@ao2.it Antonio Ospite ao2@ao2.it 2018-02-26T14:39:12Z https://git.ao2.it/libam7xxx.git/commitdiff/c1f05e49330d3d6928a47017d1c04309bc08ab98
examples/CMakeLists.txt: restrict required libraries for avformat_open_input()

When checking if avformat_open_input() exists, link only with
FFMPEG_LIBAVFORMAT_LIBRARIES, this is more essential and also more
symmetric from a readability point of view.
  • [D] examples/CMakeLists.txt
examples/CMakeLists.txt: use a relative path for the include file 2018-02-26T14:01:40Z Antonio Ospite ao2@ao2.it Antonio Ospite ao2@ao2.it 2018-02-26T14:01:40Z https://git.ao2.it/libam7xxx.git/commitdiff/8e33a2b69844bc4c48e005ad2902ebf0d1be51f7
examples/CMakeLists.txt: use a relative path for the include file

This is the correct way to include a file when calling
check_symbol_exists(), since the include paths are already set with:

  set(CMAKE_REQUIRED_INCLUDES ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS})
  • [D] examples/CMakeLists.txt
examples/CMakeLists.txt: clean up Feature Test Macro Requirements defines 2016-06-29T17:35:21Z Antonio Ospite ao2@ao2.it Antonio Ospite ao2@ao2.it 2016-06-29T17:35:21Z https://git.ao2.it/libam7xxx.git/commitdiff/74b58c54e60a2fe4e44e1b1bca4ef3f9cfd95f5e
examples/CMakeLists.txt: clean up Feature Test Macro Requirements defines

Setting _POSIX_C_SOURCE to the right value enables all the needed
functionalities.

This also avoids using _DEFAULT_SOURCE explicitly to get rid of the
_BSD_SOURCE deprecation warning.
  • [D] examples/CMakeLists.txt
Strip trailing spaces here and there 2015-11-17T14:46:15Z Antonio Ospite ao2@ao2.it Antonio Ospite ao2@ao2.it 2015-11-17T14:46:15Z https://git.ao2.it/libam7xxx.git/commitdiff/e691b17f2c134d1380f3c5d3dc25b3ec1ac9106f
Strip trailing spaces here and there
  • [D] examples/CMakeLists.txt
examples: fix handling optional libraries in target_link_libraries() 2014-12-30T22:47:04Z Antonio Ospite ao2@ao2.it Antonio Ospite ao2@ao2.it 2014-12-30T22:47:04Z https://git.ao2.it/libam7xxx.git/commitdiff/62489117acb91236f2266c04231dfcd755255d96
examples: fix handling optional libraries in target_link_libraries()

am7xxx-play can compile just fine without XCB, but cmake was being
overly strict when XCB was missing.
  • [D] examples/CMakeLists.txt
Rename am7xxx_mode_switch to am7xxx-modeswitch 2013-07-27T21:25:34Z Antonio Ospite ospite@studenti.unina.it Antonio Ospite ospite@studenti.unina.it 2013-07-27T21:25:34Z https://git.ao2.it/libam7xxx.git/commitdiff/9929ba27d2c28ef364ecdd7b27120f0fe7000a8c
Rename am7xxx_mode_switch to am7xxx-modeswitch

The new name matches more closely the name of the binary used in recent
usb-modeswitch versions.
  • [D] examples/CMakeLists.txt
am7xxx-play: check if strtok_r is available 2012-05-22T14:23:10Z Antonio Ospite ospite@studenti.unina.it Antonio Ospite ospite@studenti.unina.it 2012-05-22T14:23:10Z https://git.ao2.it/libam7xxx.git/commitdiff/83597605a10608165103f6e6ed61889fbb928511
am7xxx-play: check if strtok_r is available

On Windows systems, where strtok_r is not available, strtok_s could be
used but this needs the C Run-Time library (msvcrt.dll or msvcr80.dll)
and we can't distribute it.

So for now, when strtok_r is not available, just print a message to warn
the user that the '-o' options is not available.
  • [D] examples/CMakeLists.txt
am7xxx-play: check if sigaction is available 2012-05-22T14:21:25Z Antonio Ospite ospite@studenti.unina.it Antonio Ospite ospite@studenti.unina.it 2012-05-22T14:21:25Z https://git.ao2.it/libam7xxx.git/commitdiff/38fb8a1d547de6d09137d076baffa94505335f96
am7xxx-play: check if sigaction is available

If sigaction is not available just stub out the set_signal_handler()
function.
  • [D] examples/CMakeLists.txt
Add a simple usb_mode_switch clone for am7xxx devices 2012-05-11T19:50:36Z Antonio Ospite ospite@studenti.unina.it Antonio Ospite ospite@studenti.unina.it 2012-05-11T19:50:36Z https://git.ao2.it/libam7xxx.git/commitdiff/2564604d1968bec8a651e7f9d1bca4bf87b3672f
Add a simple usb_mode_switch clone for am7xxx devices

Add am7xxx_mode_switch, this is will be used on systems where
usb_mode_switch is not easily available (e.g. MS Windows).
  • [D] examples/CMakeLists.txt
Stop CMake if function avformat_open_input not available, 2012-04-07T10:39:43Z Reto Schneider github@reto-schneider.ch Reto Schneider github@reto-schneider.ch 2012-04-07T10:39:43Z https://git.ao2.it/libam7xxx.git/commitdiff/a07b63bc2947bc34d370f6f3535a527b6ac1dbc1
Stop CMake if function avformat_open_input not available,
print an error message. Prevents compile errors later on.
  • [D] examples/CMakeLists.txt
Make example programs optional. 2012-04-07T06:39:33Z Reto Schneider github@reto-schneider.ch Reto Schneider github@reto-schneider.ch 2012-04-07T06:39:33Z https://git.ao2.it/libam7xxx.git/commitdiff/e35feb78b2b73540e294602b68ef6c54d35922f4
Make example programs optional.
  • [D] examples/CMakeLists.txt
Link to all ffmpeg libraries, not just to avdevice. 2012-03-18T22:45:48Z Reto Schneider github@reto-schneider.ch Reto Schneider github@reto-schneider.ch 2012-03-18T22:45:48Z https://git.ao2.it/libam7xxx.git/commitdiff/8f7b53699838c5d9895eeb8995bb74b38a5f733e
Link to all ffmpeg libraries, not just to avdevice.
  • [D] examples/CMakeLists.txt
examples: add a am7xxx-play example program 2012-03-15T14:30:28Z Antonio Ospite ospite@studenti.unina.it Antonio Ospite ospite@studenti.unina.it 2012-03-15T14:30:28Z https://git.ao2.it/libam7xxx.git/commitdiff/24924e4869890878be88a1c6c324d2fe9ee8f087
examples: add a am7xxx-play example program

am7xxx-play is a simple player based on ffmpeg/libav which displays the
output on a am7xxx device. It can be used to capture the desktop screen,
or video from a v4l2 device, or from any other device supported by
libavdevice including video files.

However it is to note that am7xxx-play displays the output as fast as it
can so it is not reliable when used to display video files directly.
  • [D] examples/CMakeLists.txt
picoproj: move it to an example/ directory 2012-03-08T13:22:20Z Antonio Ospite ospite@studenti.unina.it Antonio Ospite ospite@studenti.unina.it 2012-03-08T13:22:20Z https://git.ao2.it/libam7xxx.git/commitdiff/1608665f4fd202a072531ae3a582eca87b344137
picoproj: move it to an example/ directory

We plan on adding some more useful examples in the future, so it is
better to have them all in their separate directory in order to make the
project structure easier to understand.
  • [D] examples/CMakeLists.txt