1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 'braille_test_data_dir': '<(PRODUCT_DIR)/chromevox_test_data/braille',
8 'braille_chromevox_dir': '<(PRODUCT_DIR)/resources/chromeos/chromevox/braille',
10 '>!@pymod_do_main(liblouis_list_tables -D . -D src/tables -e cvox-common.cti tables.json)',
13 # x86 targets build both 32 and 64 bit binaries by default. We only need
14 # the one that matches our target architecture.
17 ['target_arch=="ia32"', {
22 ['target_arch=="x64"', {
30 '../../build/common_untrusted.gypi',
33 ['disable_nacl==0 and disable_nacl_untrusted==0', {
36 'target_name': 'liblouis_nacl',
39 'nacl_untrusted_build': 1,
40 'nlib_target': 'liblouis_nacl.a',
45 '-Wno-unused-but-set-variable',
53 'direct_dependent_settings': {
59 'overrides/liblouis/config.h',
60 'overrides/liblouis/liblouis.h',
61 'src/liblouis/compileTranslationTable.c',
62 'src/liblouis/logging.c',
63 'src/liblouis/lou_backTranslateString.c',
64 'src/liblouis/lou_translateString.c',
65 'src/liblouis/transcommon.ci',
66 'src/liblouis/wrappers.c',
69 '../../native_client/tools.gyp:prep_toolchain',
73 'target_name': 'liblouis_nacl_wrapper_nacl',
76 'nacl_untrusted_build': 1,
77 'nexe_target': 'liblouis_nacl',
78 'out_newlib64': '<(braille_test_data_dir)/>(nexe_target)_x86_64.nexe',
79 'out_newlib32': '<(braille_test_data_dir)/>(nexe_target)_x86_32.nexe',
80 'out_newlib_arm': '<(braille_test_data_dir)/>(nexe_target)_arm.nexe',
81 'out_newlib_mips': '<(braille_test_data_dir)/>(nexe_target)_mips32.nexe',
86 'nmf': '<(braille_test_data_dir)/>(nexe_target).nmf',
87 'target_conditions': [
88 ['enable_x86_64==1', {
89 'nexe_files': ['>(out_newlib64)'],
91 ['enable_x86_32==1', {
92 'nexe_files': ['>(out_newlib32)'],
95 'nexe_files': ['>(out_newlib_arm)'],
98 'nexe_files': ['>(out_newlib_mips)'],
103 'nacl_wrapper/liblouis_instance.h',
104 'nacl_wrapper/liblouis_instance.cc',
105 'nacl_wrapper/liblouis_module.h',
106 'nacl_wrapper/liblouis_module.cc',
107 'nacl_wrapper/liblouis_wrapper.h',
108 'nacl_wrapper/liblouis_wrapper.cc',
109 'nacl_wrapper/translation_params.h',
110 'nacl_wrapper/translation_result.h',
121 '../../native_client/src/untrusted/nacl/nacl.gyp:nacl_lib',
122 '../../native_client/tools.gyp:prep_toolchain',
123 '../../native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untrusted',
124 '../../ppapi/native_client/native_client.gyp:ppapi_lib',
125 '../../ppapi/ppapi_nacl.gyp:ppapi_cpp_lib',
126 '../jsoncpp/jsoncpp_nacl.gyp:jsoncpp_nacl',
131 'action_name': 'Generate NEWLIB NMF',
135 'outputs': ['>(nmf)'],
138 '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
144 # Copy specific files into the product directory to avoid
145 # copying over the unstripped binary file.
148 'destination': '<(braille_chromevox_dir)',
156 'destination': '<(braille_chromevox_dir)/tables',
164 'target_name': 'liblouis_test_data',
167 'test_extension_dir': '<(DEPTH)/chrome/test/data/chromeos/liblouis_nacl',
170 'liblouis_nacl_wrapper_nacl',
174 'destination': '<(braille_test_data_dir)',
177 '<(test_extension_dir)/manifest.json',
178 '<(test_extension_dir)/test.js',
182 'destination': '<(braille_test_data_dir)/tables',