-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
65 lines (56 loc) · 1.87 KB
/
build.gradle
File metadata and controls
65 lines (56 loc) · 1.87 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
apply plugin: 'cpp'
def appdSDKBase = "extlibs/appdynamics-sdk-native"
model {
buildTypes {
debug
release
}
platforms {
x64 {
architecture "x86_64"
}
}
repositories {
libs(PrebuiltLibraries) {
appdynamics {
def appdSDKLibDir = "${appdSDKBase}/sdk_lib/lib"
headers.srcDir "${appdSDKBase}/sdk_lib"
binaries.withType(SharedLibraryBinary) {
def os = targetPlatform.operatingSystem
if (os.windows) {
// Windows uses a .dll file, with a different link file if it exists (not Cygwin or MinGW)
sharedLibraryFile = file("${appdSDKLibDir}/appdynamics_native_sdk.dll")
if (file("${appdSDKLibDir}/appdynamics_native_sdk.lib").exists()) {
sharedLibraryLinkFile = file("${appdSDKLibDir}/appdynamics_native_sdk.lib")
}
} else if (os.macOsX) {
sharedLibraryFile = file("${appdSDKLibDir}/libappdynamics_native_sdk.dylib")
} else {
sharedLibraryFile = file("${appdSDKLibDir}/libappdynamics_native_sdk.so")
}
}
}
// boost {
// headers.srcDir "extlibs/boost_1_55_0/boost"
// }
}
}
// binaries {
// all {
// cppCompiler.define "_4_2_1_or_later"
// }
// }
components {
main(NativeExecutableSpec) {
targetPlatform "x64"
baseName = project.name
sources {
// cpp.lib library: 'boost', linkage: 'api'
cpp.lib library: 'appdynamics', linkage: 'shared'
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.0'
}