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

Side by Side Diff: build_tools/common.sh

Issue 907563002: Simplify cli_main (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 # 4 #
5 # Environment variable NACL_ARCH should be set to one of the following 5 # Environment variable NACL_ARCH should be set to one of the following
6 # values: i686 x86_64 pnacl arm 6 # values: i686 x86_64 pnacl arm
7 7
8 8
9 # NAMING CONVENTION 9 # NAMING CONVENTION
10 # ================= 10 # =================
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 # Set NACL_SHARED when we want to build shared libraries. 88 # Set NACL_SHARED when we want to build shared libraries.
89 if [ "${NACL_LIBC}" = "glibc" -o "${NACL_LIBC}" = "bionic" ]; then 89 if [ "${NACL_LIBC}" = "glibc" -o "${NACL_LIBC}" = "bionic" ]; then
90 NACL_SHARED=1 90 NACL_SHARED=1
91 else 91 else
92 NACL_SHARED=0 92 NACL_SHARED=0
93 fi 93 fi
94 94
95 # libcli_main.a has a circular dependency which makes static link fail 95 # libcli_main.a has a circular dependency which makes static link fail
96 # (cli_main => nacl_io => ppapi_cpp => cli_main). To break this loop, 96 # (cli_main => nacl_io => ppapi_cpp => cli_main). To break this loop,
97 # you should use this instead of -lcli_main. 97 # you should use this instead of -lcli_main.
98 export NACL_CLI_MAIN_LIB="-Xlinker -uPSUserCreateInstance -lcli_main" 98 export NACL_CLI_MAIN_LIB="-Xlinker -uPSUserCreateInstance \
99 -lcli_main -lnacl_spawn"
99 100
100 # Python variables 101 # Python variables
101 NACL_PYSETUP_ARGS="" 102 NACL_PYSETUP_ARGS=""
102 NACL_BUILD_SUBDIR=build 103 NACL_BUILD_SUBDIR=build
103 NACL_INSTALL_SUBDIR=install 104 NACL_INSTALL_SUBDIR=install
104 105
105 # output directories 106 # output directories
106 readonly NACL_PACKAGES_OUT=${NACL_SRC}/out 107 readonly NACL_PACKAGES_OUT=${NACL_SRC}/out
107 readonly NACL_PACKAGES_ROOT=${NACL_PACKAGES_OUT}/packages 108 readonly NACL_PACKAGES_ROOT=${NACL_PACKAGES_OUT}/packages
108 readonly NACL_PACKAGES_BUILD=${NACL_PACKAGES_OUT}/build 109 readonly NACL_PACKAGES_BUILD=${NACL_PACKAGES_OUT}/build
(...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 # These functions are called when this script is imported to do 1537 # These functions are called when this script is imported to do
1537 # any essential checking/setup operations. 1538 # any essential checking/setup operations.
1538 ###################################################################### 1539 ######################################################################
1539 CheckToolchain 1540 CheckToolchain
1540 CheckPatchVersion 1541 CheckPatchVersion
1541 PatchSpecsFile 1542 PatchSpecsFile
1542 InjectSystemHeaders 1543 InjectSystemHeaders
1543 InstallConfigSite 1544 InstallConfigSite
1544 GetRevision 1545 GetRevision
1545 MakeDirs 1546 MakeDirs
OLDNEW
« no previous file with comments | « README.rst ('k') | ports/bash/build.sh » ('j') | ports/nacl-spawn/cli_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698