git.ao2.it - libam7xxx.git/rss - src/CMakeLists.txt history https://git.ao2.it/libam7xxx.git/history?f=src/CMakeLists.txt Open Source library to communicate via USB with Projectors and Digital Picture Frames based on the Actions Micro AM7XXX family of ICs en Antonio Ospite /static/git-logo.png git.ao2.it - libam7xxx.git/rss - src/CMakeLists.txt history https://git.ao2.it/libam7xxx.git/history?f=src/CMakeLists.txt Fri, 2 Mar 2018 17:28:14 +0000 Fri, 2 Mar 2018 17:28:14 +0000 gitweb v.2.1.4/2.1.4 CMakeLists.txt: use GNUInstallDirs Antonio Ospite <ao2@ao2.it> Fri, 2 Mar 2018 12:40:48 +0000 https://git.ao2.it/libam7xxx.git/commitdiff/bf64f1248765470b023d49e311cdcfc4b7b4fc7a https://git.ao2.it/libam7xxx.git/commitdiff/bf64f1248765470b023d49e311cdcfc4b7b4fc7a CMakeLists.txt: use GNUInstallDirs CMakeLists.txt: use GNUInstallDirs This fixes installation in multi-arch paths on systems which supports that.
  • [D] src/CMakeLists.txt
]]>
am7xxx: fix C99 conformance for printf & co. when compiling with MinGW Antonio Ospite <ao2@ao2.it> Tue, 27 Feb 2018 16:03:36 +0000 https://git.ao2.it/libam7xxx.git/commitdiff/bbebd199987581ee6f344c89bfb02237dc0ab0bd https://git.ao2.it/libam7xxx.git/commitdiff/bbebd199987581ee6f344c89bfb02237dc0ab0bd am7xxx: fix C99 conformance for printf & co. when compiling with MinGW am7xxx: fix C99 conformance for printf & co. when compiling with MinGW C99 format specifiers like "%hhd" are used with log_message() but MinGW (and Windows) does not really supports them, so the compiler suggests to use the "gnu_printf" attribute for the function. However "gnu_printf"is not available on clang so it's not an option, a better alternative is the solution suggested by MinGW at https://sourceforge.net/p/mingw-w64/wiki2/gnu%20printf/ The change fixes the following warnings when compiling with MinGW: .../libam7xxx/src/am7xxx.c: In function ‘log_message’: .../libam7xxx/src/am7xxx.c:647:3: warning: function ‘log_message’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] vfprintf(stderr, fmt, ap); ^~~~~~~~ .../libam7xxx/src/am7xxx.c: In function ‘open_device’: .../libam7xxx/src/am7xxx.c:772:15: warning: unknown conversion type character ‘h’ in format [-Wformat=] debug(ctx, "Cannot set configuration %hhu\n", ^ .../libam7xxx/src/am7xxx.c:65:85: note: in definition of macro ‘debug’ #define debug(ctx, ...) log_message(ctx, AM7XXX_LOG_DEBUG, __func__, 0, __VA_ARGS__) ^~~~~~~~~~~ .../libam7xxx/src/am7xxx.c:772:15: warning: too many arguments for format [-Wformat-extra-args] debug(ctx, "Cannot set configuration %hhu\n", ^ .../libam7xxx/src/am7xxx.c:65:85: note: in definition of macro ‘debug’ #define debug(ctx, ...) log_message(ctx, AM7XXX_LOG_DEBUG, __func__, 0, __VA_ARGS__) ^~~~~~~~~~~ .../libam7xxx/src/am7xxx.c:785:14: warning: unknown conversion type character ‘h’ in format [-Wformat=] debug(ctx, "Cannot claim interface %hhu\n", ^ .../libam7xxx/src/am7xxx.c:65:85: note: in definition of macro ‘debug’ #define debug(ctx, ...) log_message(ctx, AM7XXX_LOG_DEBUG, __func__, 0, __VA_ARGS__) ^~~~~~~~~~~ .../libam7xxx/src/am7xxx.c:785:14: warning: too many arguments for format [-Wformat-extra-args] debug(ctx, "Cannot claim interface %hhu\n", ^ .../libam7xxx/src/am7xxx.c:65:85: note: in definition of macro ‘debug’ #define debug(ctx, ...) log_message(ctx, AM7XXX_LOG_DEBUG, __func__, 0, __VA_ARGS__) ^~~~~~~~~~~ .../libam7xxx/src/am7xxx.c:803:14: warning: unknown conversion type character ‘h’ in format [-Wformat=] debug(ctx, "libusb configuration changed (expected: %hhu, current: %d)\n", ^ .../libam7xxx/src/am7xxx.c:65:85: note: in definition of macro ‘debug’ #define debug(ctx, ...) log_message(ctx, AM7XXX_LOG_DEBUG, __func__, 0, __VA_ARGS__) ^~~~~~~~~~~ .../libam7xxx/src/am7xxx.c:803:14: warning: too many arguments for format [-Wformat-extra-args] debug(ctx, "libusb configuration changed (expected: %hhu, current: %d)\n", ^ .../libam7xxx/src/am7xxx.c:65:85: note: in definition of macro ‘debug’ #define debug(ctx, ...) log_message(ctx, AM7XXX_LOG_DEBUG, __func__, 0, __VA_ARGS__) ^~~~~~~~~~~
  • [D] src/CMakeLists.txt
]]>
src/CMakeLists.txt: fix a compilation warning about _BSD_SOURCE deprecation Antonio Ospite <ao2@ao2.it> Wed, 29 Jun 2016 17:32:29 +0000 https://git.ao2.it/libam7xxx.git/commitdiff/2e84fd6b3f5aca431b34b4b8eda536f1cedec930 https://git.ao2.it/libam7xxx.git/commitdiff/2e84fd6b3f5aca431b34b4b8eda536f1cedec930 src/CMakeLists.txt: fix a compilation warning about _BSD_SOURCE deprecation src/CMakeLists.txt: fix a compilation warning about _BSD_SOURCE deprecation Fix this warning from recent compilers: # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
  • [D] src/CMakeLists.txt
]]>
am7xxx: bump _POSIX_C_SOURCE to 200112L for lroundf() Antonio Ospite <ao2@ao2.it> Tue, 17 Nov 2015 17:42:39 +0000 https://git.ao2.it/libam7xxx.git/commitdiff/80f9d332324848b878fca92f7097aa8fb71ec423 https://git.ao2.it/libam7xxx.git/commitdiff/80f9d332324848b878fca92f7097aa8fb71ec423 am7xxx: bump _POSIX_C_SOURCE to 200112L for lroundf() am7xxx: bump _POSIX_C_SOURCE to 200112L for lroundf() The library code uses lroundf() from math.h but some compilers may warn about an implicit definition of it, so make sure it it actually available by following the requirements from the LROUND(3) man page.
  • [D] src/CMakeLists.txt
]]>
am7xxx: add a msleep() implementation in tools.[ch] Antonio Ospite <ao2@ao2.it> Wed, 7 May 2014 15:46:50 +0000 https://git.ao2.it/libam7xxx.git/commitdiff/2aaeac65529d1bd4a030c3c15728143c66b141dd https://git.ao2.it/libam7xxx.git/commitdiff/2aaeac65529d1bd4a030c3c15728143c66b141dd am7xxx: add a msleep() implementation in tools.[ch] am7xxx: add a msleep() implementation in tools.[ch]
  • [D] src/CMakeLists.txt
]]>
am7xxx: don't look for the math library when compiling for Windows Antonio Ospite <ospite@studenti.unina.it> Thu, 10 May 2012 07:34:01 +0000 https://git.ao2.it/libam7xxx.git/commitdiff/5ec0c02655b87bec6958ea4f84d8733ab5e37214 https://git.ao2.it/libam7xxx.git/commitdiff/5ec0c02655b87bec6958ea4f84d8733ab5e37214 am7xxx: don't look for the math library when compiling for Windows am7xxx: don't look for the math library when compiling for Windows
  • [D] src/CMakeLists.txt
]]>
am7xxx: round scaled_height and scaled_width Antonio Ospite <ospite@studenti.unina.it> Wed, 21 Mar 2012 13:47:20 +0000 https://git.ao2.it/libam7xxx.git/commitdiff/7b5a3f952c23daed53a37422db0972950071fc55 https://git.ao2.it/libam7xxx.git/commitdiff/7b5a3f952c23daed53a37422db0972950071fc55 am7xxx: round scaled_height and scaled_width am7xxx: round scaled_height and scaled_width Round when converting from float to int, this is more like what the user expects about image dimensions.
  • [D] src/CMakeLists.txt
]]>
picoproj: move it to an example/ directory Antonio Ospite <ospite@studenti.unina.it> Thu, 8 Mar 2012 13:22:20 +0000 https://git.ao2.it/libam7xxx.git/commitdiff/1608665f4fd202a072531ae3a582eca87b344137 https://git.ao2.it/libam7xxx.git/commitdiff/1608665f4fd202a072531ae3a582eca87b344137 picoproj: move it to an example/ directory 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] src/CMakeLists.txt
]]>
cosmetics: remove some unneeded white spaces Antonio Ospite <ospite@studenti.unina.it> Thu, 1 Mar 2012 22:47:00 +0000 https://git.ao2.it/libam7xxx.git/commitdiff/700234936a4c16e3e5bc867a5abd91bf18fd422f https://git.ao2.it/libam7xxx.git/commitdiff/700234936a4c16e3e5bc867a5abd91bf18fd422f cosmetics: remove some unneeded white spaces cosmetics: remove some unneeded white spaces
  • [D] src/CMakeLists.txt
]]>
Serialize struct am7xxx_header properly before sending it on the wire Antonio Ospite <ospite@studenti.unina.it> Tue, 24 Jan 2012 12:38:35 +0000 https://git.ao2.it/libam7xxx.git/commitdiff/5e7d217e7f1d40fbfb6bc6375421a21bd5572788 https://git.ao2.it/libam7xxx.git/commitdiff/5e7d217e7f1d40fbfb6bc6375421a21bd5572788 Serialize struct am7xxx_header properly before sending it on the wire Serialize struct am7xxx_header properly before sending it on the wire That is in order to: 1. keep data in the structs always in the host native byte order, this is more natural and less error prone as we might forget to use htole32() when setting struct fields or le32toh() when accessing them; 2. be more portable: this way the buffer sent to the wire is independent of struct alignments or paddings introduced by compilers or required by a particular architecture.
  • [D] src/CMakeLists.txt
]]>
Use Cmake and make libam7xxx a shared library Antonio Ospite <ospite@studenti.unina.it> Fri, 13 Jan 2012 02:20:14 +0000 https://git.ao2.it/libam7xxx.git/commitdiff/3339bee3f62dbfa3586cc4db5201f7fc704ab037 https://git.ao2.it/libam7xxx.git/commitdiff/3339bee3f62dbfa3586cc4db5201f7fc704ab037 Use Cmake and make libam7xxx a shared library Use Cmake and make libam7xxx a shared library Also move the source code to a src/ subdirectory in order to avoid cluttering the project root dir.
  • [D] src/CMakeLists.txt
]]>