2016-10-12 09:02:02 -07:00
|
|
|
# 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.
|
|
|
|
|
2016-12-02 05:08:55 -08:00
|
|
|
include_defs('//YOGA_DEFS')
|
2016-10-12 09:02:02 -07:00
|
|
|
|
|
|
|
cxx_library(
|
|
|
|
name = 'jni',
|
2016-12-03 04:40:23 -08:00
|
|
|
soname = 'libyoga.$(ext)',
|
2016-10-12 09:02:02 -07:00
|
|
|
srcs = glob(['jni/*.cpp']),
|
|
|
|
header_namespace = '',
|
|
|
|
compiler_flags = [
|
|
|
|
'-fno-omit-frame-pointer',
|
|
|
|
'-fexceptions',
|
2016-11-30 03:22:09 -08:00
|
|
|
'-fPIC',
|
2016-10-12 09:02:02 -07:00
|
|
|
'-Wall',
|
|
|
|
'-Werror',
|
|
|
|
'-O3',
|
|
|
|
'-std=c++11',
|
|
|
|
],
|
2016-11-09 11:31:22 -08:00
|
|
|
deps = [
|
|
|
|
FBJNI_TARGET,
|
|
|
|
JNI_TARGET,
|
2016-12-07 05:12:11 -08:00
|
|
|
yoga_dep(':yoga'),
|
2016-10-12 09:02:02 -07:00
|
|
|
],
|
|
|
|
visibility = ['PUBLIC'],
|
|
|
|
)
|
|
|
|
|
|
|
|
java_library(
|
|
|
|
name = 'java',
|
2016-12-07 05:12:11 -08:00
|
|
|
srcs = glob(['com/facebook/yoga/*.java']),
|
2016-10-12 09:02:02 -07:00
|
|
|
tests=[
|
2016-12-07 05:12:11 -08:00
|
|
|
yoga_dep('java:tests'),
|
2016-10-12 09:02:02 -07:00
|
|
|
],
|
|
|
|
source = '1.7',
|
|
|
|
target = '1.7',
|
|
|
|
deps = [
|
|
|
|
':jni',
|
|
|
|
INFER_ANNOTATIONS_TARGET,
|
|
|
|
JSR_305_TARGET,
|
|
|
|
PROGRUARD_ANNOTATIONS_TARGET,
|
|
|
|
SOLOADER_TARGET,
|
|
|
|
],
|
|
|
|
visibility = ['PUBLIC'],
|
|
|
|
)
|
2016-10-12 09:55:04 -07:00
|
|
|
|
|
|
|
java_test(
|
|
|
|
name = 'tests',
|
|
|
|
srcs = glob(['tests/**/*.java']),
|
2016-11-09 11:31:22 -08:00
|
|
|
use_cxx_libraries = True,
|
|
|
|
cxx_library_whitelist = CXX_LIBRARY_WHITELIST,
|
2016-10-12 09:55:04 -07:00
|
|
|
deps = [
|
|
|
|
':java',
|
|
|
|
JUNIT_TARGET,
|
|
|
|
],
|
2016-11-09 11:31:22 -08:00
|
|
|
visibility = ['PUBLIC'],
|
2016-10-12 09:55:04 -07:00
|
|
|
)
|