mirror of https://gitlab.com/ita1024/waf
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.
33 lines
532 B
Python
33 lines
532 B
Python
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
# Example using the `remote` tool.
|
|
|
|
from waflib import Utils
|
|
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
variants = [
|
|
'linux_64_debug',
|
|
'linux_64_release',
|
|
'linux_32_debug',
|
|
'linux_32_release',
|
|
#'darwin_64_release', # works if a host is provided
|
|
]
|
|
|
|
from waflib.extras import remote
|
|
|
|
def options(opt):
|
|
opt.load('compiler_c')
|
|
|
|
def configure(conf):
|
|
if not conf.variant:
|
|
return
|
|
conf.load('compiler_c')
|
|
|
|
def build(bld):
|
|
if not bld.variant:
|
|
return
|
|
bld(features='c cprogram', target='app', source='main.c')
|
|
|