16 lines
628 B
Python
16 lines
628 B
Python
import os
|
|
|
|
AddOption('--windows', dest='mingw', action='store_true', help='installation prefix')
|
|
|
|
env = Environment()
|
|
|
|
steamlib = 'steam_api'
|
|
|
|
if GetOption('mingw'):
|
|
print('detected mingw build')
|
|
env.Replace(CXX = 'x86_64-w64-mingw32-g++', LINK = 'x86_64-w64-mingw32-g++', LINKFLAGS = ['-s', '-static'], LIBPATH = 'sdk/redistributable_bin/win64/', RPATH = 'sdk/redistributable_bin/win64/')
|
|
steamlib = 'steam_api64'
|
|
else:
|
|
env.Replace(LINKFLAGS = ['-s'], LIBPATH = 'sdk/redistributable_bin/linux64/', RPATH = 'sdk/redistributable_bin/linux64/')
|
|
|
|
env.Program('steamunlock', source = ['main.cpp'], LIBS = [steamlib]) |