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/chromevox/background/braille',
10 '>!@pymod_do_main(liblouis_list_tables -D overrides/tables -D src/tables 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',
52 'direct_dependent_settings': {
58 'overrides/liblouis/config.h',
59 'overrides/liblouis/liblouis.h',
60 'overrides/liblouis/compileTranslationTable.c',
61 'src/liblouis/lou_backTranslateString.c',
62 'src/liblouis/lou_translateString.c',
63 'src/liblouis/transcommon.ci',
64 'src/liblouis/wrappers.c',
67 '../../native_client/tools.gyp:prep_toolchain',
71 'target_name': 'liblouis_nacl_wrapper_nacl',
74 'nacl_untrusted_build': 1,
75 'nexe_target': 'liblouis_nacl',
76 'out_newlib64': '<(braille_test_data_dir)/>(nexe_target)_x86_64.nexe',
77 'out_newlib32': '<(braille_test_data_dir)/>(nexe_target)_x86_32.nexe',
78 'out_newlib_arm': '<(braille_test_data_dir)/>(nexe_target)_arm.nexe',
83 'nmf': '<(braille_test_data_dir)/>(nexe_target).nmf',
84 'target_conditions': [
85 ['enable_x86_64==1', {
86 'nexe_files': ['>(out_newlib64)'],
88 ['enable_x86_32==1', {
89 'nexe_files': ['>(out_newlib32)'],
92 'nexe_files': ['>(out_newlib_arm)'],
97 'nacl_wrapper/liblouis_instance.h',
98 'nacl_wrapper/liblouis_instance.cc',
99 'nacl_wrapper/liblouis_module.h',
100 'nacl_wrapper/liblouis_module.cc',
101 'nacl_wrapper/liblouis_wrapper.h',
102 'nacl_wrapper/liblouis_wrapper.cc',
103 'nacl_wrapper/translation_params.h',
104 'nacl_wrapper/translation_result.h',
115 '../../native_client/src/untrusted/nacl/nacl.gyp:nacl_lib',
116 '../../native_client/tools.gyp:prep_toolchain',
117 '../../native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untrusted',
118 '../../ppapi/native_client/native_client.gyp:ppapi_lib',
119 '../../ppapi/ppapi_untrusted.gyp:ppapi_cpp_lib',
120 '../jsoncpp/jsoncpp_nacl.gyp:jsoncpp_nacl',
125 'action_name': 'Generate NEWLIB NMF',
129 'outputs': ['>(nmf)'],
132 '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
138 # Copy specific files into the product directory to avoid
139 # copying over the unstripped binary file.
142 'destination': '<(braille_chromevox_dir)',
150 'destination': '<(braille_chromevox_dir)/tables',
158 'target_name': 'liblouis_test_data',
161 'test_extension_dir': '<(DEPTH)/chrome/test/data/chromeos/liblouis_nacl',
164 'liblouis_nacl_wrapper_nacl',
168 'destination': '<(braille_test_data_dir)',
171 '<(test_extension_dir)/manifest.json',
172 '<(test_extension_dir)/test.js',
176 'destination': '<(braille_test_data_dir)/tables',