1import os
2import sys
3
4coroapi = None
5
6search_paths = os.popen('perl -MConfig -e \'print $Config{sitearch}.",".join(",", @INC);\'').read().rstrip().split(',')
7for p in search_paths:
8    if os.path.exists(p + '/Coro/CoroAPI.h'):
9        coroapi = p
10
11if not coroapi:
12    print("unable to find the Coro perl module !!!")
13    sys.exit(1)
14
15NAME='coroae'
16CFLAGS = os.popen('perl -MExtUtils::Embed -e ccopts').read().rstrip().split()
17CFLAGS += ['-Wno-int-to-pointer-cast', '-Wno-error=format', '-Wno-error=int-to-pointer-cast', '-I%s/Coro' % coroapi]
18LDFLAGS = []
19LIBS = []
20
21GCC_LIST = ['coroae']
22