Enable running within robolectric
Summary: Add some dependencies to enable running the native version of csslayout within robolectric internally. Reviewed By: lucasr Differential Revision: D3960840 fbshipit-source-id: 08a45f7299b04f70f643b0c9b95da13f90690dd8
This commit is contained in:
committed by
Facebook Github Bot
parent
56f6efdecf
commit
d506e6ab94
3
BUCK
3
BUCK
@@ -43,9 +43,8 @@ cxx_library(
|
|||||||
srcs = glob(['java/jni/*.cpp']),
|
srcs = glob(['java/jni/*.cpp']),
|
||||||
header_namespace = '',
|
header_namespace = '',
|
||||||
compiler_flags = JNI_COMPILER_FLAGS,
|
compiler_flags = JNI_COMPILER_FLAGS,
|
||||||
deps = [
|
deps = JNI_DEPS + [
|
||||||
':CSSLayout',
|
':CSSLayout',
|
||||||
css_layout_dep('lib/fb:fbjni'),
|
|
||||||
],
|
],
|
||||||
visibility = ['PUBLIC'],
|
visibility = ['PUBLIC'],
|
||||||
)
|
)
|
||||||
|
@@ -7,12 +7,10 @@ PROGRUARD_ANNOTATIONS_TARGET = '//java/com/facebook/proguard/annotations:annotat
|
|||||||
SOLOADER_TARGET = '//lib/soloader:soloader'
|
SOLOADER_TARGET = '//lib/soloader:soloader'
|
||||||
GTEST_TARGET = '//lib/gtest:gtest'
|
GTEST_TARGET = '//lib/gtest:gtest'
|
||||||
GTEST_DL_URL = 'https://github.com/google/googletest/archive/release-1.7.0.zip'
|
GTEST_DL_URL = 'https://github.com/google/googletest/archive/release-1.7.0.zip'
|
||||||
|
JNI_DEPS = ['//lib/fb:fbjni']
|
||||||
|
|
||||||
class allow_unsafe_import:
|
class allow_unsafe_import:
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
pass
|
pass
|
||||||
def __exit__(self, type, value, traceback):
|
def __exit__(self, type, value, traceback):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def css_layout_dep(name):
|
|
||||||
return '//' + name
|
|
||||||
|
@@ -35,8 +35,8 @@ cxx_library(
|
|||||||
'-Wno-unused-parameter',
|
'-Wno-unused-parameter',
|
||||||
'-std=c++11',
|
'-std=c++11',
|
||||||
],
|
],
|
||||||
deps = [
|
deps = JNI_DEPS + [
|
||||||
':ndklog',
|
':ndklog',
|
||||||
],
|
],
|
||||||
visibility = [CSSLAYOUT_ROOT],
|
visibility = ['PUBLIC'],
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user