| OLD | NEW |
| 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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 | 818 |
| 819 # | 819 # |
| 820 # Build step for projects based on the NaCl SDK build | 820 # Build step for projects based on the NaCl SDK build |
| 821 # system (common.mk). | 821 # system (common.mk). |
| 822 # | 822 # |
| 823 SetupSDKBuildSystem() { | 823 SetupSDKBuildSystem() { |
| 824 # We override $(OUTBASE) to force the build system to put | 824 # We override $(OUTBASE) to force the build system to put |
| 825 # all its artifacts in ${SRC_DIR} rather than alongside | 825 # all its artifacts in ${SRC_DIR} rather than alongside |
| 826 # the Makefile. | 826 # the Makefile. |
| 827 export OUTBASE=${SRC_DIR} | 827 export OUTBASE=${SRC_DIR} |
| 828 export CFLAGS="${NACLPORTS_CPPFLAGS} ${NACLPORTS_CFLAGS}" | 828 export NACL_CFLAGS="${NACLPORTS_CPPFLAGS} ${NACLPORTS_CFLAGS}" |
| 829 export CXXFLAGS="${NACLPORTS_CPPFLAGS} ${NACLPORTS_CXXFLAGS}" | 829 export NACL_CXXFLAGS="${NACLPORTS_CPPFLAGS} ${NACLPORTS_CXXFLAGS}" |
| 830 export LDFLAGS=${NACLPORTS_LDFLAGS} | 830 export LDFLAGS=${NACLPORTS_LDFLAGS} |
| 831 export NACL_PREFIX | 831 export NACL_PREFIX |
| 832 export NACL_PACKAGES_PUBLISH | 832 export NACL_PACKAGES_PUBLISH |
| 833 export NACL_SRC | 833 export NACL_SRC |
| 834 export NACLPORTS_INCLUDE | 834 export NACLPORTS_INCLUDE |
| 835 export NACLPORTS_REVISION=${FULL_REVISION} | 835 export NACLPORTS_REVISION=${FULL_REVISION} |
| 836 export PKG_CONFIG_LIBDIR="${NACLPORTS_LIBDIR}/pkgconfig" | 836 export PKG_CONFIG_LIBDIR="${NACLPORTS_LIBDIR}/pkgconfig" |
| 837 export ENABLE_BIONIC=1 | 837 export ENABLE_BIONIC=1 |
| 838 # By default PKG_CONFIG_PATH is set to <libdir>/pkgconfig:<datadir>/pkgconfig. | 838 # By default PKG_CONFIG_PATH is set to <libdir>/pkgconfig:<datadir>/pkgconfig. |
| 839 # While PKG_CONFIG_LIBDIR overrides <libdir>, <datadir> (/usr/share/) can only | 839 # While PKG_CONFIG_LIBDIR overrides <libdir>, <datadir> (/usr/share/) can only |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1650 # These functions are called when this script is imported to do | 1650 # These functions are called when this script is imported to do |
| 1651 # any essential checking/setup operations. | 1651 # any essential checking/setup operations. |
| 1652 ###################################################################### | 1652 ###################################################################### |
| 1653 CheckToolchain | 1653 CheckToolchain |
| 1654 CheckPatchVersion | 1654 CheckPatchVersion |
| 1655 CheckSDKVersion | 1655 CheckSDKVersion |
| 1656 PatchSpecFile | 1656 PatchSpecFile |
| 1657 InjectSystemHeaders | 1657 InjectSystemHeaders |
| 1658 InstallConfigSite | 1658 InstallConfigSite |
| 1659 GetRevision | 1659 GetRevision |
| OLD | NEW |