Skip to content

Commit

Permalink
fix win32 resource
Browse files Browse the repository at this point in the history
  • Loading branch information
julesgrc0 committed Mar 1, 2024
1 parent aad1069 commit 9555944
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[submodule "libs/raylib"]
path = libs/raylib
url = https://github.com/raysan5/raylib.git
ignore = dirty
[submodule "libs/zlib"]
path = libs/zlib
url = https://github.com/madler/zlib.git
ignore = dirty
[submodule "libs/json-c"]
path = libs/json-c
url = https://github.com/json-c/json-c.git
ignore = dirty
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ elseif(UNIX AND NOT ANDROID)
)
add_dependencies(${PROJECT_NAME} link_resource)
target_link_libraries(${PROJECT_NAME} PRIVATE raylib zlibstatic json-c pthread ${CMAKE_BINARY_DIR}/resource.o)
elseif(MSVC)
elseif(WIN32)
list(APPEND SOURCES "src/resource.rc")

add_executable(${PROJECT_NAME} WIN32 ${SOURCES})
target_link_libraries(${PROJECT_NAME} PRIVATE raylib zlibstatic json-c)
else()
Expand Down
16 changes: 9 additions & 7 deletions src/resource.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#define IDR_ASSETS_PACK1 101
#define IDR_ASSETS_PACK1 101

#if defined(APSTUDIO_INVOKED) && !defined(APSTUDIO_READONLY_SYMBOLS)
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif // APSTUDIO_INVOKED
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
Binary file modified src/resource.rc
Binary file not shown.
Binary file modified tools/resource.pack
Binary file not shown.

0 comments on commit 9555944

Please sign in to comment.