Skip to content

Commit 08d7b54

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Create Android OSS build system for react/utils module
Summary: This diff creates the Android OSS build system for the module react/utils As part of this diff I also moved the module to react/utils folder changelog: [internal] internal Reviewed By: JoshuaGross Differential Revision: D22877265 fbshipit-source-id: 717487aacb392d0f08530763a16a638b8021d501
1 parent d7b1d33 commit 08d7b54

File tree

26 files changed

+38
-13
lines changed

26 files changed

+38
-13
lines changed

ReactCommon/react/renderer/attributedstring/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ rn_xplat_cxx_library(
5555
"//xplat/folly:headers_only",
5656
"//xplat/folly:memory",
5757
"//xplat/folly:molly",
58-
react_native_xplat_target("utils:utils"),
58+
react_native_xplat_target("react/utils:utils"),
5959
react_native_xplat_target("react/renderer/debug:debug"),
6060
react_native_xplat_target("react/renderer/core:core"),
6161
react_native_xplat_target("react/renderer/graphics:graphics"),

ReactCommon/react/renderer/componentregistry/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ rn_xplat_cxx_library(
5757
"//xplat/jsi:jsi",
5858
react_native_xplat_target("react/renderer/core:core"),
5959
react_native_xplat_target("react/renderer/debug:debug"),
60-
react_native_xplat_target("utils:utils"),
60+
react_native_xplat_target("react/utils:utils"),
6161
],
6262
)

ReactCommon/react/renderer/components/text/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ rn_xplat_cxx_library(
6161
"//xplat/folly:memory",
6262
"//xplat/folly:molly",
6363
YOGA_CXX_TARGET,
64-
react_native_xplat_target("utils:utils"),
64+
react_native_xplat_target("react/utils:utils"),
6565
react_native_xplat_target("react/renderer/attributedstring:attributedstring"),
6666
react_native_xplat_target("react/renderer/core:core"),
6767
react_native_xplat_target("react/renderer/debug:debug"),

ReactCommon/react/renderer/components/textinput/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ rn_xplat_cxx_library(
5858
"//xplat/folly:memory",
5959
"//xplat/folly:molly",
6060
YOGA_CXX_TARGET,
61-
react_native_xplat_target("utils:utils"),
61+
react_native_xplat_target("react/utils:utils"),
6262
react_native_xplat_target("react/renderer/attributedstring:attributedstring"),
6363
react_native_xplat_target("react/renderer/core:core"),
6464
react_native_xplat_target("react/renderer/debug:debug"),

ReactCommon/react/renderer/components/textinput/iostextinput/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ rn_xplat_cxx_library(
5858
"//xplat/folly:memory",
5959
"//xplat/folly:molly",
6060
YOGA_CXX_TARGET,
61-
react_native_xplat_target("utils:utils"),
61+
react_native_xplat_target("react/utils:utils"),
6262
react_native_xplat_target("react/renderer/attributedstring:attributedstring"),
6363
react_native_xplat_target("react/renderer/core:core"),
6464
react_native_xplat_target("react/renderer/debug:debug"),

ReactCommon/react/renderer/core/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ rn_xplat_cxx_library(
5858
"//xplat/folly:molly",
5959
"//xplat/jsi:JSIDynamic",
6060
"//xplat/jsi:jsi",
61-
react_native_xplat_target("utils:utils"),
61+
react_native_xplat_target("react/utils:utils"),
6262
react_native_xplat_target("react/renderer/debug:debug"),
6363
react_native_xplat_target("react/renderer/graphics:graphics"),
6464
],
@@ -105,7 +105,7 @@ fb_xplat_cxx_binary(
105105
visibility = ["PUBLIC"],
106106
deps = [
107107
"//xplat/third-party/benchmark:benchmark",
108-
react_native_xplat_target("utils:utils"),
108+
react_native_xplat_target("react/utils:utils"),
109109
react_native_xplat_target("react/renderer/components/view:view"),
110110
":core",
111111
],

ReactCommon/react/renderer/element/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ rn_xplat_cxx_library(
6060
react_native_xplat_target("react/renderer/componentregistry:componentregistry"),
6161
react_native_xplat_target("react/renderer/core:core"),
6262
react_native_xplat_target("react/renderer/debug:debug"),
63-
react_native_xplat_target("utils:utils"),
63+
react_native_xplat_target("react/utils:utils"),
6464
],
6565
)
6666

ReactCommon/react/renderer/mapbuffer/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ rn_xplat_cxx_library(
4444
"//xplat/fbsystrace:fbsystrace",
4545
"//xplat/folly:headers_only",
4646
"//xplat/folly:memory",
47-
react_native_xplat_target("utils:utils"),
47+
react_native_xplat_target("react/utils:utils"),
4848
],
4949
)
5050

ReactCommon/react/renderer/mounting/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ rn_xplat_cxx_library(
6161
react_native_xplat_target("react/renderer/components/view:view"),
6262
react_native_xplat_target("react/renderer/core:core"),
6363
react_native_xplat_target("react/renderer/debug:debug"),
64-
react_native_xplat_target("utils:utils"),
64+
react_native_xplat_target("react/utils:utils"),
6565
],
6666
)
6767

ReactCommon/react/renderer/scheduler/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ rn_xplat_cxx_library(
6363
react_native_xplat_target("react/renderer/componentregistry:componentregistry"),
6464
react_native_xplat_target("react/renderer/debug:debug"),
6565
react_native_xplat_target("react/renderer/components/root:root"),
66-
react_native_xplat_target("utils:utils"),
66+
react_native_xplat_target("react/utils:utils"),
6767
],
6868
)

ReactCommon/react/renderer/templateprocessor/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ rn_xplat_cxx_library(
6262
react_native_xplat_target("react/renderer/componentregistry:componentregistry"),
6363
react_native_xplat_target("react/renderer/debug:debug"),
6464
react_native_xplat_target("react/config:config"),
65-
react_native_xplat_target("utils:utils"),
65+
react_native_xplat_target("react/utils:utils"),
6666
],
6767
)
6868

ReactCommon/react/renderer/textlayoutmanager/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ rn_xplat_cxx_library(
125125
YOGA_CXX_TARGET,
126126
react_native_xplat_target("react/renderer/attributedstring:attributedstring"),
127127
react_native_xplat_target("react/renderer/core:core"),
128-
react_native_xplat_target("utils:utils"),
128+
react_native_xplat_target("react/utils:utils"),
129129
react_native_xplat_target("react/renderer/debug:debug"),
130130
react_native_xplat_target("react/renderer/graphics:graphics"),
131131
react_native_xplat_target("react/renderer/uimanager:uimanager"),
File renamed without changes.

ReactCommon/react/utils/Android.mk

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
#
3+
# This source code is licensed under the MIT license found in the
4+
# LICENSE file in the root directory of this source tree.
5+
6+
LOCAL_PATH := $(call my-dir)
7+
8+
include $(CLEAR_VARS)
9+
10+
LOCAL_MODULE := reactutils
11+
12+
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
13+
14+
LOCAL_C_INCLUDES := $(LOCAL_PATH)
15+
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../
16+
17+
LOCAL_CFLAGS := \
18+
-DLOG_TAG=\"Fabric\"
19+
20+
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
21+
22+
LOCAL_STATIC_LIBRARIES :=
23+
LOCAL_SHARED_LIBRARIES :=
24+
25+
include $(BUILD_SHARED_LIBRARY)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)