Move benchmark buck file into benchmark directory
Summary: buck rules are not meant to be in the root buck file but instead next to source files. This diff moves benchmark rule into benchmark folder. Reviewed By: lucasr Differential Revision: D3992992 fbshipit-source-id: 34782ff73bbd5b799d83d0f01b553bfab928f1df
This commit is contained in:
committed by
Facebook Github Bot
parent
588d2c91ba
commit
cdf4ee1e59
@@ -19,6 +19,6 @@ before_install:
|
|||||||
script:
|
script:
|
||||||
- buck test //:CSSLayout
|
- buck test //:CSSLayout
|
||||||
- buck test //:CSSLayout_java
|
- buck test //:CSSLayout_java
|
||||||
- buck run //:benchmark
|
- buck run //benchmark:benchmark
|
||||||
- git checkout HEAD^
|
- git checkout HEAD^
|
||||||
- buck run //:benchmark
|
- buck run //benchmark:benchmark
|
||||||
|
12
BUCK
12
BUCK
@@ -49,18 +49,6 @@ cxx_library(
|
|||||||
visibility = ['PUBLIC'],
|
visibility = ['PUBLIC'],
|
||||||
)
|
)
|
||||||
|
|
||||||
cxx_binary(
|
|
||||||
name = 'benchmark',
|
|
||||||
srcs = glob(['benchmarks/*.c']),
|
|
||||||
headers = subdir_glob([('', 'benchmarks/*.h')]),
|
|
||||||
header_namespace = '',
|
|
||||||
compiler_flags = COMPILER_FLAGS,
|
|
||||||
deps = [
|
|
||||||
':CSSLayout',
|
|
||||||
],
|
|
||||||
visibility = ['PUBLIC'],
|
|
||||||
)
|
|
||||||
|
|
||||||
cxx_test(
|
cxx_test(
|
||||||
name = 'CSSLayout_tests',
|
name = 'CSSLayout_tests',
|
||||||
contacts = ['emilsj@fb.com'],
|
contacts = ['emilsj@fb.com'],
|
||||||
|
@@ -9,6 +9,9 @@ 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']
|
JNI_DEPS = ['//lib/fb:fbjni']
|
||||||
|
|
||||||
|
def csslayout_dep(dep):
|
||||||
|
return '//' + dep
|
||||||
|
|
||||||
class allow_unsafe_import:
|
class allow_unsafe_import:
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
pass
|
pass
|
||||||
|
27
benchmark/BUCK
Normal file
27
benchmark/BUCK
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# 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')
|
||||||
|
|
||||||
|
cxx_binary(
|
||||||
|
name = 'benchmark',
|
||||||
|
srcs = glob(['*.c']),
|
||||||
|
headers = subdir_glob([('', '*.h')]),
|
||||||
|
header_namespace = '',
|
||||||
|
compiler_flags = [
|
||||||
|
'-fno-omit-frame-pointer',
|
||||||
|
'-fexceptions',
|
||||||
|
'-Wall',
|
||||||
|
'-Werror',
|
||||||
|
'-O3',
|
||||||
|
'-std=c11',
|
||||||
|
],
|
||||||
|
deps = [
|
||||||
|
csslayout_dep(':CSSLayout'),
|
||||||
|
],
|
||||||
|
visibility = ['PUBLIC'],
|
||||||
|
)
|
Reference in New Issue
Block a user