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

Side by Side Diff: native_client_sdk/src/project_templates/scons.bat

Issue 16972010: Dropping nacl sdk dead code (documentation, project_template). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 @echo off
2
3 :: Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 :: Use of this source code is governed by a BSD-style license that can be
5 :: found in the LICENSE file.
6
7 setlocal
8
9 :: NACL_SDK_ROOT must be set.
10 if not defined NACL_SDK_ROOT (
11 echo Error: NACL_SDK_ROOT is not set.
12 echo Please set NACL_SDK_ROOT to the full path of the Native Client SDK.
13 echo For example:
14 echo set NACL_SDK_ROOT=D:\nacl_sdk
15 goto end
16 )
17
18 :: NACL_TARGET_PLATFORM is really the name of a folder with the base dir -
19 :: usually NACL_SDK_ROOT - within which the toolchain for the target platform
20 :: are found.
21 :: Replace the platform with the name of your target platform. For example, to
22 :: build applications that target the pepper_17 API, set
23 :: NACL_TARGET_PLATFORM=pepper_17
24 if not defined NACL_TARGET_PLATFORM (
25 set NACL_TARGET_PLATFORM=pepper_17
26 )
27
28 set NACL_PLATFORM_DIR=%NACL_SDK_ROOT%\%NACL_TARGET_PLATFORM%
29
30 set SCONS_DIR=%NACL_PLATFORM_DIR%\third_party\scons-2.0.1
31 if exist %SCONS_DIR% goto gotscons
32 set SCONS_DIR=%~dp0..\..\..\third_party\scons-2.0.1
33 :gotscons
34
35 set SCONS_LIB_DIR=%SCONS_DIR%\engine
36 set PYTHONPATH=%SCONS_LIB_DIR%;%NACL_PLATFORM_DIR%\build_tools
37
38 :: We have to do this because scons overrides PYTHONPATH and does not preserve
39 :: what is provided by the OS. The custom variable name won't be overwritten.
40 set PYMOX=%NACL_PLATFORM_DIR%\third_party\pymox\src
41
42 set BASE_SCRIPT=%SCONS_DIR%\script\scons
43
44 :: Run the included copy of scons.
45 python -O -OO %BASE_SCRIPT% ^
46 --warn no-visual-c-missing ^
47 --file=build.scons ^
48 --site-dir="%~dp0..\build_tools\nacl_sdk_scons" %*
49
50 :end
OLDNEW
« no previous file with comments | « native_client_sdk/src/project_templates/scons ('k') | native_client_sdk/src/project_templates/test.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698