Initial waf build system

This commit is contained in:
Nedko Arnaudov 2022-08-27 16:57:52 +03:00
parent 7d5fa373a3
commit df061dd8e7
7 changed files with 215 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/.waf*
/.lock-waf*
/build

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "autooptions"]
path = autooptions
url = ../waf-autooptions

1
autooptions Submodule

@ -0,0 +1 @@
Subproject commit cc16822604501c96af265a2e3c51855d2aed635f

173
waf vendored Executable file

File diff suppressed because one or more lines are too long

35
wscript Normal file
View File

@ -0,0 +1,35 @@
#! /usr/bin/env python
# encoding: utf-8
LANV_API_VERSION = '0.1.0'
def options(opt):
# options provided by the modules
opt.load('compiler_c')
opt.load('autooptions')
def configure(conf):
conf.load('compiler_c')
def build(bld):
lib = bld(features=['c', 'cshlib'])
lib.defines = 'HAVE_CONFIG_H'
lib.includes = []
lib.name = 'lib'
lib.target = 'lanv'
lib.install_path = '${LIBDIR}'
lib.use = []
lib.source = [
'canvas.c',
# 'module.c',
# 'item.c',
# 'port.c',
# 'connection.c',
# 'ellipse.c',
# 'connectable.c',
]
lib.vnum = bld.env['LANV_API_VERSION']
lib.env.append_value('CPPFLAGS', '-fvisibility=hidden')