Skip to content

Commit

Permalink
Fixed binary output dir for MSVC Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Bhavye Mathur <[email protected]>
  • Loading branch information
BhavyeMathur committed Jan 10, 2024
1 parent e92a71c commit 608284b
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build goopylib
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 8
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 8 --target goopylib

- name: Upload Binaries
uses: test-room-7/action-update-file@v1
Expand Down
14 changes: 3 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
build/
out/
cmake-*/
goopylib-build/
docs/_build/
dist/
*.egg-info/
Expand All @@ -23,17 +22,10 @@ dist/
__pycache__/
*~

*.ilk
*.pdb

venv/
venv*/
.vs/
.idea/

wheelhouse/
main.py
/main.cpp
main.css
empty.cpp
*.log

*/libglfw.a
*/glfw3.lib
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/binaries/lib-${GOOPYLIB_P
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/binaries/lib-${GOOPYLIB_PLATFORM_NAME})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/binaries/lib-${GOOPYLIB_PLATFORM_NAME})

if (MSVC)
set_target_properties(goopylib PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/binaries/lib-${GOOPYLIB_PLATFORM_NAME})
set_target_properties(goopylib PROPERTIES LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/binaries/lib-${GOOPYLIB_PLATFORM_NAME})
set_target_properties(goopylib PROPERTIES LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/binaries/lib-${GOOPYLIB_PLATFORM_NAME})
endif (MSVC)

add_library(goopylib SHARED ${WINDOWS_SOURCES}
src/goopylib/core/Core.cpp
src/goopylib/core/BufferLayout.cpp
Expand Down
Binary file removed binaries/lib-macos/libglfw3.a
Binary file not shown.
Empty file modified binaries/lib-macos/libgoopylib.dylib
100644 → 100755
Empty file.
Binary file removed binaries/lib-vc2022/Release/BrickBreaker.exp
Binary file not shown.
Binary file removed binaries/lib-vc2022/Release/BrickBreaker.lib
Binary file not shown.
Binary file removed binaries/lib-vc2022/Release/Minecraft.exp
Binary file not shown.
Binary file removed binaries/lib-vc2022/Release/Minecraft.lib
Binary file not shown.
Binary file removed binaries/lib-vc2022/Release/PackingAlgorithms.exp
Binary file not shown.
Binary file removed binaries/lib-vc2022/Release/PackingAlgorithms.lib
Binary file not shown.
Binary file removed binaries/lib-vc2022/Release/glfw3.lib
Binary file not shown.
Binary file removed binaries/lib-vc2022/Release/goopylib.dll
Binary file not shown.
Binary file removed binaries/lib-vc2022/Release/goopylib.exp
Binary file not shown.
Binary file removed binaries/lib-vc2022/Release/goopylib.lib
Binary file not shown.
10 changes: 0 additions & 10 deletions binaries/lib-vc2022/goopylib.dll.manifest

This file was deleted.

0 comments on commit 608284b

Please sign in to comment.