You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
568 B
Python
21 lines
568 B
Python
#! /usr/bin/env python3
|
|
# -*- mode: python -*-
|
|
|
|
import os, sys
|
|
if sys.hexversion < 0x30000f0:
|
|
print("Python2 not supported")
|
|
sys.exit(1)
|
|
|
|
dir = os.environ.get('WAFDIR', '')
|
|
if not dir:
|
|
dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'ext/waf')
|
|
|
|
if not os.path.isdir(os.path.join(dir, 'waflib')):
|
|
print("%s does not look like a valid wafdir, are git submodules ok?" % dir)
|
|
sys.exit(1)
|
|
|
|
sys.path.insert(0, dir)
|
|
from waflib import Scripting
|
|
from waflib.Context import WAFVERSION
|
|
Scripting.waf_entry_point(os.getcwd(), WAFVERSION, dir)
|