mirror of
https://github.com/rehlds/metamod-r.git
synced 2025-01-27 22:17:54 +03:00
Add SDK to release
This commit is contained in:
parent
ca861f62d2
commit
f3e0772b12
@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "osdep.h" // DLLEXPORT, WINAPI, etc
|
||||
|
||||
// Our GiveFnptrsToDll, called by engine.
|
||||
typedef void (WINAPI *GIVE_ENGINE_FUNCTIONS_FN)(enginefuncs_t *pengfuncsFromEngine, globalvars_t *pGlobals);
|
||||
C_DLLEXPORT void WINAPI GiveFnptrsToDll(enginefuncs_t *pengfuncsFromEngine, globalvars_t *pGlobals);
|
||||
|
@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "plinfo.h" // plugin_info_t, etc
|
||||
#include "sdk_util.h" // hudtextparms_t, etc
|
||||
|
||||
// max buffer size for printed messages
|
||||
#define MAX_LOGMSG_LEN 1024
|
||||
|
||||
|
@ -2,11 +2,25 @@ import org.doomedsociety.gradlecpp.GradleCppUtils
|
||||
import org.apache.commons.io.FilenameUtils
|
||||
|
||||
void _copyFileToDir(String from, String to) {
|
||||
if (!project.file(from).exists()) {
|
||||
println 'WARNING: Could not find: ' + from;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!project.file(to).exists()) {
|
||||
project.file(to).mkdirs();
|
||||
}
|
||||
|
||||
def dst = new File(project.file(to), FilenameUtils.getName(from))
|
||||
GradleCppUtils.copyFile(project.file(from), dst, false)
|
||||
}
|
||||
|
||||
void _copyFile(String from, String to) {
|
||||
if (!project.file(from).exists()) {
|
||||
println 'WARNING: Could not find: ' + from;
|
||||
return;
|
||||
}
|
||||
|
||||
GradleCppUtils.copyFile(project.file(from), project.file(to), false)
|
||||
}
|
||||
|
||||
@ -24,6 +38,36 @@ task publishPrepareFiles << {
|
||||
_copyFileToDir('publish/metamod.dll', 'publish/publishRoot/metamod/addons/metamod/')
|
||||
//_copyFileToDir('publish/metamod.pdb', 'publish/publishRoot/metamod/addons/metamod/')
|
||||
_copyFile('publish/libmetamod_i386.so', 'publish/publishRoot/metamod/addons/metamod/metamod_i386.so')
|
||||
|
||||
project.file('publish/publishRoot/metamod/sdk').mkdirs()
|
||||
copy {
|
||||
from 'metamod/src/dllapi.h'
|
||||
into 'publish/publishRoot/metamod/sdk'
|
||||
}
|
||||
copy {
|
||||
from 'metamod/src/engine_api.h'
|
||||
into 'publish/publishRoot/metamod/sdk'
|
||||
}
|
||||
copy {
|
||||
from 'metamod/src/enginecallbacks.h'
|
||||
into 'publish/publishRoot/metamod/sdk'
|
||||
}
|
||||
copy {
|
||||
from 'metamod/src/h_export.h'
|
||||
into 'publish/publishRoot/metamod/sdk'
|
||||
}
|
||||
copy {
|
||||
from 'metamod/src/meta_api.h'
|
||||
into 'publish/publishRoot/metamod/sdk'
|
||||
}
|
||||
copy {
|
||||
from 'metamod/src/mutil.h'
|
||||
into 'publish/publishRoot/metamod/sdk'
|
||||
}
|
||||
copy {
|
||||
from 'metamod/src/plinfo.h'
|
||||
into 'publish/publishRoot/metamod/sdk'
|
||||
}
|
||||
}
|
||||
|
||||
task publishPackage(type: Zip, dependsOn: 'publishPrepareFiles') {
|
||||
@ -34,5 +78,4 @@ task publishPackage(type: Zip, dependsOn: 'publishPrepareFiles') {
|
||||
|
||||
task doPackage {
|
||||
dependsOn 'publishPackage'
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user