Files
yoga/lib/fb/BUCK
Emil Sjolander d506e6ab94 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
2016-10-08 06:22:50 -07:00

43 lines
1023 B
Python

# Copyright (c) 2014-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
include_defs('//CSSLAYOUT_DEFS')
prebuilt_cxx_library(
name = 'ndklog',
header_only = True,
exported_platform_linker_flags = [
('android.*', ['-llog']),
],
visibility = [CSSLAYOUT_ROOT],
)
cxx_library(
name = 'fbjni',
srcs = glob(['**/*.cpp']),
xcode_public_headers_symlinks = True,
exported_headers = subdir_glob([('include', '**/*.h')]),
header_namespace = '',
compiler_flags = [
'-DLOG_TAG=\"libfb\"',
'-DDISABLE_CPUCAP',
'-DDISABLE_XPLAT',
'-DHAVE_POSIX_CLOCKS',
'-fno-omit-frame-pointer',
'-fexceptions',
'-frtti',
'-Wall',
'-Werror',
'-Wno-unused-parameter',
'-std=c++11',
],
deps = JNI_DEPS + [
':ndklog',
],
visibility = ['PUBLIC'],
)