mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-24 21:42:53 -05:00
New build CI
This commit is contained in:
10
.github/workflows/build.yml
vendored
Normal file
10
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
name: 🏗️ Build
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
uses: acidicoala/KoalaBox/.github/workflows/build.yml@e75b11891faaaa51d859c546c8e330fbb7fccb9a
|
||||||
|
with:
|
||||||
|
module: '[ "SmokeAPI" ]'
|
||||||
|
os: '[ "Windows", "Linux" ]'
|
||||||
|
bitness: '[ 32, 64 ]'
|
||||||
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@@ -1,18 +0,0 @@
|
|||||||
name: Continuous Integration
|
|
||||||
on: push
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
ci:
|
|
||||||
name: CI
|
|
||||||
uses: acidicoala/KoalaBox/.github/workflows/build-and-package.yml@a2838977f0b6a2933814e301e0a69ad53fdc6bce
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
with:
|
|
||||||
arch: '[ 32, 64 ]'
|
|
||||||
config: Release
|
|
||||||
modules: '[ "SmokeAPI" ]'
|
|
||||||
zip_command: >
|
|
||||||
zip -j $ZIP_NAME
|
|
||||||
artifacts/*/*.dll
|
|
||||||
res/SmokeAPI.config.json
|
|
||||||
res/README.txt
|
|
||||||
1
.idea/dictionaries/project.xml
generated
1
.idea/dictionaries/project.xml
generated
@@ -7,6 +7,7 @@
|
|||||||
<w>dlmopen</w>
|
<w>dlmopen</w>
|
||||||
<w>dlopen</w>
|
<w>dlopen</w>
|
||||||
<w>dlsym</w>
|
<w>dlsym</w>
|
||||||
|
<w>dynsym</w>
|
||||||
<w>endfor</w>
|
<w>endfor</w>
|
||||||
<w>indicies</w>
|
<w>indicies</w>
|
||||||
<w>inlinentd</w>
|
<w>inlinentd</w>
|
||||||
|
|||||||
2
KoalaBox
2
KoalaBox
Submodule KoalaBox updated: c1e7d12e01...e75b11891f
@@ -125,9 +125,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void init_lib_monitor() {
|
void init_lib_monitor() {
|
||||||
#if defined(KB_WIN) || defined(KB_64)
|
|
||||||
kb::lib_monitor::init_listener({{STEAMCLIENT_DLL, on_steamclient_loaded}});
|
kb::lib_monitor::init_listener({{STEAMCLIENT_DLL, on_steamclient_loaded}});
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<AppId_t> get_app_id_from_env() noexcept {
|
std::optional<AppId_t> get_app_id_from_env() noexcept {
|
||||||
|
|||||||
@@ -2,11 +2,6 @@
|
|||||||
|
|
||||||
#include "smoke_api/types.hpp"
|
#include "smoke_api/types.hpp"
|
||||||
|
|
||||||
|
|
||||||
// IMPORTANT: DLL_EXPORT is hardcoded in windows_exports_generator.cpp & linux_exports_generator.cpp,
|
|
||||||
// so any name changes here must be reflected there as well.
|
|
||||||
#define DLL_EXPORT(TYPE) extern "C" [[maybe_unused]] __declspec(dllexport) TYPE __cdecl
|
|
||||||
|
|
||||||
namespace smoke_api {
|
namespace smoke_api {
|
||||||
void init(void* self_module_handle);
|
void init(void* self_module_handle);
|
||||||
void shutdown();
|
void shutdown();
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
* will store the 1st actual argument to the function, so we
|
* will store the 1st actual argument to the function, so we
|
||||||
* have to omit it from the function signature.
|
* have to omit it from the function signature.
|
||||||
*/
|
*/
|
||||||
|
#ifdef KB_WIN
|
||||||
#ifdef KB_64
|
#ifdef KB_64
|
||||||
#define PARAMS(...) const void* RCX __VA_OPT__(,) __VA_ARGS__
|
#define PARAMS(...) const void* RCX __VA_OPT__(,) __VA_ARGS__
|
||||||
#define ARGS(...) RCX __VA_OPT__(,) __VA_ARGS__
|
#define ARGS(...) RCX __VA_OPT__(,) __VA_ARGS__
|
||||||
@@ -53,6 +54,19 @@
|
|||||||
#define THIS ECX
|
#define THIS ECX
|
||||||
#define DECLARE_ARGS() void* ECX = nullptr; const void* EDX = nullptr;
|
#define DECLARE_ARGS() void* ECX = nullptr; const void* EDX = nullptr;
|
||||||
#endif
|
#endif
|
||||||
|
#elifdef KB_LINUX
|
||||||
|
#ifdef KB_64
|
||||||
|
#define PARAMS(...) const void* $RDI __VA_OPT__(,) __VA_ARGS__
|
||||||
|
#define ARGS(...) $RDI __VA_OPT__(,) __VA_ARGS__
|
||||||
|
#define THIS $RDI
|
||||||
|
#define DECLARE_ARGS() void* $RDI = nullptr;
|
||||||
|
#else
|
||||||
|
#define PARAMS(...) const void* $ARG1 __VA_OPT__(,) __VA_ARGS__
|
||||||
|
#define ARGS(...) $ARG1 __VA_OPT__(,) __VA_ARGS__
|
||||||
|
#define THIS $ARG1
|
||||||
|
#define DECLARE_ARGS() void* $ARG1 = nullptr;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
using AppId_t = uint32_t;
|
using AppId_t = uint32_t;
|
||||||
using HSteamPipe = uint32_t;
|
using HSteamPipe = uint32_t;
|
||||||
|
|||||||
Reference in New Issue
Block a user