aboutsummaryrefslogtreecommitdiff
path: root/tools/distrib/linux32/run.sh
blob: 67cfe427a8cb94aa5a0ba763ec79c3029ab77abf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
# reserved. Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file.

# Determine the absolute path to the library directory.
export LIB_PATH=$(readlink -f "./bin/lib/linux32")

# Necessary for jcef_helper to find libcef.so.
if [ -n "$LD_LIBRARY_PATH" ]; then
  LD_LIBRARY_PATH=$LIB_PATH:${LD_LIBRARY_PATH}
else
  LD_LIBRARY_PATH=$LIB_PATH
fi
export LD_LIBRARY_PATH

# Preload libcef.so to avoid crashes.
LD_PRELOAD=$LIB_PATH/libcef.so java -cp "./bin:./bin/*" -Djava.library.path=$LIB_PATH tests.detailed.MainFrame "$@"