9128e14e4ea6e069d436dc47a299d83b17353450
[platform/framework/web/crosswalk.git] / src / native_client / src / tools / validator_tools / build.scons
1 # -*- python -*-
2 # Copyright 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 Import('env')
7
8 # TODO(mseaborn): Extend the ARM validator to support this.
9 if not env.Bit('target_x86'):
10   Return()
11
12 # The R-DFA validators are currently unable to work in stubout mode.
13 # TODO(pasko): either eliminate the stubout tools or add stubout mode to the
14 # validator.
15 if env.Bit('validator_ragel'):
16   Return()
17
18 # Create environment for command-line tools and testing.
19 env.Append(CCFLAGS=['-DNACL_TRUSTED_BUT_NOT_TCB'])
20
21 env.ComponentProgram(
22     'ncval_stubout',
23     'ncstubout.c',
24     EXTRA_LIBS=['validators', env.NaClTargetArchSuffix('ncvalidate_verbose')])