forked from zougloub/libseek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
51 lines (40 loc) · 868 Bytes
/
wscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, os, re
from waflib import Options
def options(opt):
opt.load('compiler_cxx')
def configure(conf):
conf.load('compiler_cxx')
if conf.env.CXX_NAME in ('gcc', 'clang'):
conf.env.CXXFLAGS += [ '-std=c++11' ]
conf.check_cfg(package='libusb-1.0', args='--cflags --libs',
uselib_store="LIBUSB")
def build(bld):
bld(
target='seek',
features='cxx cxxstlib',
source=[
'seek.cpp',
],
use='LIBUSB',
install_path="${LIBDIR}",
)
bld.install_files("${PREFIX}/include",
['seek.hpp', 'seek_pimpl_h.hpp'])
bld(
source='seek.pc.in',
install_path='${LIBDIR}/pkgconfig/',
)
bld(
target='seek-test',
features='cxx cxxprogram',
source='seek-test.cpp',
use='seek',
)
bld(
target='seek-test-calib',
features='cxx cxxprogram',
source='seek-test-calib.cpp',
use='seek',
)