Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(640)

Unified Diff: third_party/cld_2/README.chromium

Issue 350993003: Update docs for CLD2 dynamic data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cld_2/README.chromium
diff --git a/third_party/cld_2/README.chromium b/third_party/cld_2/README.chromium
index 7db316386a2f9876db25b64f81ea3c19b6849431..30973291e7617574715106e018f84b977682815e 100644
--- a/third_party/cld_2/README.chromium
+++ b/third_party/cld_2/README.chromium
@@ -42,8 +42,24 @@ Tradeoffs to consider before enabling dynamic mode:
circumstances). This will prevent language detection from working until
a data file has been loaded.
-To enable dynamic mode, set 'cld_dynamic' to '1' in ../../build/common.gypi.
+To enable dynamic mode in CLD2 itself, you must define "CLD2_DYNAMIC_MODE".
+In Chromium, this is controlled by the 'cld2_data_source' variable in
+../../build/common.gypi.
-For more information on the changes required to use dynamic mode, see:
- https://codereview.chromium.org/187393005
+Building a CLD2 Dynamic Mode Data File
+======================================
+Note: The cld_2_dynamic_data_tool target is not currently supported on Android.
+ The binaries that it generates are platform-independent, but to build
+ the target itself you'll need a desktop environment.
+
+1. Configure your desired table size by setting the value of "cld2_table_size"
+ in ../../build/common.gypi.
+2. Build the "cld_2_dynamic_data_tool" target. This will generate the tool:
+ ${BUILD_DIR}/cld_2_dynamic_data_tool
+3. Run the tool with "--dump <file>" to generate a data file, e.g.:
+ ${BUILD_DIR}/cld_2_dynamic_data_tool --dump /tmp/cld2_data.bin
+4. (Optional) Verify that the file was correctly written:
+ ${BUILD_DIR}/cld_2_dynamic_data_tool --verify /tmp/cld2_data.bin
+
+The data file is suitable for use on all platforms.
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698