Files
yoga/lib/fb/BUCK
Emil Sjolander f36f545d75 Add an anchor to the android platform regex
Summary: This prevents android from matching in the middle of a platform.

Reviewed By: gkassabli

Differential Revision: D4306164

fbshipit-source-id: 7f62a6a017724f8f6741d3e53b5fbe0650c8c88e
2016-12-10 17:37:12 -08:00

43 lines
979 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('//YOGA_DEFS')
prebuilt_cxx_library(
name = 'ndklog',
header_only = True,
exported_platform_linker_flags = [
('^android.*', ['-llog']),
],
visibility = [YOGA_ROOT],
)
cxx_library(
name = 'fbjni',
srcs = glob(['**/*.cpp']),
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 = [
':ndklog',
JNI_TARGET,
],
visibility = ['PUBLIC'],
)