mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-31 08:52:50 -05:00
Reworked configure_linker_exports
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
|
||||||
<configuration default="false" name="exports_generator [64] [win]" type="CMakeRunConfiguration" factoryName="Application" PROGRAM_PARAMS="FALSE steam_api64_o $ProjectFileDir$/res/steamworks/*/binaries/steam_api64.dll $CMakeCurrentGenerationDir$/generated/linker_exports_for_steam_api.h" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="SmokeAPI" TARGET_NAME="exports_generator" RUN_TARGET_PROJECT_NAME="SmokeAPI" RUN_TARGET_NAME="exports_generator">
|
|
||||||
<method v="2">
|
|
||||||
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
|
|
||||||
</method>
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
7
.idea/runConfigurations/windows_exports_generator__64_.xml
generated
Normal file
7
.idea/runConfigurations/windows_exports_generator__64_.xml
generated
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="windows_exports_generator [64]" type="CMakeRunConfiguration" factoryName="Application" PROGRAM_PARAMS="--forwarded_dll_name "steam_api64_o" --lib_files_glob "$ProjectFileDir$\res\steamworks\*\binaries\steam_api64.dll" --output_file_path "$CMakeCurrentGenerationDir$\generated\linker_exports_for_steam_api.h" --sources_input_path """ REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="SmokeAPI" TARGET_NAME="windows_exports_generator" CONFIG_NAME="Debug [32]" RUN_TARGET_PROJECT_NAME="SmokeAPI" RUN_TARGET_NAME="windows_exports_generator">
|
||||||
|
<method v="2">
|
||||||
|
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
@@ -72,7 +72,6 @@ target_include_directories(SmokeAPI_common INTERFACE
|
|||||||
)
|
)
|
||||||
target_link_libraries(SmokeAPI_common INTERFACE KoalaBox $<TARGET_OBJECTS:KoalaBox>)
|
target_link_libraries(SmokeAPI_common INTERFACE KoalaBox $<TARGET_OBJECTS:KoalaBox>)
|
||||||
|
|
||||||
|
|
||||||
### Static SmokeAPI
|
### Static SmokeAPI
|
||||||
|
|
||||||
add_library(SmokeAPI_static STATIC ${SMOKE_API_STATIC_SOURCES})
|
add_library(SmokeAPI_static STATIC ${SMOKE_API_STATIC_SOURCES})
|
||||||
@@ -104,9 +103,9 @@ if(WIN32)
|
|||||||
configure_linker_exports(
|
configure_linker_exports(
|
||||||
TARGET SmokeAPI
|
TARGET SmokeAPI
|
||||||
HEADER_NAME "linker_exports_for_steam_api.h"
|
HEADER_NAME "linker_exports_for_steam_api.h"
|
||||||
FORWARDED_DLL "${STEAM_API_MODULE}_o"
|
FORWARDED_DLL_NAME "${STEAM_API_MODULE}_o"
|
||||||
INPUT_SOURCES_DIR ""
|
LIB_FILES_GLOB "${CMAKE_CURRENT_SOURCE_DIR}/res/steamworks/*/binaries/${STEAM_API_MODULE}.dll"
|
||||||
DLL_FILES_GLOB "${CMAKE_CURRENT_SOURCE_DIR}/res/steamworks/*/binaries/${STEAM_API_MODULE}.dll"
|
SOURCES_INPUT_PATH ""
|
||||||
)
|
)
|
||||||
|
|
||||||
set(HEADER_CONTENT "#pragma once\n\n")
|
set(HEADER_CONTENT "#pragma once\n\n")
|
||||||
@@ -116,9 +115,9 @@ if(WIN32)
|
|||||||
configure_linker_exports(
|
configure_linker_exports(
|
||||||
TARGET SmokeAPI
|
TARGET SmokeAPI
|
||||||
HEADER_NAME "${HEADER_NAME}"
|
HEADER_NAME "${HEADER_NAME}"
|
||||||
FORWARDED_DLL "C:/Windows/System32/${WIN_DLL}.dll"
|
FORWARDED_DLL_NAME "C:/Windows/System32/${WIN_DLL}.dll"
|
||||||
INPUT_SOURCES_DIR ""
|
LIB_FILES_GLOB "C:/Windows/System32/${WIN_DLL}.dll"
|
||||||
DLL_FILES_GLOB "C:/Windows/System32/${WIN_DLL}.dll"
|
SOURCES_INPUT_PATH ""
|
||||||
)
|
)
|
||||||
|
|
||||||
set(HEADER_CONTENT "${HEADER_CONTENT}#include <${HEADER_NAME}>\n")
|
set(HEADER_CONTENT "${HEADER_CONTENT}#include <${HEADER_NAME}>\n")
|
||||||
|
|||||||
2
KoalaBox
2
KoalaBox
Submodule KoalaBox updated: 074f886483...0b28ad0a33
@@ -21,10 +21,11 @@
|
|||||||
#include "steam_api/virtuals/steam_api_virtuals.hpp"
|
#include "steam_api/virtuals/steam_api_virtuals.hpp"
|
||||||
|
|
||||||
#include "build_config.h"
|
#include "build_config.h"
|
||||||
#include "proxy_exports.hpp"
|
|
||||||
|
|
||||||
#ifdef KB_WIN
|
#ifdef KB_WIN
|
||||||
#include "koalabox/win.hpp"
|
#include "koalabox/win.hpp"
|
||||||
|
#elifdef KB_LINUX
|
||||||
|
#include "proxy_exports.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Hooking steam_api has shown itself to be less desirable than steamclient
|
// Hooking steam_api has shown itself to be less desirable than steamclient
|
||||||
|
|||||||
Reference in New Issue
Block a user