Skip to content

Commit

Permalink
chore: update library name
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmuffin committed Oct 6, 2023
1 parent 79624c6 commit 09f90dd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@ on:
branches: [ "main" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
Expand All @@ -23,8 +19,6 @@ jobs:
submodules: 'recursive'

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
Expand All @@ -33,4 +27,5 @@ jobs:

- uses: actions/upload-artifact@v3
with:
path: build/*.so
name: libcounterstrikesharp.so
path: build/libcounterstrikesharp.so
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.18)

Project(vspdotnet C CXX)
Project(counterstrikesharp C CXX)

include("makefiles/shared.cmake")

Expand All @@ -25,4 +25,4 @@ include("makefiles/linux.base.cmake")


# Libraries
target_link_libraries(${PROJECT_NAME} ${VSPDOTNET_LINK_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${COUNTER_STRIKE_SHARP_LINK_LIBRARIES})
2 changes: 1 addition & 1 deletion makefiles/linux.base.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=sse -msse -fno-strict-aliasing"
Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-threadsafe-statics -v -fvisibility=hidden")

SET(
VSPDOTNET_LINK_LIBRARIES
COUNTER_STRIKE_SHARP_LINK_LIBRARIES
${SOURCESDK_LIB}/linux64/libtier0.so
${SOURCESDK_LIB}/linux64/tier1.a
${SOURCESDK_LIB}/linux64/interfaces.a
Expand Down
2 changes: 1 addition & 1 deletion makefiles/shared.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ include_directories(

SET(ASMJIT_STATIC 1)

Project(vspdotnet C CXX)
Project(counterstrikesharp C CXX)

0 comments on commit 09f90dd

Please sign in to comment.