Skip to content

Commit

Permalink
fixed cargs64, added more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Mar 8, 2024
1 parent ce4ca18 commit af96797
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ But for effency and maintainability we decided to work with a fixed header size
To send a RGB24 image of 4x2 pixels, you have to sent these two packages:

```
0x 0x 0x 0x 0x 0x 0x 0x 0x 0x00 // "DMDStream"
0x44 0x4d 0x44 0x53 0x74 0x72 0x65 0x61 0x6d 0x00 // "DMDStream"
0x01 // Version 1
0x02 // Mode::RGB24
0x04 0x00 // width 4 (if your system is big endian, the byte order needs to be swapped)
Expand Down
25 changes: 25 additions & 0 deletions platforms/win/x64/cargs/001.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,28 @@ index b6f828f..6be0845 100644
set(INCLUDE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include")
set(SOURCE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src")

@@ -51,12 +51,12 @@
$<BUILD_INTERFACE:${INCLUDE_DIRECTORY}>
$<INSTALL_INTERFACE:include>
)
-set_target_properties(cargs PROPERTIES PUBLIC_HEADER "${INCLUDE_DIRECTORY}/cargs.h")
-set_target_properties(cargs PROPERTIES DEFINE_SYMBOL CAG_EXPORTS)
+set_target_properties(cargs64 PROPERTIES PUBLIC_HEADER "${INCLUDE_DIRECTORY}/cargs.h")
+set_target_properties(cargs64 PROPERTIES DEFINE_SYMBOL CAG_EXPORTS)

# add shared library macro
if(BUILD_SHARED_LIBS)
- target_compile_definitions(cargs PUBLIC CAG_SHARED)
+ target_compile_definitions(cargs64 PUBLIC CAG_SHARED)
endif()

# add tests
@@ -104,7 +104,7 @@
COMPATIBILITY SameMajorVersion)

# installing
-install(TARGETS cargs
+install(TARGETS cargs64
EXPORT CargsTargets)

install(FILES

0 comments on commit af96797

Please sign in to comment.