aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-21 00:40:16 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-21 00:40:16 +0000
commitfe424101036c75548967f952213d041eb7ffca83 (patch)
tree09364b249946bfca25523f3ba1cba3815ca53e5b
parentd832f1d5b5472528301bff3d3faf0741735f2825 (diff)
Fix NaCl build for pepper_32
BUG=skia: R=rmistry@google.com, djsollen@google.com Author: borenet@google.com Review URL: https://codereview.chromium.org/171233015 git-svn-id: http://skia.googlecode.com/svn/trunk@13523 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--gyp/common_conditions.gypi7
-rwxr-xr-xplatform_tools/nacl/nacl_make5
2 files changed, 10 insertions, 2 deletions
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi
index 48f8e19d03..3fa697e6e2 100644
--- a/gyp/common_conditions.gypi
+++ b/gyp/common_conditions.gypi
@@ -264,6 +264,9 @@
'defines': [
'SK_BUILD_FOR_NACL',
],
+ 'variables': {
+ 'nacl_sdk_root': '<!(["echo", "${NACL_SDK_ROOT}"])',
+ },
'link_settings': {
'libraries': [
'-lppapi',
@@ -271,6 +274,10 @@
'-lnosys',
'-pthread',
],
+ 'ldflags': [
+ '-L<(nacl_sdk_root)/lib/newlib_x86_<(skia_arch_width)/Release',
+ '-L<(nacl_sdk_root)/ports/lib/newlib_x86_<(skia_arch_width)/Release',
+ ],
},
}, { # skia_os != "nacl"
'link_settings': {
diff --git a/platform_tools/nacl/nacl_make b/platform_tools/nacl/nacl_make
index 74b85718d6..97a1e9ed64 100755
--- a/platform_tools/nacl/nacl_make
+++ b/platform_tools/nacl/nacl_make
@@ -64,8 +64,9 @@ function setenv {
exportVar AR "${NACLAR}"
exportVar RANLIB "${NACLRANLIB}"
exportVar PATH ${NACL_BIN_PATH}:${PATH};
-
- exportVar GYP_DEFINES "skia_os=nacl skia_arch_width=${ARCH_WIDTH}"
+ exportVar C_INCLUDE_PATH "${NACL_SDK_ROOT}/include:${NACL_SDK_ROOT}/ports/include:${C_INCLUDE_PATH}"
+ exportVar CPLUS_INCLUDE_PATH "${NACL_SDK_ROOT}/include:${NACL_SDK_ROOT}/ports/include:${CPLUS_INCLUDE_PATH}"
+ exportVar GYP_DEFINES "skia_os=nacl skia_gpu=0 skia_arch_width=${ARCH_WIDTH}"
}
function build {