OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.content.app; | 5 package org.chromium.content.app; |
6 | 6 |
7 public class NativeLibraries { | 7 public class NativeLibraries { |
8 /** | 8 /** |
9 * IMPORTANT NOTE: The variables defined here must _not_ be 'final'. | 9 * IMPORTANT NOTE: The variables defined here must _not_ be 'final'. |
10 * | 10 * |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 public static boolean ENABLE_LINKER_TESTS = false; | 53 public static boolean ENABLE_LINKER_TESTS = false; |
54 #endif | 54 #endif |
55 | 55 |
56 // This is the list of native libraries to be loaded (in the correct order) | 56 // This is the list of native libraries to be loaded (in the correct order) |
57 // by LibraryLoader.java. The content java library is compiled with no | 57 // by LibraryLoader.java. The content java library is compiled with no |
58 // array defined, and then the build system creates a version of the file | 58 // array defined, and then the build system creates a version of the file |
59 // with the real list of libraries required (which changes based upon which | 59 // with the real list of libraries required (which changes based upon which |
60 // .apk is being built). | 60 // .apk is being built). |
61 // TODO(cjhopman): This is public since it is referenced by ChromeNativeTest
Activity.java | 61 // TODO(cjhopman): This is public since it is referenced by ChromeNativeTest
Activity.java |
62 // directly. The two ways of library loading should be refactored into one. | 62 // directly. The two ways of library loading should be refactored into one. |
63 public static String[] libraries | 63 public static final String[] LIBRARIES |
64 #include <native_libraries_array.h> | 64 #include <native_libraries_array.h> |
65 ; | 65 ; |
| 66 // This is the expected version of the 'main' native library, which is the o
ne that |
| 67 // implements the initial set of content JNI functions including |
| 68 // content::nativeGetVersionName() |
| 69 // Note(aberent): This is logically final, but making it final breaks the bu
ild, since it |
| 70 // lets other Java components read its value at compile time rather than at
run time, hence |
| 71 // reading it from the wrong class file. |
| 72 static String VERSION_NUMBER |
| 73 #include <native_libraries_version.h> |
| 74 ; |
66 } | 75 } |
OLD | NEW |