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

Side by Side Diff: trunk/src/third_party/liblouis/liblouis_untrusted.gyp

Issue 93783003: Revert 237638 "Build liblouis_nacl using gyp." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 {
6 'variables': {
7 'braille_test_data_dir': '<(PRODUCT_DIR)/chromevox_test_data/braille',
8 'braille_chromevox_dir': '<(PRODUCT_DIR)/resources/chromeos/chromevox/chrome vox/background/braille',
9 'table_files': [
10 '>!@pymod_do_main(liblouis_list_tables -D overrides/tables -D src/tables t ables.json)',
11 ],
12 },
13 # x86 targets build both 32 and 64 bit binaries by default. We only need
14 # the one that matches our target architecture.
15 'target_defaults': {
16 'conditions': [
17 ['target_arch=="ia32"', {
18 'variables': {
19 'enable_x86_64': 0,
20 },
21 }],
22 ['target_arch=="x64"', {
23 'variables': {
24 'enable_x86_32': 0,
25 },
26 }],
27 ],
28 },
29 'includes': [
30 '../../build/common_untrusted.gypi',
31 ],
32 'conditions': [
33 ['disable_nacl==0 and disable_nacl_untrusted==0', {
34 'targets': [
35 {
36 'target_name': 'liblouis_untrusted',
37 'type': 'none',
38 'variables': {
39 'nacl_untrusted_build': 1,
40 'nlib_target': 'liblouis_untrusted.a',
41 'build_newlib': 1,
42 },
43 'include_dirs': [
44 'overrides/liblouis',
45 'src/liblouis',
46 '.',
47 ],
48 'direct_dependent_settings': {
49 'include_dirs': [
50 'overrides',
51 ],
52 },
53 'sources': [
54 'overrides/liblouis/config.h',
55 'overrides/liblouis/liblouis.h',
56 'overrides/liblouis/compileTranslationTable.c',
57 'src/liblouis/lou_backTranslateString.c',
58 'src/liblouis/lou_translateString.c',
59 'src/liblouis/transcommon.ci',
60 'src/liblouis/wrappers.c',
61 ],
62 'dependencies': [
63 '../../native_client/tools.gyp:prep_toolchain',
64 ],
65 },
66
67 {
68 'target_name': 'liblouis_nacl_wrapper_untrusted',
69 'type': 'none',
70 'variables': {
71 'nacl_untrusted_build': 1,
72 'nexe_target': 'liblouis_nacl',
73 'out_newlib64': '<(braille_test_data_dir)/>(nexe_target)_x86_64.nexe ',
74 'out_newlib32': '<(braille_test_data_dir)/>(nexe_target)_x86_32.nexe ',
75 'out_newlib_arm': '<(braille_test_data_dir)/>(nexe_target)_arm.nexe' ,
76 'build_newlib': 1,
77 'extra_args': [
78 '--strip-debug',
79 ],
80 'nmf': '<(braille_test_data_dir)/>(nexe_target).nmf',
81 'target_conditions': [
82 ['enable_x86_64==1', {
83 'nexe_files': ['>(out_newlib64)'],
84 }],
85 ['enable_x86_32==1', {
86 'nexe_files': ['>(out_newlib32)'],
87 }],
88 ['enable_arm==1', {
89 'nexe_files': ['>(out_newlib_arm)'],
90 }],
91 ],
92 },
93 'sources': [
94 'nacl_wrapper/liblouis_instance.h',
95 'nacl_wrapper/liblouis_instance.cc',
96 'nacl_wrapper/liblouis_module.h',
97 'nacl_wrapper/liblouis_module.cc',
98 'nacl_wrapper/liblouis_wrapper.h',
99 'nacl_wrapper/liblouis_wrapper.cc',
100 'nacl_wrapper/translation_params.h',
101 'nacl_wrapper/translation_result.h',
102 ],
103 'link_flags': [
104 '-lppapi',
105 '-lppapi_cpp',
106 '-llouis_untrusted',
107 '-ljsoncpp_untrusted',
108 '-lpthread',
109 '-lnacl_io',
110 ],
111 'dependencies': [
112 '../../native_client/src/untrusted/nacl/nacl.gyp:nacl_lib',
113 '../../native_client/tools.gyp:prep_toolchain',
114 '../../native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_unt rusted',
115 '../../ppapi/native_client/native_client.gyp:ppapi_lib',
116 '../../ppapi/ppapi_untrusted.gyp:ppapi_cpp_lib',
117 '../jsoncpp/jsoncpp_untrusted.gyp:jsoncpp_untrusted',
118 'liblouis_untrusted',
119 ],
120 'actions': [
121 {
122 'action_name': 'Generate NEWLIB NMF',
123 'inputs': [
124 '>@(nexe_files)',
125 ],
126 'outputs': ['>(nmf)'],
127 'action': [
128 'python',
129 '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
130 '>@(_inputs)',
131 '--output=>(nmf)',
132 ],
133 },
134 ],
135 # Copy specific files into the product directory to avoid
136 # copying over the unstripped binary file.
137 'copies': [
138 {
139 'destination': '<(braille_chromevox_dir)',
140 'files': [
141 '<(nmf)',
142 '>@(nexe_files)',
143 'tables.json',
144 ],
145 },
146 {
147 'destination': '<(braille_chromevox_dir)/tables',
148 'files': [
149 '<@(table_files)',
150 ],
151 },
152 ],
153 },
154 {
155 'target_name': 'liblouis_test_data',
156 'type': 'none',
157 'variables': {
158 'test_extension_dir': '<(DEPTH)/chrome/test/data/chromeos/liblouis_n acl',
159 },
160 'dependencies': [
161 'liblouis_nacl_wrapper_untrusted',
162 ],
163 'copies': [
164 {
165 'destination': '<(braille_test_data_dir)',
166 'files': [
167 'tables.json',
168 '<(test_extension_dir)/manifest.json',
169 '<(test_extension_dir)/test.js',
170 ],
171 },
172 {
173 'destination': '<(braille_test_data_dir)/tables',
174 'files': [
175 '<@(table_files)',
176 ],
177 },
178 ],
179 },
180 ],
181 }],
182 ],
183 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698