开发者

cross compiling with gyp

开发者 https://www.devze.com 2023-03-20 03:48 出处:网络
Does gyp support cross开发者_Go百科-compiling? If so are there any instuctions? If not, are there any tricks to get it to do cross compile anyways?

Does gyp support cross开发者_Go百科-compiling? If so are there any instuctions? If not, are there any tricks to get it to do cross compile anyways?

I am trying to use some of the chromium libraries and their build systems depend on gyp.


For further reference, here is a possible solution to cross compile. It was taken from here

SYSROOT=/build/arm-generic/
CPPPATH=/build/arm-generic/usr/include/
LIBPATH=/build/arm-generic/usr/lib/
PKG_CONFIG_PATH=/build/arm-generic/usr/lib/pkgconfig/
AR=armv7a-cros-linux-gnueabi-ar
AS=armv7a-cros-linux-gnueabi-as
LD=armv7a-cros-linux-gnueabi-ld
NM=armv7a-cros-linux-gnueabi-nm
RANLIB=armv7a-cros-linux-gnueabi-ranlib
CC=armv7a-cros-linux-gnueabi-gcc
CXX=armv7a-cros-linux-gnueabi-g++
CPPDEFINES = 'NACL_BUILD_ARCH=arm'
CCFLAGS = '-fPIC'

No need to use them all ofc, just select what you need.

0

精彩评论

暂无评论...
验证码 换一张
取 消