Skip to content

Commit

Permalink
Create Android OSS build system for react/utils module
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mdvacca authored and facebook-github-bot committed Aug 6, 2020
1 parent d7b1d33 commit 08d7b54
Show file tree
Hide file tree
Showing 26 changed files with 38 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/attributedstring/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ rn_xplat_cxx_library(
"//xplat/folly:headers_only",
"//xplat/folly:memory",
"//xplat/folly:molly",
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
react_native_xplat_target("react/renderer/debug:debug"),
react_native_xplat_target("react/renderer/core:core"),
react_native_xplat_target("react/renderer/graphics:graphics"),
Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/componentregistry/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ rn_xplat_cxx_library(
"//xplat/jsi:jsi",
react_native_xplat_target("react/renderer/core:core"),
react_native_xplat_target("react/renderer/debug:debug"),
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
],
)
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/components/text/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ rn_xplat_cxx_library(
"//xplat/folly:memory",
"//xplat/folly:molly",
YOGA_CXX_TARGET,
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
react_native_xplat_target("react/renderer/attributedstring:attributedstring"),
react_native_xplat_target("react/renderer/core:core"),
react_native_xplat_target("react/renderer/debug:debug"),
Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/components/textinput/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ rn_xplat_cxx_library(
"//xplat/folly:memory",
"//xplat/folly:molly",
YOGA_CXX_TARGET,
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
react_native_xplat_target("react/renderer/attributedstring:attributedstring"),
react_native_xplat_target("react/renderer/core:core"),
react_native_xplat_target("react/renderer/debug:debug"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ rn_xplat_cxx_library(
"//xplat/folly:memory",
"//xplat/folly:molly",
YOGA_CXX_TARGET,
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
react_native_xplat_target("react/renderer/attributedstring:attributedstring"),
react_native_xplat_target("react/renderer/core:core"),
react_native_xplat_target("react/renderer/debug:debug"),
Expand Down
4 changes: 2 additions & 2 deletions ReactCommon/react/renderer/core/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ rn_xplat_cxx_library(
"//xplat/folly:molly",
"//xplat/jsi:JSIDynamic",
"//xplat/jsi:jsi",
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
react_native_xplat_target("react/renderer/debug:debug"),
react_native_xplat_target("react/renderer/graphics:graphics"),
],
Expand Down Expand Up @@ -105,7 +105,7 @@ fb_xplat_cxx_binary(
visibility = ["PUBLIC"],
deps = [
"//xplat/third-party/benchmark:benchmark",
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
react_native_xplat_target("react/renderer/components/view:view"),
":core",
],
Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/element/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ rn_xplat_cxx_library(
react_native_xplat_target("react/renderer/componentregistry:componentregistry"),
react_native_xplat_target("react/renderer/core:core"),
react_native_xplat_target("react/renderer/debug:debug"),
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
],
)

Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/mapbuffer/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ rn_xplat_cxx_library(
"//xplat/fbsystrace:fbsystrace",
"//xplat/folly:headers_only",
"//xplat/folly:memory",
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
],
)

Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/mounting/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ rn_xplat_cxx_library(
react_native_xplat_target("react/renderer/components/view:view"),
react_native_xplat_target("react/renderer/core:core"),
react_native_xplat_target("react/renderer/debug:debug"),
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
],
)

Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/scheduler/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ rn_xplat_cxx_library(
react_native_xplat_target("react/renderer/componentregistry:componentregistry"),
react_native_xplat_target("react/renderer/debug:debug"),
react_native_xplat_target("react/renderer/components/root:root"),
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
],
)
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/templateprocessor/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ rn_xplat_cxx_library(
react_native_xplat_target("react/renderer/componentregistry:componentregistry"),
react_native_xplat_target("react/renderer/debug:debug"),
react_native_xplat_target("react/config:config"),
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
],
)

Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/react/renderer/textlayoutmanager/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ rn_xplat_cxx_library(
YOGA_CXX_TARGET,
react_native_xplat_target("react/renderer/attributedstring:attributedstring"),
react_native_xplat_target("react/renderer/core:core"),
react_native_xplat_target("utils:utils"),
react_native_xplat_target("react/utils:utils"),
react_native_xplat_target("react/renderer/debug:debug"),
react_native_xplat_target("react/renderer/graphics:graphics"),
react_native_xplat_target("react/renderer/uimanager:uimanager"),
Expand Down
File renamed without changes.
25 changes: 25 additions & 0 deletions ReactCommon/react/utils/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := reactutils

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)

LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../

LOCAL_CFLAGS := \
-DLOG_TAG=\"Fabric\"

LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall

LOCAL_STATIC_LIBRARIES :=
LOCAL_SHARED_LIBRARIES :=

include $(BUILD_SHARED_LIBRARY)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 08d7b54

Please sign in to comment.