Added defs in build files for building windows dll

PiperOrigin-RevId: 401062093
This commit is contained in:
jfcarroll
2021-10-05 13:23:17 -07:00
committed by Copybara-Service
parent 6269b8b60a
commit 679838223c
10 changed files with 14 additions and 21 deletions
+1
View File
@@ -22,6 +22,7 @@ cc_library(
"analytics_recorder.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = ["-DCORE_ADAPTER_DLL"],
visibility = [
"//core:__subpackages__",
"//proto/analytics:__subpackages__",
+2
View File
@@ -22,6 +22,7 @@ cc_library(
"core.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = ["-DCORE_ADAPTER_DLL"],
visibility = [
"//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__",
"//third_party/nearby_connections/windows:__subpackages__",
@@ -53,6 +54,7 @@ cc_library(
"strategy.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = ["-DCORE_ADAPTER_DLL"],
visibility = [
"//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__",
"//analytics:__subpackages__",
+1
View File
@@ -84,6 +84,7 @@ cc_library(
"wifi_lan_service_info.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = ["-DCORE_ADAPTER_DLL"],
visibility = [
"//core:__pkg__",
"//core/internal/fuzzers:__pkg__",
+1
View File
@@ -19,6 +19,7 @@ cc_fuzz_target(
name = "offline_frames_fuzzer",
srcs = ["offline_frames_fuzzer.cc"],
componentid = 148515,
copts = ["-DCORE_ADAPTER_DLL"],
deps = [
"//security/fuzzing/blaze:default_init_google_for_cc_fuzz_target",
"//core/internal",
+1
View File
@@ -30,6 +30,7 @@ cc_library(
"discovered_peripheral_callback.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = ["-DCORE_ADAPTER_DLL"],
visibility = [
"//core/internal:__subpackages__",
],
+1
View File
@@ -32,6 +32,7 @@ cc_library(
"webrtc_socket_wrapper.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = ["-DCORE_ADAPTER_DLL"],
visibility = [
"//core/internal:__subpackages__",
],
+1
View File
@@ -41,6 +41,7 @@ cc_library(
"types.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = ["-DCORE_ADAPTER_DLL"],
visibility = [
"//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__",
"//analytics:__subpackages__",
+2 -19
View File
@@ -109,25 +109,8 @@ cc_library(
"wifi_lan_nsd.cc",
"wifi_lan_socket.cc",
],
hdrs = [
"bluetooth_classic.h",
"bluetooth_classic_device.h",
"bluetooth_classic_medium.h",
"bluetooth_classic_server_socket.h",
"bluetooth_classic_socket.h",
"condition_variable.h",
"executor.h",
"mutex.h",
"runner.h",
"scheduled_executor.h",
"submittable_executor.h",
"thread_pool.h",
"wifi_lan.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = [
"-Ithird_party/nearby_connections/cpp/platform/impl/windows/generated",
],
copts = ["-Ithird_party/nearby_connections/cpp/platform/impl/windows/generated"],
visibility = [
"//third_party/nearby_connections/windows:__subpackages__",
],
@@ -176,7 +159,7 @@ cc_test(
"scheduled_executor_test.cc",
"submittable_executor_test.cc",
],
copts = ["-Iplatform/impl/windows/generated"],
copts = ["-Iplatform/impl/windows/generated -DCORE_ADAPTER_DLL"],
deps = [
":comm",
":crypto",
+3
View File
@@ -85,6 +85,7 @@ cc_library(
"wifi_lan.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = ["-DCORE_ADAPTER_DLL"],
visibility = [
"//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__",
"//core:__subpackages__",
@@ -110,6 +111,7 @@ cc_library(
"logging.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = ["-DCORE_ADAPTER_DLL"],
visibility = [
"//analytics:__subpackages__",
"//core:__subpackages__",
@@ -144,6 +146,7 @@ cc_test(
"single_thread_executor_test.cc",
"wifi_lan_test.cc",
],
copts = ["-DCORE_ADAPTER_DLL"],
shard_count = 16,
deps = [
":comm",
+1 -2
View File
@@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("//third_party/msvc:build_windows.bzl", "cc_windows_dll")
licenses(["notice"])
@@ -21,7 +20,7 @@ cc_windows_dll(
name = "core_adapter",
srcs = ["core_adapter.cc"],
hdrs = ["core_adapter.h"],
copts = ["-DCORE_ADAPTER_BUILD_DLL"],
copts = ["-DCORE_ADAPTER_BUILD_DLL -DCOMPILING_CORE"],
defines = ["CORE_ADAPTER_DLL"],
tags = ["windows-dll"],
deps = [