Skip to content

Commit e2deaef

Browse files
committed
chore: release 1.0.0
1 parent 2103680 commit e2deaef

29 files changed

+10449
-3681
lines changed

.github/release-please-config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "simple",
4+
"packages": {
5+
".": {}
6+
}
7+
}

.github/release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.0.0"
3+
}

.github/workflows/cmake-multiple-platform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ jobs:
212212
package_name = 'golm-build-${{ needs.setup.outputs.buildnumber }}-{}-${{ env.GITHUB_SHA_SHORT }}'
213213
checksum_linux = '${{ needs.publish.outputs.checksum_linux }}'
214214
checksum_windows = '${{ needs.publish.outputs.checksum_windows }}'
215-
json_url = 'https://untrustedmodders.github.io/plugify-module-golang/plugify-module-golang.json'
215+
json_url = '${{ vars.REPOSITORY_URL }}'
216216
217217
def load_json_from_url(url):
218218
try:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
.idea
33
.vscode
44
.vs
5+
.PVS-Studio
56

67
# CMake
78
CMakeUserPresets.json
89

910
# Build results
10-
build/
11+
/build

CMakeLists.txt

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ if(POLICY CMP0092)
55
endif()
66

77

8-
project(plugify-module-golang VERSION 1.0.0.0 DESCRIPTION "Go Language Module" HOMEPAGE_URL "https://github.com/untrustedmodders/plugify-module-golang" LANGUAGES CXX)
8+
project(plugify-module-golang
9+
VERSION 1.0.0.0
10+
DESCRIPTION "Go Language Module"
11+
HOMEPAGE_URL "https://github.com/untrustedmodders/plugify-module-golang"
12+
LANGUAGES CXX)
913

1014
set(CMAKE_CXX_STANDARD 20)
1115
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -20,24 +24,25 @@ if(UNIX AND NOT APPLE)
2024
set(LINUX TRUE)
2125
endif()
2226

27+
#
28+
# CPPtrace
29+
#
30+
include(cmake/cpptrace.cmake)
31+
2332
#
2433
# Plugify
2534
#
2635
set(PLUGIFY_BUILD_SHARED_LIB ON CACHE INTERNAL "")
2736
set(PLUGIFY_BUILD_JIT ON CACHE INTERNAL "")
2837
set(PLUGIFY_BUILD_ASSEMBLY ON CACHE INTERNAL "")
2938
set(PLUGIFY_BUILD_TESTS OFF CACHE INTERNAL "")
39+
set(PLUGIFY_INTERFACE ON CACHE INTERNAL "")
3040
set(PLUGIFY_DOWNLOADER OFF CACHE INTERNAL "")
3141
if(LINUX)
3242
set(PLUGIFY_USE_STATIC_STDLIB ON CACHE INTERNAL "")
3343
endif()
3444
add_subdirectory(external/plugify)
3545

36-
#
37-
# Dyncall
38-
#
39-
include(cmake/dyncall.cmake)
40-
4146
#
4247
# Go Language Module for Plugify
4348
#
@@ -47,7 +52,7 @@ set(GOLM_PCH_FILE "src/pch.hpp")
4752
add_library(${PROJECT_NAME} SHARED ${GOLM_SOURCES})
4853
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
4954

50-
set(GOLM_LINK_LIBRARIES plugify::plugify plugify::plugify-assembly plugify::plugify-jit asmjit::asmjit dyncall_s)
55+
set(GOLM_LINK_LIBRARIES plugify::plugify plugify::plugify-assembly plugify::plugify-jit asmjit::asmjit cpptrace::cpptrace)
5156

5257
if(NOT COMPILER_SUPPORTS_FORMAT)
5358
set(GOLM_LINK_LIBRARIES ${GOLM_LINK_LIBRARIES} fmt::fmt-header-only)
@@ -78,12 +83,16 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
7883
GOLM_PLATFORM_WINDOWS=$<BOOL:${WIN32}>
7984
GOLM_PLATFORM_APPLE=$<BOOL:${APPLE}>
8085
GOLM_PLATFORM_LINUX=$<BOOL:${LINUX}>
86+
GOLM_ARCH_ARM=$<BOOL:${PLUGIFY_USE_ARM}>
8187
GOLM_IS_DEBUG=$<STREQUAL:${CMAKE_BUILD_TYPE},Debug>
8288
GOLM_LIBRARY_SUFFIX="${CMAKE_SHARED_LIBRARY_SUFFIX}"
83-
GOLM_LIBRARY_PREFIX="${CMAKE_SHARED_LIBRARY_PREFIX}")
89+
GOLM_LIBRARY_PREFIX="${CMAKE_SHARED_LIBRARY_PREFIX}"
90+
)
8491

85-
set(GOLM_VERSION "0" CACHE STRING "Set version name")
92+
set(GOLM_VERSION "v0.1.0" CACHE STRING "Set version name")
8693
set(GOLM_PACKAGE "${PROJECT_NAME}" CACHE STRING "Set package name")
94+
string(REPLACE "v" "" GOLM_VERSION "${GOLM_VERSION}")
95+
8796

8897
configure_file(
8998
${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.pmodule.in

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,29 @@ plg install plugify-module-golang
2828

2929
#### Option 2: Manual Installation
3030

31-
1. Clone this repository:
31+
1. Install dependencies:
32+
33+
a. Windows
34+
> Setting up [CMake tools with Visual Studio Installer](https://learn.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio#installation)
35+
36+
b. Linux:
37+
```sh
38+
sudo apt-get install -y build-essential cmake ninja-build
39+
```
40+
41+
c. Mac:
42+
```sh
43+
brew install cmake ninja
44+
```
45+
46+
2. Clone this repository:
3247

3348
```bash
3449
git clone https://github.com/untrustedmodders/plugify-module-golang.git --recursive
3550
cd plugify-module-golang
3651
```
3752

38-
2. Build the Go language module:
53+
3. Build the Go language module:
3954

4055
```bash
4156
mkdir build && cd build

cmake/cpptrace.cmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include(FetchContent)
2+
3+
message(STATUS "Pulling and configuring cpptrace")
4+
5+
FetchContent_Declare(
6+
cpptrace
7+
GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
8+
GIT_TAG 7543677d6f39a38de9e9248e2331015d5235b175
9+
)
10+
11+
FetchContent_MakeAvailable(cpptrace)

cmake/dyncall.cmake

Lines changed: 0 additions & 11 deletions
This file was deleted.

external/plugify

Submodule plugify updated 181 files

0 commit comments

Comments
 (0)