aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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 {