2023-10-04 18:29:29 +03:00
|
|
|
#! /usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
def options(opt):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def configure(conf):
|
|
|
|
conf.define('REF_DLL', 1)
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
source = bld.path.ant_glob( [ '*.c' ] )
|
|
|
|
includes = [ '.' ]
|
2024-01-30 15:04:57 +03:00
|
|
|
libs = [ 'engine_includes', 'sdk_includes', 'werror' ]
|
2023-10-04 18:29:29 +03:00
|
|
|
bld.env.LDFLAGS += ['-fPIC']
|
|
|
|
bld.env.CFLAGS += ['-fPIC']
|
|
|
|
bld.stlib(
|
|
|
|
source = source,
|
|
|
|
target = 'gl2_shim',
|
|
|
|
includes = includes,
|
|
|
|
use = libs,
|
|
|
|
subsystem = bld.env.MSVC_SUBSYSTEM
|
|
|
|
)
|