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.base.library_loader; |
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 * |
11 * The reason for this is very subtle: | 11 * The reason for this is very subtle: |
12 * | 12 * |
13 * - This template is used to generate several distinct, but similar | 13 * - This template is used to generate several distinct, but similar |
14 * files used in different contexts: | 14 * files used in different contexts: |
15 * | 15 * |
16 * o .../gen/templates/org/chromium/content/app/NativeLibraries.java | 16 * o .../gen/templates/org/chromium/content/app/NativeLibraries.java |
Yaron
2014/01/17 02:18:25
Lots of paths to update here.
aberent
2014/01/30 17:46:05
Done.
| |
17 * | 17 * |
18 * This file is used to build content.jar, which is the library | 18 * This file is used to build content.jar, which is the library |
19 * jar used by several content-based projects. However, the | 19 * jar used by several content-based projects. However, the |
20 * corresponding NativeLibraries.class file will _not_ be part | 20 * corresponding NativeLibraries.class file will _not_ be part |
21 * of the final content.jar. | 21 * of the final content.jar. |
22 * | 22 * |
23 * o .../$PROJECT/native_libraries_java/NativeLibraries.java | 23 * o .../$PROJECT/native_libraries_java/NativeLibraries.java |
24 * | 24 * |
25 * This file is used to build a content-based APK (e.g. $PROJECT | 25 * This file is used to build a content-based APK (e.g. $PROJECT |
26 * could be 'content_shell_apk'). Its content will depend on | 26 * could be 'content_shell_apk'). Its content will depend on |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 // This is the expected version of the 'main' native library, which is the o ne that | 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 | 67 // implements the initial set of content JNI functions including |
68 // content::nativeGetVersionName() | 68 // content::nativeGetVersionName() |
69 // Note(aberent): This is logically final, but making it final breaks the bu ild, since it | 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 | 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. | 71 // reading it from the wrong class file. |
72 static String VERSION_NUMBER | 72 static String VERSION_NUMBER |
73 #include <native_libraries_version.h> | 73 #include <native_libraries_version.h> |
74 ; | 74 ; |
75 } | 75 } |
OLD | NEW |