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

Side by Side Diff: src/trusted/cpu_features/build.scons

Issue 11864002: Move CPU features into its own static library. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Another go at Windows x64, with help from Noel. Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # -*- python -*-
2 # Copyright (c) 2013 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 os
7 Import('env')
8
9 env.ComponentLibrary('cpu_features',
10 ['arch/arm/cpu_arm.c',
11 'arch/mips/cpu_mips.c',
12 'arch/x86/cpu_x86.c',
13 'arch/x86/cpu_xgetbv.S'])
14
15 if env.Bit('target_x86'):
16 # Create environment for command-line tools and testing, rather than
17 # part of the TCB. Then define compile-time flag that communicates
18 # that we are compiling in the test environment (rather than for the TCB).
19 test_env = env.Clone()
20 test_env.Append(CCFLAGS=['-DNACL_TRUSTED_BUT_NOT_TCB'])
21
22 cpu_x86_test = test_env.ComponentProgram(
23 'cpu_x86_test',
24 ['arch/x86/cpu_x86_test.c'],
25 EXTRA_LIBS=[
26 test_env.NaClTargetArchSuffix('ncval_base'),
27 'cpu_features',
28 'platform'
29 ])
30
31 node = test_env.CommandTest(
32 'cpu_x86_test.out',
33 [cpu_x86_test])
34 test_env.AddNodeToTestSuite(node, ['large_tests'], 'run_cpu_x86_test')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698