2012-09-27 21:08:26 +02:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
|
|
|
top = '.'
|
|
|
|
out = 'build'
|
|
|
|
|
|
|
|
def options(opt):
|
2017-09-15 20:52:08 +02:00
|
|
|
opt.load('compiler_cxx python')
|
2012-09-27 21:08:26 +02:00
|
|
|
|
|
|
|
def configure(conf):
|
2017-09-15 20:52:08 +02:00
|
|
|
conf.load('compiler_cxx python protoc')
|
|
|
|
conf.check_python_version(minver=(2, 5, 0))
|
2012-09-27 21:08:26 +02:00
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
bld(
|
|
|
|
features = 'cxx cxxshlib',
|
2017-08-17 04:06:44 +02:00
|
|
|
source = ['inc/message_inc.proto','inc/message.proto'],
|
2012-09-27 21:08:26 +02:00
|
|
|
target = 'somelib',
|
2015-11-08 11:22:27 +01:00
|
|
|
includes = ['inc'])
|
2012-09-27 21:08:26 +02:00
|
|
|
|
2017-09-15 20:52:08 +02:00
|
|
|
|
|
|
|
bld(
|
|
|
|
features = 'py',
|
|
|
|
name = 'pbpy',
|
|
|
|
source = ['inc/message_inc.proto','inc/message.proto'],
|
|
|
|
protoc_includes = ['inc'])
|
|
|
|
|
|
|
|
bld(
|
|
|
|
features = 'cxx py',
|
|
|
|
name = 'pbboth',
|
|
|
|
source = ['incboth/messageboth_inc.proto', 'incboth/messageboth.proto'],
|
|
|
|
protoc_includes = ['incboth']) # either protoc_includes or includes would work in this case
|
|
|
|
|