mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Not very good at argparse...
This commit is contained in:
parent
626f4a7728
commit
9227f25e9c
|
@ -66,6 +66,9 @@ if sys.platform == 'win32':
|
||||||
remove_command = 'rmdir /S /Q {} && erase /F /S /Q /A {}'.format(os.path.join(args.install_dir, 'sol'),
|
remove_command = 'rmdir /S /Q {} && erase /F /S /Q /A {}'.format(os.path.join(args.install_dir, 'sol'),
|
||||||
os.path.join(args.install_dir, 'sol.hpp'))
|
os.path.join(args.install_dir, 'sol.hpp'))
|
||||||
|
|
||||||
|
if not args.lua_lib:
|
||||||
|
args.lua_lib = 'lua'
|
||||||
|
|
||||||
if args.debug:
|
if args.debug:
|
||||||
cxxflags.extend(['-g', '-O0'])
|
cxxflags.extend(['-g', '-O0'])
|
||||||
else:
|
else:
|
||||||
|
@ -79,12 +82,12 @@ if args.lua_dir:
|
||||||
ldflags.extend(library_includes([os.path.join(args.lua_dir, 'lib')]))
|
ldflags.extend(library_includes([os.path.join(args.lua_dir, 'lib')]))
|
||||||
|
|
||||||
if args.lua_lib:
|
if args.lua_lib:
|
||||||
include.extend([os.path.join(args.lua_dir, 'include')])
|
|
||||||
ldflags.extend(library_includes([os.path.join(args.lua_dir, 'lib')]))
|
|
||||||
|
|
||||||
ldflags.extend(libraries([args.lua_lib]))
|
ldflags.extend(libraries([args.lua_lib]))
|
||||||
|
|
||||||
if args.ci:
|
if args.ci:
|
||||||
ldflags.extend(library_includes(['lib']))
|
ldflags.extend(library_includes(['lib']))
|
||||||
|
include.extend(['./include'])
|
||||||
|
if args.lua_lib:
|
||||||
include.extend(['/usr/include/' + args.lua_lib, './include'])
|
include.extend(['/usr/include/' + args.lua_lib, './include'])
|
||||||
cxxflags.extend(['-std=c++1y'])
|
cxxflags.extend(['-std=c++1y'])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user