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/Mozlib.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/Mozlib.cmake | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/linden/indra/cmake/Mozlib.cmake b/linden/indra/cmake/Mozlib.cmake new file mode 100644 index 0000000..e9555df --- /dev/null +++ b/linden/indra/cmake/Mozlib.cmake | |||
@@ -0,0 +1,47 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Linking) | ||
3 | include(Prebuilt) | ||
4 | |||
5 | if (STANDALONE) | ||
6 | set(MOZLIB OFF CACHE BOOL | ||
7 | "Enable Mozilla support in the viewer (requires llmozlib library).") | ||
8 | else (STANDALONE) | ||
9 | use_prebuilt_binary(llmozlib) | ||
10 | set(MOZLIB ON CACHE BOOL | ||
11 | "Enable Mozilla support in the viewer (requires llmozlib library).") | ||
12 | endif (STANDALONE) | ||
13 | |||
14 | if (MOZLIB) | ||
15 | add_definitions(-DLL_LLMOZLIB_ENABLED=1) | ||
16 | |||
17 | if (LINUX) | ||
18 | link_directories(${CMAKE_SOURCE_DIR}/newview/app_settings/mozilla-runtime-linux-${ARCH}) | ||
19 | set(MOZLIB_LIBRARIES | ||
20 | llmozlib2 | ||
21 | mozjs | ||
22 | nspr4 | ||
23 | plc4 | ||
24 | plds4 | ||
25 | xpcom | ||
26 | xul | ||
27 | profdirserviceprovider_s | ||
28 | ) | ||
29 | elseif (WINDOWS) | ||
30 | if (MSVC71) | ||
31 | set(MOZLIB_LIBRARIES | ||
32 | debug llmozlib2d | ||
33 | optimized llmozlib2) | ||
34 | elseif (MSVC80 OR MSVC90) | ||
35 | set(MOZLIB_LIBRARIES | ||
36 | debug llmozlib2d-vc80 | ||
37 | optimized llmozlib2-vc80) | ||
38 | endif (MSVC71) | ||
39 | else (LINUX) | ||
40 | set(MOZLIB_LIBRARIES | ||
41 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libllmozlib2.dylib | ||
42 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/libllmozlib2.dylib | ||
43 | ) | ||
44 | endif (LINUX) | ||
45 | else (MOZLIB) | ||
46 | add_definitions(-DLL_LLMOZLIB_ENABLED=0) | ||
47 | endif (MOZLIB) | ||