ExternalApiImpl is its own target
@@ -92,9 +92,33 @@ fb_xplat_cxx_library(
)
fb_xplat_cxx_library(
- name = "profilo",
+ name = "external_api_impl",
srcs = [
"ExternalApiImpl.cpp",
+ ],
+ header_namespace = "profilo/api",
+ allow_jni_merging = True,
+ compiler_flags = [
+ "-fexceptions",
+ "-frtti",
+ "-DLOG_TAG=\"Profilo\"",
+ "-std=gnu++14",
+ ],
+ labels = ["supermodule:android/default/loom.core"],
+ preferred_linkage = "static",
+ soname = "libprofilo_externalapi.$(ext)",
+ deps = [
+ ":providers",
+ profilo_path("cpp/api:external_api_glue"),
+ profilo_path("cpp/logger/buffer:buffer"),
+ profilo_path("cpp/logger:multi_buffer_logger"),
+ profilo_path("cpp/profiler:external_tracer_manager"),
+ ],
+)
+
+fb_xplat_cxx_library(
+ name = "profilo",
+ srcs = [
"JNIOnLoad.cpp",
],
headers = glob(
@@ -118,14 +142,13 @@ fb_xplat_cxx_library(
],
deps = [
":constants",
+ ":external_api_impl",
":jni_logger_helpers",
":providers",
- profilo_path("cpp/api:external_api_glue"),
profilo_path("cpp/jni:jni"),
profilo_path("cpp/jni:jmulti_buffer_logger"),
profilo_path("cpp/logger/buffer:buffer_static"),
profilo_path("cpp/mmapbuf:buffer"),
- profilo_path("cpp/profiler:external_tracer_manager"),
profilo_path("cpp/util:util"),
profilo_path("deps/atomic:atomic"),
profilo_path("deps/fb:fb"),
