-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoracledart.gyp
55 lines (54 loc) · 1.83 KB
/
oracledart.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
55
# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
{
'includes': [
'../sdk/runtime/tools/gyp/runtime-configurations.gypi',
],
'targets': [
{
'target_name': 'oracledart_native_extension',
'type': 'shared_library',
'include_dirs': [
'$(ORACLE_OCI_HOME)/include',
'../sdk/runtime'
],
'sources': [
'lib/src/oracledart_native_extension.cc',
'lib/src/oracledart_native_extension_dllmain_win.cc',
],
'defines': [
'DART_SHARED_LIB',
],
'conditions': [
['OS=="win"', {
'dependencies': [
'../sdk/runtime/dart-runtime.gyp:dart', # Windows build process needs dart.lib
'../sdk/dart.gyp:create_sdk',
],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalDependencies': [ 'dart.lib', 'oci.lib', 'oraocci12.lib' ],
'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)', '$(ORACLE_OCI_HOME)/lib/msvc/vc11', '$(ORACLE_OCI_HOME)/lib/msvc' ],
},
},
}],
['OS=="mac"', {
'xcode_settings': {
'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup', '-locci', '-lclntsh', '-L$(ORACLE_OCCI_LIB_HOME)' ],
},
}],
['OS=="linux"', {
'cflags': [
'-fPIC',
],
'link_settings': {
'libraries': [
'-locci', '-lclntsh', '-L$(ORACLE_OCCI_LIB_HOME)'
]
}
}],
],
},
],
}