Fixed compilation with MSVC.

This commit is contained in:
2024-08-15 15:27:39 +02:00
parent 0c82036300
commit c4200393fb
6 changed files with 165 additions and 49 deletions

View File

@@ -11,7 +11,11 @@ def dependencies(env: Environment, version) -> 'dict':
def cook(env: Environment, version) -> dict:
repo = env.GitBranch(repo_name = 'mikktspace', remote_url = 'https://github.com/mmikk/MikkTSpace.git', git_ref = 'master')
checkout_root = repo['checkout_root']
ccflags = env['CCFLAGS'].copy()
if env['COMPILER_FAMILY'] == 'cl':
ccflags.append('/wd4456')
lib_mikktspace = env.StaticLibrary(
CCFLAGS = ccflags,
CPPPATH = [checkout_root],
target = env['LIB_DIR'] + '/mikktspace',
source = [os.path.join(repo['checkout_root'], 'mikktspace.c')]