diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/cmake/GooglePerfTools.cmake | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/cmake/GooglePerfTools.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/linden/indra/cmake/GooglePerfTools.cmake b/linden/indra/cmake/GooglePerfTools.cmake new file mode 100644 index 0000000..9b3eca0 --- /dev/null +++ b/linden/indra/cmake/GooglePerfTools.cmake | |||
@@ -0,0 +1,28 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Prebuilt) | ||
3 | |||
4 | if (STANDALONE) | ||
5 | include(FindGooglePerfTools) | ||
6 | else (STANDALONE) | ||
7 | use_prebuilt_binary(google) | ||
8 | if (LINUX) | ||
9 | set(TCMALLOC_LIBRARIES tcmalloc) | ||
10 | set(STACKTRACE_LIBRARIES stacktrace) | ||
11 | set(PROFILER_LIBRARIES profiler) | ||
12 | set(GOOGLE_PERFTOOLS_INCLUDE_DIR | ||
13 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include) | ||
14 | set(GOOGLE_PERFTOOLS_FOUND "YES") | ||
15 | endif (LINUX) | ||
16 | endif (STANDALONE) | ||
17 | |||
18 | if (GOOGLE_PERFTOOLS_FOUND) | ||
19 | set(USE_GOOGLE_PERFTOOLS ON CACHE BOOL "Build with Google PerfTools support.") | ||
20 | endif (GOOGLE_PERFTOOLS_FOUND) | ||
21 | |||
22 | if (USE_GOOGLE_PERFTOOLS) | ||
23 | set(TCMALLOC_FLAG -DLL_USE_TCMALLOC=1) | ||
24 | include_directories(${GOOGLE_PERFTOOLS_INCLUDE_DIR}) | ||
25 | set(GOOGLE_PERFTOOLS_LIBRARIES ${TCMALLOC_LIBRARIES} ${STACKTRACE_LIBRARIES}) | ||
26 | else (USE_GOOGLE_PERFTOOLS) | ||
27 | set(TCMALLOC_FLAG -ULL_USE_TCMALLOC) | ||
28 | endif (USE_GOOGLE_PERFTOOLS) | ||