OSDN Git Service

PR target/35496
[pf3gnuchains/gcc-fork.git] / libjava / gnu / classpath / natConfiguration.cc
1 // natConfiguration.cc - native code for configuration.
2
3 /* Copyright (C) 2006  Free Software Foundation
4
5    This file is part of libgcj.
6
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
9 details.  */
10
11 #include <config.h>
12 #include <platform.h>
13
14 #include <gcj/cni.h>
15 #include <jvm.h>
16
17 #include <gnu/classpath/Configuration.h>
18
19 jstring
20 gnu::classpath::Configuration::classpath_home()
21 {
22   return JvNewStringLatin1(LIBGCJ_PREFIX);
23 }
24
25 jboolean
26 gnu::classpath::Configuration::debug()
27 {
28 #ifdef DEBUG
29   return true;
30 #else
31   return false;
32 #endif
33 }
34
35 jstring
36 gnu::classpath::Configuration::toolkit()
37 {
38   return JvNewStringLatin1(AWT_TOOLKIT);
39 }
40
41 jstring
42 gnu::classpath::Configuration::ecj()
43 {
44   return JvNewStringLatin1(ECJ_JAR_FILE);
45 }