aboutsummaryrefslogtreecommitdiff
path: root/third-party
diff options
context:
space:
mode:
authorJoshua Duong <joshuaduong@google.com>2022-10-21 09:49:07 -0700
committerJoshua Duong <joshuaduong@google.com>2022-10-24 08:48:33 -0700
commitb50ca45d8befa23f4184deb70835225bb0c7038a (patch)
tree153cc5fcab464c25379f9630fbc6e2e9cf7e7716 /third-party
parent3349241c4b87099678c5c926e5553ff66be66e38 (diff)
downloadaemu-b50ca45d8befa23f4184deb70835225bb0c7038a.tar.gz
Enable standalone/pkgconfig build for aemu_common.
Bug: 246990929 Test: mkdir build && cd build && \ CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake \ -DCMAKE_INSTALL_PREFIX=$PWD/../install \ -DAEMU_COMMON_GEN_PKGCONFIG=ON -DAEMU_COMMON_BUILD_CONFIG=gfxstream . \ ../ && make -j && make install Change-Id: I576159672ea3769cec0330be0ab08c24abdbaba8
Diffstat (limited to 'third-party')
-rw-r--r--third-party/CMakeLists.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt
new file mode 100644
index 0000000..0bbaef9
--- /dev/null
+++ b/third-party/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Build only support in Android
+if(NOT TARGET gfxstream_vulkan_headers)
+ set(GFXSTREAM_PROTOCOLS_PATH ${PROJECT_SOURCE_DIR}/../../../external/gfxstream-protocols)
+ if(EXISTS ${GFXSTREAM_PROTOCOLS_PATH})
+ add_subdirectory(${GFXSTREAM_PROTOCOLS_PATH} gfxstream-protocols)
+ endif()
+endif()
+
+# TODO(joshuaduong): Should copy/move these third-party dependencies from vulkan-cereal to here.
+set(VULKAN_CEREAL_PATH ${PROJECT_SOURCE_DIR}/../../../device/generic/vulkan-cereal)
+if(NOT TARGET lz4)
+ if(EXISTS ${VULKAN_CEREAL_PATH})
+ add_subdirectory(${VULKAN_CEREAL_PATH}/third-party/lz4 lz4)
+ endif()
+endif()
+
+if(NOT TARGET perfetto-tracing-only)
+ if(EXISTS ${VULKAN_CEREAL_PATH})
+ add_subdirectory(${VULKAN_CEREAL_PATH}/third-party/perfetto-tracing-only
+ perfetto-tracing-only)
+ endif()
+endif()
+
+if(NOT TARGET gtest)
+ if(EXISTS ${VULKAN_CEREAL_PATH})
+ SET(INSTALL_GTEST OFF)
+ add_subdirectory(${VULKAN_CEREAL_PATH}/third-party/googletest
+ googletest)
+ endif()
+endif()