pw_log: Add pw_preprocessor dep and CMakeLists.txt
Change-Id: Iddd9177c633a2442840e357eb2065c23654d1d03
diff --git a/CMakeLists.txt b/CMakeLists.txt
index be9ffc8..a6eb4dd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,7 @@
add_subdirectory(pw_cpu_exception_armv7m)
add_subdirectory(pw_dumb_io)
add_subdirectory(pw_dumb_io_stdio)
+add_subdirectory(pw_log)
add_subdirectory(pw_polyfill)
add_subdirectory(pw_preprocessor)
add_subdirectory(pw_span)
diff --git a/pw_log/BUILD.gn b/pw_log/BUILD.gn
index e3aa8df..e2cea75 100644
--- a/pw_log/BUILD.gn
+++ b/pw_log/BUILD.gn
@@ -27,6 +27,9 @@
"public/pw_log/levels.h",
"public/pw_log/log.h",
]
+ public_deps = [
+ dir_pw_preprocessor,
+ ]
}
pw_test_group("tests") {
diff --git a/pw_log/CMakeLists.txt b/pw_log/CMakeLists.txt
new file mode 100644
index 0000000..4928c2f
--- /dev/null
+++ b/pw_log/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Copyright 2020 The Pigweed Authors
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, 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.
+
+pw_add_facade(pw_log
+ PUBLIC_DEPS
+ pw_preprocessor
+)