forked from ibmruntimes/zoslib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zoslib.gyp
54 lines (53 loc) · 1.63 KB
/
zoslib.gyp
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
51
52
53
54
###############################################################################
# Licensed Materials - Property of IBM
# ZOSLIB
# (C) Copyright IBM Corp. 2020. All Rights Reserved.
# US Government Users Restricted Rights - Use, duplication
# or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
###############################################################################
{
'targets': [
{
'target_name': 'zoslib',
'type': 'static_library',
'defines': [
'ZOSLIB_OVERRIDE_CLIB_SOCKET',
'_UNIX03_THREADS',
'_UNIX03_SOURCE',
'_UNIX03_WITHDRAWN',
'_OPEN_SYS_IF_EXT',
'_OPEN_SYS_SOCK_IPV6',
'_OPEN_MSGQ_EXT',
'_XOPEN_SOURCE_EXTENDED',
'_ALL_SOURCE',
'_LARGE_TIME_API',
'_OPEN_SYS_FILE_EXT',
'_AE_BIMODAL',
'PATH_MAX=1024',
'_ENHANCED_ASCII_EXT=0xFFFFFFFF',
],
'conditions': [
[ '"<!(echo $CC)" == "clang" or "<!(echo $CC)" == "ibm-clang64"', {
'cflags': ['-fzos-le-char-mode=ascii', '-Wno-missing-field-initializers']
}, {
'cflags': ['-q64', '-qascii', '-qexportall', '-Wno-missing-field-initializers', '-qasmlib=//\\\'SYS1.MACLIB\\\'']
}],
],
'direct_dependent_settings': {
'include_dirs': ['include'],
},
'include_dirs': ['.', 'include'],
'sources': [
'src/zos.cc',
'src/zos-bpx.cc',
'src/zos-char-util.cc',
'src/zos-getentropy.cc',
'src/zos-io.cc',
'src/zos-semaphore.cc',
'src/zos-sys-info.cc',
'src/zos-tls.cc',
'src/celquopt.s'
],
}
],
}