(Chromium for Android)GN/NINJA如何在没有源代码的情况下添加预构建共享库(.so)?

(Chromium for Android)GN/NINJA如何在没有源代码的情况下添加预构建共享库(.so)?,android,shared-libraries,chromium,ninja,gn,Android,Shared Libraries,Chromium,Ninja,Gn,我正在为android开发chromium的源代码:尝试在Webkit中开发一些功能 我所做的: (1) 在“第三方/WebKit/Source/core/frame”中创建test.cpp/test.h:test.cpp包含addlib.h调用addlib.so中的求和函数(在下一步创建) (2) 通过“g++-fPIC-shared addlib.cpp-o addlib.so”在“third_party/WebKit/Source/core/frame”中创建add.h和add.so(ad

我正在为android开发chromium的源代码:尝试在Webkit中开发一些功能

我所做的: (1) 在“第三方/WebKit/Source/core/frame”中创建test.cpp/test.h:test.cpp包含addlib.h调用addlib.so中的求和函数(在下一步创建) (2) 通过“g++-fPIC-shared addlib.cpp-o addlib.so”在“third_party/WebKit/Source/core/frame”中创建add.h和add.so(addlib.so只提供两个整数求和的函数并返回结果)

我的目的:在test.cpp中调用addlib.so中的函数

但是gn给了我错误信息:

ERROR at //third_party/WebKit/Source/core/frame/BUILD.gn:170:20:Assignment had no effect.
shared_library = [ ":addlib.so" ]
               ^-----------
You set the variable "shared_library" here and it was unused before it went out of scope.
有什么建议给我吗?非常感谢

ERROR at //third_party/WebKit/Source/core/frame/BUILD.gn:170:20:Assignment had no effect.
shared_library = [ ":addlib.so" ]
               ^-----------
You set the variable "shared_library" here and it was unused before it went out of scope.