Browse Source

vgui_support: wscript: fix finding VGUI on osx, simplify sanity check

pull/2/head
Alibek Omarov 6 years ago
parent
commit
cfea381c84
  1. 6
      vgui_support/wscript

6
vgui_support/wscript

@ -46,7 +46,8 @@ def configure(conf):
if conf.env.DEST_OS == 'linux': if conf.env.DEST_OS == 'linux':
conf.env.LIB_VGUI = [':vgui.so'] conf.env.LIB_VGUI = [':vgui.so']
elif conf.env.DEST_OS == 'darwin': elif conf.env.DEST_OS == 'darwin':
conf.env.LIB_VGUI = ['vgui.dylib'] conf.env.LIB_VGUI = ['vgui']
conf.parse_flags('-Wl,-rpath,', 'VGUI')
else: else:
conf.fatal('vgui is not supported on this OS: ' + conf.env.DEST_OS) conf.fatal('vgui is not supported on this OS: ' + conf.env.DEST_OS)
conf.env.LIBPATH_VGUI = [os.path.abspath(os.path.join(conf.options.VGUI_DEV, 'lib'))] conf.env.LIBPATH_VGUI = [os.path.abspath(os.path.join(conf.options.VGUI_DEV, 'lib'))]
@ -60,11 +61,8 @@ def configure(conf):
conf.check_cxx( conf.check_cxx(
fragment=''' fragment='''
#include <VGUI.h> #include <VGUI.h>
#include <VGUI_App.h>
int main( int argc, char **argv ) int main( int argc, char **argv )
{ {
vgui::App *app = vgui::App::getInstance();
app->main(argc, argv);
return 0; return 0;
}''', }''',
msg = 'Checking for library VGUI sanity', msg = 'Checking for library VGUI sanity',

Loading…
Cancel
Save