mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 14:55:36 +03:00
parent
1f15fdd6cb
commit
779e064a17
@ -229,13 +229,11 @@ class AMXXConfig(object):
|
|||||||
binary = compiler.Library(name)
|
binary = compiler.Library(name)
|
||||||
binary.compiler.cxxincludes += [os.path.join(context.currentSourcePath)]
|
binary.compiler.cxxincludes += [os.path.join(context.currentSourcePath)]
|
||||||
if builder.target_platform == 'windows':
|
if builder.target_platform == 'windows':
|
||||||
#binary.sources += ['version.rc']
|
binary.compiler.rcdefines += [
|
||||||
#binary.compiler.rcdefines += [
|
'BINARY_NAME="{0}"'.format(binary.outputFile),
|
||||||
# 'BINARY_NAME="{0}"'.format(binary.outputFile),
|
'AMBUILD',
|
||||||
# 'SM_GENERATED_BUILD',
|
'RC_COMPILE',
|
||||||
# 'RC_COMPILE',
|
]
|
||||||
#]
|
|
||||||
pass
|
|
||||||
elif builder.target_platform == 'mac':
|
elif builder.target_platform == 'mac':
|
||||||
binary.compiler.postlink += [
|
binary.compiler.postlink += [
|
||||||
'-compatibility_version', '1.0.0',
|
'-compatibility_version', '1.0.0',
|
||||||
@ -250,7 +248,7 @@ class AMXXConfig(object):
|
|||||||
os.path.join(context.currentSourcePath, 'sdk'),
|
os.path.join(context.currentSourcePath, 'sdk'),
|
||||||
]
|
]
|
||||||
|
|
||||||
if builder.target_platform == 'mac':
|
if builder.target_platform == 'mac' or builder.target_platform == 'windows':
|
||||||
name = name + '_amxx'
|
name = name + '_amxx'
|
||||||
elif builder.target_platform == 'linux':
|
elif builder.target_platform == 'linux':
|
||||||
name = name + '_amxx_i386'
|
name = name + '_amxx_i386'
|
||||||
@ -260,14 +258,12 @@ class AMXXConfig(object):
|
|||||||
def ProgramBuilder(self, context, compiler, name):
|
def ProgramBuilder(self, context, compiler, name):
|
||||||
binary = compiler.Program(name)
|
binary = compiler.Program(name)
|
||||||
binary.compiler.cxxincludes += [os.path.join(context.currentSourcePath)]
|
binary.compiler.cxxincludes += [os.path.join(context.currentSourcePath)]
|
||||||
# if builder.target_platform == 'windows':
|
if builder.target_platform == 'windows':
|
||||||
# binary.sources += ['version.rc']
|
binary.compiler.rcdefines += [
|
||||||
# binary.compiler.rcdefines += [
|
'BINARY_NAME="{0}"'.format(binary.outputFile),
|
||||||
# 'BINARY_NAME="{0}"'.format(binary.outputFile),
|
'AMBUILD',
|
||||||
# 'SM_GENERATED_BUILD',
|
'RC_COMPILE',
|
||||||
# 'RC_COMPILE',
|
]
|
||||||
# ]
|
|
||||||
# binary.compiler.linkflags += [self.versionlib]
|
|
||||||
binary.compiler.sourcedeps += AMXX.generated_headers
|
binary.compiler.sourcedeps += AMXX.generated_headers
|
||||||
return binary
|
return binary
|
||||||
|
|
||||||
@ -283,7 +279,7 @@ class AMXXConfig(object):
|
|||||||
def MetaPlugin(self, context, name):
|
def MetaPlugin(self, context, name):
|
||||||
compiler = self.MMCompiler(context)
|
compiler = self.MMCompiler(context)
|
||||||
|
|
||||||
if builder.target_platform == 'mac':
|
if builder.target_platform == 'mac' or builder.target_platform == 'windows':
|
||||||
name = name + '_mm'
|
name = name + '_mm'
|
||||||
elif builder.target_platform == 'linux':
|
elif builder.target_platform == 'linux':
|
||||||
name = name + '_mm_i386'
|
name = name + '_mm_i386'
|
||||||
|
@ -94,4 +94,7 @@ binary.sources = [
|
|||||||
'trie_natives.cpp',
|
'trie_natives.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if builder.target_platform == 'windows':
|
||||||
|
binary.sources += ['version.rc']
|
||||||
|
|
||||||
AMXX.binaries += [builder.Add(binary)]
|
AMXX.binaries += [builder.Add(binary)]
|
||||||
|
@ -6,7 +6,13 @@
|
|||||||
// Generated from the TEXTINCLUDE 2 resource.
|
// Generated from the TEXTINCLUDE 2 resource.
|
||||||
//
|
//
|
||||||
#include "winres.h"
|
#include "winres.h"
|
||||||
#include "svn_version.h"
|
#if defined AMBUILD
|
||||||
|
# include <amxmodx_version.h>
|
||||||
|
#else
|
||||||
|
# define SVN_VERSION_DWORD 1, 8, 3, 0
|
||||||
|
# define SVN_VERSION_STRING "dev-local"
|
||||||
|
# define SVN_VERSION SVN_VERSION_STRING
|
||||||
|
#endif
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
@ -49,7 +55,7 @@ BEGIN
|
|||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2007, AMX Mod X Dev Team"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2007, AMX Mod X Dev Team"
|
||||||
VALUE "OriginalFilename", "amxmodx_mm.dll"
|
VALUE "OriginalFilename", "amxmodx_mm.dll"
|
||||||
VALUE "ProductName", "AMX Mod X"
|
VALUE "ProductName", "AMX Mod X"
|
||||||
VALUE "ProductVersion", SVN_VERSION_PRODUCT
|
VALUE "ProductVersion", SVN_VERSION
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
@ -29,4 +29,7 @@ binary.sources = [
|
|||||||
'Binary.cpp',
|
'Binary.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if builder.target_platform == 'windows':
|
||||||
|
binary.sources += ['amxxpc1.rc']
|
||||||
|
|
||||||
AMXX.amxxpc = builder.Add(binary)
|
AMXX.amxxpc = builder.Add(binary)
|
||||||
|
@ -35,4 +35,7 @@ binary.sources = [
|
|||||||
'memfile.c',
|
'memfile.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if builder.target_platform == 'windows':
|
||||||
|
binary.sources+= ['libpawnc.rc']
|
||||||
|
|
||||||
AMXX.libpc300 = builder.Add(binary)
|
AMXX.libpc300 = builder.Add(binary)
|
||||||
|
Loading…
Reference in New Issue
Block a user