-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwscript
More file actions
41 lines (29 loc) · 1.04 KB
/
wscript
File metadata and controls
41 lines (29 loc) · 1.04 KB
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
#! /usr/bin/env python
# encoding: utf-8
# Christian Boelsen
# these variables are mandatory( '/' are converted automatically )
top = '../..'
def configure( cnf ):
if cnf.env.DEST_OS is 'linux':
cnf.check_cxx( lib='pthread' )
def build( bld ):
use_flags = []
if bld.env.DEST_OS is 'linux':
ext_paths = ['/usr/lib/i386-linux-gnu'
, '/usr/lib/arm-linux-gnueabi'
, '/usr/lib/x86_64-linux-gnu']
bld.read_shlib( 'pthread'
, paths = ext_paths )
use_flags += ['pthread']
if bld.env.DEST_OS == 'android':
bld.env.DEFINES_GMOCK_SHARED += ['GTEST_OS_LINUX_ANDROID=1']
use_flags += ['GMOCK_SHARED']
bld.stlib( features = 'cxx'
, source = ['src/gmock-all.cc']
, target = 'gmock'
, includes = ['../googletest/include'
, '../googletest'
, 'include'
, '.']
, export_includes = ['include']
, use = use_flags )